Documentation Index
Fetch the complete documentation index at: https://docs.servflow.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
ServFlow Pro provides secure secrets management for storing sensitive data like API keys, database credentials, and authentication tokens. Secrets can be managed through two methods:- SQLite Storage — Encrypted secrets stored in your SQLite database
- Environment Variables — Reference secrets directly from your environment
Using SQLite Storage
When SQLite is configured, secrets are stored encrypted in the database and can be managed through the dashboard or API.Prerequisites
Ensure yourconfig.toml has SQLite configured:
Managing Secrets via Dashboard
- Open the Servflow dashboard at
http://localhost:3000 - Navigate to Settings → Secrets
- Click Add Secret to create a new secret
- Provide a name and value for your secret
Using Secrets in Workflows
Reference stored secrets in your workflow configurations using the$secret prefix:
Using Environment Variables
For deployments where you prefer to manage secrets externally (e.g., Kubernetes secrets, Docker secrets, or CI/CD pipelines), you can reference environment variables directly.Referencing Environment Variables
Use the$env prefix to reference environment variables in your workflow configurations:
Setting Environment Variables
Docker
Docker Compose
Comparison
| Feature | SQLite Storage | Environment Variables |
|---|---|---|
| Encryption at rest | ✅ Yes | Depends on host |
| Dashboard management | ✅ Yes | ❌ No |
| Runtime updates | ✅ Yes | ❌ Requires restart |
| External secret managers | ❌ No | ✅ Yes |
| Zero persistence | ❌ No | ✅ Yes |
Best Practices
Security Recommendations
-
Set a strong master key — The
master_keyin your dashboard config is used for encrypting secrets. Use a long, random string. -
Restrict file permissions — Ensure your SQLite database file and config files have appropriate permissions:
-
Use secrets in production — Avoid hardcoding sensitive values in workflow configurations. Always use
$secret.*or$env.*references. - Rotate secrets regularly — Update API keys and credentials periodically. SQLite storage makes this easy through the dashboard.
Next Steps
Configuration Reference
Explore all ServFlow configuration options and environment variables.
Local Development
Set up your local environment with SQLite and secrets management.
Installation
Deploy ServFlow to your infrastructure.
Quickstart
Build your first API with ServFlow.