Passwords use scrypt hashes. HS256 access JWTs last 10 minutes and bind to sessions; each authenticated request checks current database account/session state. The signing key is derived from the application key with usage separation. Random refresh tokens are stored as SHA-256 hashes, rotate on refresh, and revoke their session on replay. Sessions have an absolute 30-day lifetime. Local password sign-in defaults to non-persistent browser-session cookies; Remember me opts into persistent cookies. The preference is stored on the database session and MFA challenge, retained on refresh, and cannot be selected by the MFA verification payload. Session-cookie removal depends on browser shutdown/session-restore behavior; it is not server-side revocation. Existing sessions and provider/setup sign-in persistence are preserved.
Cookies use HttpOnly, SameSite Lax, and Secure for HTTPS request URLs. Refresh cookies are restricted to the authentication path. Browsers do not store tokens in localStorage. Sign-out, revocation, and account disabling revoke database sessions rather than merely clearing UI state. Authentication throttles are persisted in PostgreSQL.
First-administrator bootstrap is one-time and uses a durable database marker. OIDC verifies PKCE/state/nonce/issuer/audience and provider identity; accounts are never silently linked by matching email.
MFA is opt-in per user and applies only to email/password authentication. Provider sign-ins retain OIDC verification and use provider-managed MFA. Password success for an enrolled user returns a five-minute opaque challenge, without creating a session, JWT, or refresh cookie. Challenge hashes bind to the account's password hash and MFA revision; completion consumes the challenge once before issuing a guarded session. Password and MFA changes cannot race into an unverified local session.
Authenticator secrets are AES-GCM encrypted, including ten-minute pending enrollments. Six-digit SHA-1 TOTP uses thirty-second periods with a one-period clock tolerance and monotonic replay prevention. Ten random recovery codes contain eighty bits of entropy each; only user-scoped SHA-256 hashes are stored. Proof consumption and recovery-code replacement run under database account locks. Recovery codes are returned only at activation or regeneration, never by status/list endpoints. Management requires the current password; disabling or regenerating also requires a current second-factor proof. MFA changes revoke other sessions and pending challenges.
Password, account/challenge, verification, and management throttles apply. MFA has no enforcement setting, administrator toggle, or environment requirement. The Users API exposes only the enabled flag; profile endpoints operate on the current principal. Preserve the encryption key and database backups. Lost authenticators and exhausted/lost recovery codes do not introduce a password-only bypass.
Middleware checks routes/roles, PermissionService checks resources, collection/notification reads are filtered, and Editor deletion requires ownership. Frontend route guards are not the access boundary.
All signed-in users may query all sources. This does not isolate raw metric data between tenants. Administrators control source URLs and credentials. Private network connectivity is intentional; no source network sandbox is provided. Limit administrator access and egress according to installation needs.
The per-user alert pop-up preference changes client presentation only. It does not grant access, change rule permissions, stop event persistence/streaming, or suppress email delivery. Only the authenticated principal can change their own preference.
InfluxDB credentials and SMTP passwords use AES-256-GCM. APIs never return saved plaintext. Secure database backups and preserve the corresponding key separately. Automatic encryption-key rotation with re-encryption is not implemented.
All request origins are accepted, including missing or null Origin and cross-site requests. API CORS responses allow the requesting origin and credentials; preflights do not require a session. Authentication and resource permissions still apply to actual requests. Forwarded host, protocol, and client-address headers are trusted without an allowlist or environment switch. Validated request bodies require application/json; form and plain-text payloads are rejected. JSON body limit is 2 MiB, InfluxDB query defaults are 32 MiB, 30 seconds, and 50,000 rows; bounded environment settings permit up to 128 MiB, 120 seconds, and 250,000 rows. Other remote calls retain an 8 MiB response limit and 12-second timeout. Remote redirects are rejected.
Responses include anti-framing, MIME-sniffing, base/object restrictions, referrer, and unused-browser-permission headers. These headers are defense in depth, not a complete script CSP or CSRF boundary. Credentialed access from every Origin and unconditional forwarded-header trust remain explicit, unresolved deployment risks; SameSite=Lax does not isolate sibling origins on the same site. See the security review for retained risks and verification limits.
Parameterized SQL and Zod validation constrain inputs. InfluxQL has an additional read-only check, but read-only InfluxDB tokens remain the actual privilege boundary. Do not assume the application filter covers every Flux capability.
Supply the public host/scheme in forwarded headers, provide HTTPS through the deployment infrastructure, use least-privilege database/provider/SMTP credentials, and keep private backups. Never print secrets or export dashboards containing tokens inside queries. A non-root/read-only Docker runtime does not replace resource authorization or host security.
Security changes need direct-request tests for roles, revoked grants, expired sessions, and stream reconnects. See the access matrix and testing guide.
Production builds explicitly disable client and server source maps and enable Vite frontend and Nitro backend minification. bun run build then runs tooling/release/prepare-output.mjs, which removes any map files and trailing source-map debug comments copied with dependencies. It preserves executable code and license notices. The build fails if the subsequent output verification finds map artifacts or debug directives. bun run verify:output repeats the read-only check on an existing .output folder.
The Docker runtime copies only the prepared .output, LICENSE, and startup/health scripts from the build stage. Container regression tests inspect the final image for source maps as well as checking application/database readiness. Minification reduces readability; it does not encrypt JavaScript or prevent extraction. Frontend assets remain accessible to the browser. Original repository source is maintained for development; source-level debugging of release stack traces is reduced because source maps are not distributed. Use the release commit and server logs when investigating production issues.
The /docs route is public and uses a separate documentation layout without application navigation. Documentation pages do not initialize authentication, load private application collections, or open notification streams. Application screens and API endpoints retain their existing authentication and permission requirements. Markdown and JSON guides are compiled into browser assets, so this is documentation rather than a private content store. Never place credentials, tokens, or deployment secrets in documentation. The renderer restricts Markdown elements and unsafe attributes, and links resolve against a known catalog rather than arbitrary filesystem paths.