Home › Security overview
Security overview
PSFS treats request headers, cookies, query parameters, bodies, uploads and external responses as untrusted. This section groups the security documentation of the core.
Pages
| Page | What it covers |
|---|---|
| Security policy | Reporting, threat model, required security properties, CI checks |
| Admin auth cookie secret | Configure and rotate auth.cookie.secret |
Required properties at a glance
- Invalid authentication resolves to
null/nulland stops the flow. - Authentication and cookies use v2 with a read-only legacy fallback; removing it needs explicit owner approval.
- Admin session IDs are rotated on login; if rotation fails, authentication fails closed.
- CORS uses an explicit allowlist.
X-API-LANGis validated as a locale before reaching SQL.
The full list lives in the security policy.
Gates and contracts
- Run the local gates as described in Operations playbook, security gates.
- Contracts and findings live in
security/contracts. - Related validation rules: DTO validation engine.
← Previous: PHP compatibility · Next: Security policy →