Skip to content

v0.5.4-beta: Production polish & security baseline - #38

Merged
DeepZone merged 1 commit into
mainfrom
codex/enhance-security-for-v0.5.4-beta
May 20, 2026
Merged

v0.5.4-beta: Production polish & security baseline#38
DeepZone merged 1 commit into
mainfrom
codex/enhance-security-for-v0.5.4-beta

Conversation

@DeepZone

Copy link
Copy Markdown
Owner

Motivation

  • Improve self-hosting security and production readiness without adding new routing or write features.
  • Harden container runtime practices (avoid root where practical) and reduce secrets/artefacts in images.
  • Provide a conservative set of HTTP security headers, clearer CORS guidance, operations docs and a release checklist for safe deployments.

Description

  • Hardened backend image by adding a non-root routeforge user, adjusting ownership of /app and ensuring runtime files are created during build in backend/Dockerfile.
  • Added baseline security headers (including conservative Content-Security-Policy) and ensured proxy headers for /api/ and /health in frontend/nginx.conf, while keeping the SPA-compatible CSP (style-src 'unsafe-inline' allowed initially).
  • Introduced a logging baseline using LOG_LEVEL from settings and a startup log that records version, mode, database type and RIPEstat parameters in backend/app/main.py and added log_level/postgres_password settings in backend/app/config.py.
  • Added an optional default-password detection that surfaces `

Codex Task

@DeepZone
DeepZone merged commit 70facdd into main May 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant