Security Configuration
JWT Secrets
JWT signing keys are used for Micronaut Security integration. In production, set them via environment variables:
Warning
Never commit real secret values. The defaults in application.yml are for development only.
Token Configuration
CORS Configuration
Note
The current CORS configuration (.* origin regex) is permissive and intended for local development only. For production, restrict allowed-origins-regex to your domain.
Security Headers
Rate Limiting
Sliding window rate limiting per IP address. Exceeding the limit returns HTTP 429.
Password Hashing
Passwords are hashed using PBKDF2 with SHA-256. The system supports automatic upgrade of legacy hash formats when a user successfully logs in.
Production Checklist
- Set
JWT_SECRETandJWT_REFRESH_SECRETvia environment variables - Restrict
allowed-origins-regexto your domain - Set
DB_URL,DB_USERNAME,DB_PASSWORDvia environment variables - Disable H2 web console (
h2.web-console: false) - Enable HTTPS via reverse proxy (nginx, Caddy, etc.)
- Review rate limiting settings for your traffic patterns