Logging
Debug logging is useful during development or troubleshooting, but under load it consumes CPU and produces excessive noise that can bury important signals. Set the log level toinfo in production:
- Environment Variables
- Configuration YAML
json:
- Environment Variables
- Configuration YAML
Profiling Endpoints
Flipt exposes pprof profiling endpoints at/debug/pprof. These are invaluable for debugging performance issues but can expose sensitive runtime information if publicly accessible.
Disable profiling in production unless you actively need it:
- Environment Variables
- Configuration YAML
Update Checks
By default, Flipt v2 checks for newer versions on startup. This can be disabled in air-gapped or security-sensitive environments:- Environment Variables
- Configuration YAML
Prometheus Metrics
Flipt v2 exposes Prometheus metrics at the/metrics HTTP endpoint by default. Ensure this endpoint is not publicly accessible - restrict it via network policies, reverse proxy rules, or your ingress configuration.
If you do not require metrics, you can disable them:
- Environment Variables
- Configuration YAML
CORS Configuration
If you are integrating Flipt v2 with a client-side application (for example, a browser-based frontend built with React, Vue, Angular, or similar frameworks), you must enable and properly configure CORS to allow requests from your frontend domain. For security reasons, restrictallowed_origins to your known frontend URLs instead of using the wildcard *.
- Environment Variables
- Configuration YAML
Storage Configuration
Flipt v2 supports two storage backend types:memory(default): In-memory store. Data is lost on restart.local: Persists data to the local filesystem. Data survives restarts.
local backend with a git remote:
Authentication and Authorization
In production, you should enable authentication to control access to Flipt v2:- Environment Variables
- Configuration YAML
Backup Strategy
Flipt v2’s Git-native storage means your feature flag data is already version-controlled in a Git repository. Ensure your backup strategy covers:- Git repository: The source Git repository should be backed up by your Git provider (e.g. GitHub, GitLab). Consider mirroring to a secondary repository for additional redundancy.
- Analytics data: If using ClickHouse, ensure that data is backed up according to your organizational policies.
Next Steps
- Deploy to Kubernetes — Deploy with our official Helm chart
- Git Sync — Configure Git-backed storage
- Observability — Metrics, logging, and tracing
- Authentication — Secure your Flipt instance
- Authorization — Configure RBAC policies for fine-grained access control