Nothing bounds username length, and an account with a multi-KB username cannot log in at all #184
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fell out of writing the log-bound tests for #176. Deliberately NOT milestoned 1.0.0 — see reachability below.
Nothing validates username length at account creation. The session cookie is written before the
user logged inlog line, andgorilla/securecookierejects an encoded value past 4 KB, so an account whose username is a few KB cannot authenticate: the login answers 500, not a validation error. The account exists and is permanently unusable, and the failure names nothing an operator could act on.Reachability is what keeps it off the milestone: the bootstrap admin is created by the service with a fixed username, and there is no user-creation UI. So today this needs direct database access to produce, and someone with that has better options. It is filed because the absent bound is real, the failure mode is silent and confusing, and it becomes reachable the moment a second user can be created — which the
APIKeymodel and the empty/api/v1group suggest is intended eventually.Definition of done
Implementation requirements
next, PR based onnext, single commit, title ending(closes #N).TODO.md(see #112).make bootstrapin a fresh clone before gating — browser assets are fetched at build time, andmake lintneeds Docker.make checkplus the Docker lint path with the cache defeated. All linting runs in Docker, never on the host.