Operator-facing checklist for taking this application from local/dev use to a real production deployment. Each item is tagged with its verification status from the 2026 Phase 3 security pass (see SECURITY_FINAL_REPORT.md for the full evidence behind each).
Legend:
ENVIRONMENT=production. The app refuses to start with no authentication configured (config/settings.py::_require_identity_in_production).OIDC_ISSUER/OIDC_AUDIENCE (see .env.example’s OIDC section, now documented) for real per-user authentication. Verified: algorithm allowlisting, audience validation, no token/claim logging, uniform failure responses.VITE_OIDC_AUTHORITY/VITE_OIDC_CLIENT_ID (register a separate public/SPA OIDC client at your IdP) so the React dashboard can actually obtain a per-user token. Action required: exercise this against your real IdP before relying on it — it was never tested against a live provider in this pass.API_AUTH_TOKEN/VITE_API_AUTH_TOKEN (the static-token fallback) grants full admin RBAC and, if set, is extractable from the public JS bundle. Use this mode only for trusted-network/service-to-service access, never as your sole production credential for a publicly-reachable dashboard.agent/authz.py/api/authz.py). Assign roles via your IdP’s roles claim (or OIDC_ROLE_CLAIM if your provider uses a different claim name).restricted_roles, set via the upload form) for content that needs finer-grained access than the fixed sensitivity categories.DOCUMENTS_DELETE can delete any document. This is a deliberate design choice (shared knowledge base) — if your deployment needs per-user private documents, this app’s current architecture does not support that and would need real changes, not a config flag.DB_USER as a genuinely least-privilege, read-only database role yourself. The app can now detect and refuse to start if you get this wrong; it cannot create the correct role for you.docs/FILE_UPLOAD_*.md but were not independently code-verified in this pass.style-src 'self' 'unsafe-inline', font-src 'self' data:), because the selectable fonts are self-hosted rather than fetched from Google Fonts; no third-party font origin is granted. Override CONTENT_SECURITY_POLICY in .env if your deployment needs something different — but re-adding a font CDN is not required and would reintroduce a third-party request on every page load.no-new-privileges.build-essential removal) was made this pass but the image build did not complete successfully within this session’s environment/time budget. Action required: run docker build . yourself and confirm it succeeds before deploying this image.pip-audit found 24 known CVEs across 7 backend dependencies, the largest requiring a langgraph 0.2→1.0 major-version migration. This was not remediated in this pass (too large/breaking to attempt safely without dedicated regression time) — schedule this as its own project before going to production with sensitive data.npm audit: 0 frontend vulnerabilities..github/workflows/ci.yml’s continue-on-error: true to blocking once that baseline is triaged.docs/INCIDENT_RESPONSE.md does not exist. Write one covering (at minimum) credential compromise, a malicious upload getting past moderation, unauthorized SQL execution, and dependency-vulnerability response, before going to production.docs/DEPLOYMENT.md (pre-existing) covers some of this; review and verify independently.In priority order:
langgraph migration project.docs/INCIDENT_RESPONSE.md doesn’t exist.Everything else in this checklist that’s marked IMPLEMENTED AND VERIFIED reflects genuine, tested, working controls — not aspirational documentation.