Skip to content

Security Hardening

OpenCodeHub includes multiple built‑in security protections and requires strong secrets in production.

Set strong values in .env:

  • JWT_SECRET (minimum 32 chars)
  • SESSION_SECRET (minimum 32 chars)
  • INTERNAL_HOOK_SECRET
  • Rate limiting for authentication
  • CSRF protection for state‑changing requests
  • Input validation for API payloads
  • Hook authentication for internal Git hooks
  • Rotate tokens periodically.
  • Use HTTPS in production.
  • Enable and monitor audit logs.
  • Restrict access to runner and storage secrets.