A security policy, and dependency updates that stay quiet
openGym ships passkeys, a signed session cookie and an admin dashboard, and people run it on the open internet. Until now someone finding a hole had no option but a public issue. SECURITY.md documents the model as it actually is, verified against server.js rather than described from memory: what the session cookie is and how long it lasts, that it cannot be revoked individually, that ./data is unencrypted and its holder can mint a session for any account, that there is no rate limiting, and what changing RP_ID costs. A self-hoster deciding whether to run this for other people deserves that list up front. Dependabot is monthly and grouped one PR per ecosystem — a default setup on a solo project produces noise that stops being read, which is the opposite of the point. Android/iOS are left out on purpose: Capacitor pins those to the npm packages, so bumping them separately breaks the mobile build. Also: api/ has had two dependencies since notifications landed. CONTRIBUTING still claimed one.
This commit is contained in:
1 parent
051a37abbf
commit
3a120df205
3 files changed
+204
-1
No files matched your search
+2
-1
@@ -28,7 +28,8 @@ cd frontend && npm test
|
||||
## Guidelines
|
||||
|
||||
- **Keep it dependency-light.** The frontend uses React + Router + Zustand and nothing else;
|
||||
new deps (front or back) are a hard sell. `api/` has exactly one dependency — keep it that way.
|
||||
new deps (front or back) are a hard sell. `api/` has two (`@simplewebauthn/server` for passkeys,
|
||||
`web-push` for notifications) — keep it near that.
|
||||
- **Match the style.** Small components, clear names, comments only where the "why" isn't obvious.
|
||||
State lives in the Zustand store (`src/store`); pure helpers in `src/lib`.
|
||||
- **Don't commit** the exercise media (`media/`) or `data/` — they're gitignored.
|
||||
|
||||
Reference in new issue
Block a user