Skip to content

feat: healthcheck, security headers, prod-readiness checklist#68

Merged
WhiteMuush merged 1 commit into
mainfrom
feat/59-prod-readiness
Jun 19, 2026
Merged

feat: healthcheck, security headers, prod-readiness checklist#68
WhiteMuush merged 1 commit into
mainfrom
feat/59-prod-readiness

Conversation

@WhiteMuush

Copy link
Copy Markdown
Owner

What

Ships the code-deliverable parts of the production-readiness work. Refs #59 (does not close it).

How

  • GET /api/health: pings the DB (SELECT 1), returns 200 {status:"ok",db:"up"} or 503 {status:"error",db:"down"}. Unauthenticated, side-effect free, no PII; for liveness/readiness probes.
  • Security headers on every response in next.config.ts: X-Frame-Options: DENY, X-Content-Type-Options: nosniff, Referrer-Policy, X-DNS-Prefetch-Control: off, Permissions-Policy (camera/mic/geo off), Strict-Transport-Security (2y, includeSubDomains, preload).
  • docs/production-readiness.md: checklist with per-item status plus a zero-PII/secrets logging policy.
  • Health endpoint unit tests.

Still pending (WIP banner stays)

  • DB backup strategy (tied to the deferred Docker/prod hosting decision).
  • Strict Content-Security-Policy (needs App Router per-request nonces).
  • Optional squashed migration baseline.

Refs #59

🤖 Generated with Claude Code

Code-deliverable parts of the production-readiness work (#59):

- GET /api/health pings the database (200 ok / 503 down), unauthenticated
  and side-effect free, for liveness/readiness probes.
- Baseline security headers on every response in next.config.ts
  (X-Frame-Options, X-Content-Type-Options, Referrer-Policy,
  Permissions-Policy, HSTS, DNS-prefetch off). Strict CSP tracked as a
  follow-up (needs App Router nonces).
- docs/production-readiness.md tracks the checklist with status and a
  zero-PII/secrets logging policy.

The README WIP banner stays: DB backups (tied to the deferred hosting
decision) and a strict CSP are still pending. Refs #59
@WhiteMuush WhiteMuush merged commit 5854ca3 into main Jun 19, 2026
11 checks passed
@WhiteMuush WhiteMuush deleted the feat/59-prod-readiness branch June 19, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant