Skip to content

Security and privacy model

Boundary Rule
Internet to app Only Caddy is exposed. Every API route requires authentication, except sign-in, health, version, the bridge socket (which has its own key), the CSP report and the provider webhook.
Administrator to panel The panel is reachable from the machine only. The installer refuses a public bind.
App to outside services The sign-in provider, lookups and Net are best effort and never on the logging path.
App to Net The connection is opt-in, signed with Ed25519, limited to summaries, and every scope defaults to off.
Container to host The container has no Docker socket, runs as non-root and uses one volume.
Templates and themes They are data only. Rules use allow-listed JSON Logic, and the app checks CSS and then enforces a CSP.
  • Roles come from the database only. The server enforces permissions, and front-end checks only hide controls.
  • Built-in sign-in cookies are HTTP-only and SameSite=Lax. State-changing requests and WebSocket upgrades must also carry an Origin header. The app stores invite and reset tokens as SHA-256 hashes, and each works once.
  • The panel uses scrypt, a CSRF header, a same-origin check, a five-attempt limiter, and idle and absolute session limits.
  • The bridge presents a bearer key, which the server compares in constant time. The key can log for any member, so keep the REST surface small.
  • The panel masks secrets and never returns them to the browser, and the app scrubs them from logs and crash reports. Never log ?token= or authorization headers. The request logger drops query strings.
  • DEV_AUTH_BYPASS_USER is for development only. It reads the real Host and refuses proxied requests. Never base a check on the host in c.req.url, because the Node WebSocket helper re-runs the app with a synthetic localhost URL.
  • Every mutation writes to audit_log. Invites are logged without the token, and panel changes are logged by name. A destructive tool needs an echoed count and a filter.
  • Net stores no IP addresses. It holds only an instance’s key, name, version and enabled scopes, and deleting an instance deletes all of it. Better Auth telemetry is off.
  • Do not add native dependencies, and use only licenses compatible with AGPL-3.0. Credit every data or imagery source on the Licenses page.
  1. Does a new route require authentication, check a permission, rate-limit if it is public, and audit if it writes?
  2. Does a network call happen before any transaction, with a short timeout, and stay off the logging path?
  3. Is data bound for Net shaped in payloads.ts, behind a scope, and shown in Show exactly what we send?
  4. Does anything execute template or theme input? Nothing may.
  5. Does the change log or store a secret, personal data or an IP address?
  6. Does the change add a real person’s or club’s name, callsign, host or path?