Repository navigation
Security
- Require an operator-provided 256-bit encryption key at API startup. Remove the built-in key and reject invalid Base64 and the retired sample key.
- Use AES-256-GCM with per-workspace HKDF-SHA256 keys for new secrets.
- Add transactional migration and key rotation for legacy ciphertext. Helm reads the active key from a dedicated Kubernetes Secret.
- Scan new commits for secrets with Gitleaks.
Upgrade
For an existing database, back it up and stop secret writers before changing the key. Run the migration dry run, apply the migration, and verify that all rows use the destination key before restarting the API. If an old encryption key was exposed, also rotate the underlying credentials with their providers.
See the secret key rotation runbook and PR #2.