Security
This chapter is for operators deploying KalamDB in staging/production.
Security Baseline Checklist
- Serve API behind HTTPS (TLS at edge proxy/load balancer).
- Set strong
auth.jwt_secretand keep it out of source control. - Keep
auth.allow_remote_setup = falseafter initial bootstrap. - Restrict CORS and WebSocket origins to known domains.
- Keep rate limiting and request-size limits enabled.
- Restrict setup/health/admin-sensitive routes to trusted networks.
- For clusters, enable
cluster.rpc_tls(mTLS between nodes).
Baseline Config Example
High-Risk Misconfigurations To Avoid
- Wildcard browser origins in production
- Disabled rate-limit middleware in public deployments
- Short/static JWT secrets shared across environments
- Leaving remote setup enabled permanently
- Exposing cluster RPC ports publicly
Incident Response Priorities
- Rotate compromised JWT secrets/certificates
- Disable compromised users/service accounts
- Tighten ingress and rate limits during active abuse
- Preserve logs for forensic review
Related Docs
Last updated on