Overview
CaseBender ships with secure defaults, but your deployment environment requires additional hardening. This guide provides recommendations for securing the infrastructure surrounding CaseBender.Required production baseline
Before exposing an installation to users:.env in an approved secret-management system.
TLS Configuration
Reverse Proxy
CaseBender should be deployed behind a reverse proxy (Nginx, Caddy, Traefik, or cloud load balancer) that terminates TLS: Recommended TLS Settings:
Nginx Example:
Certificate Management
- Use certificates from a trusted Certificate Authority (Let’s Encrypt, DigiCert, etc.)
- Automate certificate renewal (certbot, cert-manager)
- Monitor certificate expiration with alerting (minimum 30 days before expiry)
- Use separate certificates for internal services if implementing mutual TLS
Database Security
PostgreSQL Hardening
pg_hba.conf Example:
Backup Security
- Encrypt backups at rest (AES-256)
- Store backups in a separate location from the primary database
- Test backup restoration quarterly
- Retain backups according to your compliance requirements (minimum 30 days)
- Monitor backup job success/failure with alerting
Redis Security
Redis Hardening
redis.conf Example:
Container Security
Runtime Hardening
If deploying CaseBender with Docker or Kubernetes: Docker Compose:Image Verification
Before deploying, verify container image signatures:Network Security
Firewall Rules
Recommendations
- Block all inbound traffic except port 443
- Use private networking for all inter-service communication
- Implement network segmentation between application and data tiers
- Enable network flow logging for forensic analysis
- Consider a Web Application Firewall (WAF) in front of the load balancer
Outbound integration policy
CaseBender validates the final outbound destination, disallows redirects, and rejects loopback, link-local, cloud metadata, private, and non-HTTPS destinations by default. On-premises integrations may be explicitly allowlisted by exact hostname:Monitoring
Health Check Endpoints
CaseBender exposes health check endpoints for monitoring:
Detailed dependency, queue, credential, or configuration data must not be
exposed by public health endpoints.
Recommended Monitoring
Log Aggregation
Collect and centralize logs from all CaseBender services:- Application logs (structured JSON)
- Access logs (reverse proxy)
- Database logs (PostgreSQL)
- Redis logs
- Container runtime logs
Backup and Recovery
Backup Strategy
Recovery Targets
Recovery Testing
- Test database restoration quarterly
- Test full environment recovery annually
- Document recovery procedures and keep them updated
- Conduct tabletop exercises for disaster scenarios
Related Documentation
- Security Architecture — Platform security design
- Supply Chain Security — Container image verification
- Deployment Overview — Platform deployment guides