vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
Harden sign-in input bounds and private response caching
25343521418945b250da2fb29d27cffe34ee2a6e · Keenan Nemetz · 2d ago · parent b492b557
Harden sign-in input bounds and private response caching Bound the account name in LoginBegin before it reaches the per-account rate limiter or the ceremony store, and bound the passkey label and the credential fields copied from an authenticator. Rate-limit keys are capped by hashing a long value, forwarding headers used as addresses are capped, and expired limiter entries are swept as the table grows. Mark downloads and rendered pages private unless the repository is readable anonymously. A private repository's artifact, archive, run artifact, raw file, and HTML pages previously either carried a public cache directive or no directive at all, so a shared cache could serve them to an anonymous reader. Refs #209 (01M6S78Y7EQY596Y9TQRSNRVSE). Refs #210 (01M6S7936QAYM9TMSCXCYP2CF9).
server/web/codebrowser.go +1−1
| @@ -231,7 +231,7 @@ func (w *Web) blob(rw http.ResponseWriter, r *http.Request, raw bool) { | |||
| 231 | 231 | h.Set("Content-Type", "text/plain; charset=utf-8") | |
| 232 | 232 | // The announced length is part of the contract, so a text blob must not be | |
| 233 | 233 | // re-encoded on the way out; a compressed body has no such length. | |
| 234 | h.Set("Cache-Control", "no-transform") | ||
| 234 | h.Set("Cache-Control", w.downloadCacheControl(m)+", no-transform") | ||
| 235 | 235 | h.Set("Accept-Ranges", "bytes") | |
| 236 | 236 | br, partial, unsatisfiable := parseByteRange(r.Header.Get("Range"), stream.Size) | |
| 237 | 237 | if unsatisfiable { | |