Repository navigation
Security
mcinquin edited this page Oct 12, 2026
·
1 revision
Canonical reference in the repository: SECURITY.md.
Do not open a public issue for a security problem. Contact the repository maintainer privately (GitHub Security Advisories or direct message).
- Set
AUTH_SECRETto a strong value (openssl rand -hex 32; 32 characters minimum). - Never commit
.envordata/hobbyhoops.db(or WAL files). - For plain HTTP (no reverse proxy):
COOKIE_SECURE=false,TRUST_PROXY=false— see the README. - For production HTTPS: expose the app behind a reverse proxy; leave
COOKIE_SECUREat its default or forcetrue; enableTRUST_PROXY=trueonly if the proxy rewritesX-Forwarded-For/X-Forwarded-Proto. - Set
BOOTSTRAP_TOKEN(required in production) and send theX-Bootstrap-Tokenheader to create the first account, then remove or rotate the token after bootstrap. - Restrict network access to the container (port bound to
127.0.0.1indocker-compose.yml). - Back up
data/hobbyhoops.dbregularly — see Data-and-backup.
Unauthenticated visitors see the login form at /. Every authenticated user can access /admin and write APIs (personal / family instance model).
- Session cookie:
httpOnly,Secure(production / HTTPS),SameSite=strict - CSRF / Fetch Metadata checks on auth and mutating APIs
- Rate limiting on login, bootstrap, and write endpoints
Full detail: SECURITY.md.