generated from bisco/codex-bootstrap
2.0 KiB
2.0 KiB
Security
- Wagtail admin uses Django authentication, authorization, sessions, CSRF protection, and password hashing. The public site does not add accounts or write endpoints.
- The aggregate API is intentionally unauthenticated and returns published editorial content only; secrets and unpublished drafts must never be serialized.
- PostgreSQL has no host-published port. NGINX and diagnostic application ports bind to loopback for local use. Unknown NGINX virtual hosts are rejected with 404.
- Containers are unprivileged at the Compose level: no privileged mode, host network,
Docker socket, or added capabilities are used.
no-new-privilegesis enabled and the application images run as non-root users. .envis ignored..env.examplecontains replaceable development placeholders, never production credentials. Use a deployment secret manager outside local use.DJANGO_DEBUGmust be false and allowed hosts explicit outside development. Add TLS at the edge before public exposure.- Database and uploaded media backups may contain personal data. Restrict, encrypt, retain, and delete them according to the operator's privacy policy.
- Avoid placing personal phone numbers or private contact details in logs. The API legitimately exposes only contact details approved for publication.
- Dependency and image versions are explicit. Operators remain responsible for patch upgrades, vulnerability scans, and production digest pinning.
- NGINX forwards the original host and standard client/protocol headers. The local configuration is HTTP-only; production must add TLS and ensure application ports are not externally reachable.
- The Playwright image is pinned and enabled only through the test Compose profile. It receives no credentials, publishes no host ports, and tests only the local portal. The override uses a separate PostgreSQL volume so its seed cannot overwrite normal CMS content.
Manual production hardening remains required for reverse proxy headers, TLS, media storage, backup retention, monitoring, and admin network policy.