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
@@ -0,0 +1,64 @@
|
||||
# Dependency updates, deliberately quiet.
|
||||
#
|
||||
# openGym is dependency-light on purpose: the frontend is React + Router + Zustand, and api/
|
||||
# has two runtime dependencies. A default Dependabot setup would still open a PR per package
|
||||
# per week, which on a solo project means the alerts stop being read — the opposite of what
|
||||
# this is for. So: monthly, everything in an ecosystem grouped into a single PR, and a low
|
||||
# cap on open PRs. Security advisories are unaffected by any of this; GitHub raises those
|
||||
# regardless of schedule.
|
||||
#
|
||||
# Only manifests that actually exist here are listed. Deliberately NOT covered:
|
||||
# - gradle (frontend/android) and cocoapods (frontend/ios) — Capacitor generates those shells
|
||||
# and pins the native versions to the @capacitor/* npm packages. Bumping them independently
|
||||
# desyncs the two and breaks the mobile build; they follow the npm update instead.
|
||||
version: 2
|
||||
|
||||
updates:
|
||||
# Frontend app — frontend/package.json
|
||||
- package-ecosystem: npm
|
||||
directory: /frontend
|
||||
schedule:
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 2
|
||||
groups:
|
||||
# One PR for the whole frontend. Runtime and build tooling move together anyway
|
||||
# (a Vite bump usually wants its plugin bumped), and splitting them just doubles the
|
||||
# review without splitting the risk.
|
||||
frontend:
|
||||
patterns: ["*"]
|
||||
|
||||
# Backend — api/package.json (@simplewebauthn/server, web-push)
|
||||
- package-ecosystem: npm
|
||||
directory: /api
|
||||
schedule:
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 2
|
||||
groups:
|
||||
api:
|
||||
patterns: ["*"]
|
||||
|
||||
# Base images — api/Dockerfile (node:22-alpine)
|
||||
- package-ecosystem: docker
|
||||
directory: /api
|
||||
schedule:
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 1
|
||||
|
||||
# Base images — web/Dockerfile (node:22-alpine build stage + nginx:alpine)
|
||||
- package-ecosystem: docker
|
||||
directory: /web
|
||||
schedule:
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 1
|
||||
|
||||
# Workflow actions — everything under .github/workflows/
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
schedule:
|
||||
interval: monthly
|
||||
open-pull-requests-limit: 1
|
||||
groups:
|
||||
# These are all first-party actions/* and docker/* pinned to a major tag; they update
|
||||
# in lockstep and none of them is worth a PR of its own.
|
||||
actions:
|
||||
patterns: ["*"]
|
||||
Reference in new issue
Block a user