Authentication
API Key Management
Store API keys securely using Fibonacci’s keychain integration:Supported Keychain Backends
Environment-Based Authentication
For CI/CD and containerized environments:Secrets Management
Defining Secrets
Never hardcode secrets in workflow files:Setting Secrets via CLI
Secrets in Python
Secret Rotation
Production Environment Hardening
Required Settings
The server validates these settings at startup. Misconfigurations are fatal errors inAPP_ENV=production and warnings in staging.
Secrets Backend Configuration
Configure where Fibonacci stores organization secrets:SECRETS_BACKEND=aws_secrets_manager is set, boto3 must be installed — startup fails with a clear error if it is missing:
Secrets Health Endpoint
Verify secrets backend connectivity without exposing secret values:ListSecrets and GetSecretValue IAM actions on the configured prefix.
Quota Override Validation
Quota overrides set by organization admins are validated to prevent abuse:- Negative or non-numeric values are silently discarded and replaced with the plan default.
- Values exceeding 100× the plan default ceiling are rejected.
Encryption
Data Encryption at Rest
Encrypt sensitive data stored in memory:Encryption in Transit
All Fibonacci Cloud communications use TLS 1.3:Field-Level Encryption
Encrypt specific fields in workflow data:Access Control
Role-Based Access Control (RBAC)
Define roles and permissions for workflows:Resource-Level Permissions
API Key Scopes
Create scoped API keys with limited permissions:API key scopes are returned by the API as a
Dict[str, bool] map (e.g. {"runs:read": true, "runs:write": false}). The SDK’s APIKeyInfo.scopes field accepts both this dict form and the legacy list form.Audit Logging
Enable Audit Logs
Audit Log Contents
Audit logs capture:DEVELOPER_SHELL_EXECUTED (emitted when a superuser accesses the developer shell), quota enforcement events, and governance setting changes.
Query Audit Logs
Input Validation and Sanitization
Schema Validation
Prompt Injection Prevention
Output Filtering
Network Security
IP Allowlisting
VPC Configuration
Security Checklist
Authentication
Authentication
- API keys stored in keychain or secrets manager
- No hardcoded credentials in code or YAML
- API key rotation policy in place
- Scoped API keys for different environments
Production Hardening
Production Hardening
-
SESSION_SECRET_KEYset (≥ 32 characters) -
ENABLE_DOCS=falsein production -
ENABLE_DEVELOPER_ROUTES=falsein production -
TRUSTED_PROXY_HOSTSconfigured - Secrets backend chosen and verified via
GET /health/secrets -
boto3installed if usingaws_secrets_managerbackend
Data Protection
Data Protection
- Encryption at rest enabled for sensitive data
- TLS 1.3 for all communications
- PII handling compliant with regulations
- Data retention policies defined
Access Control
Access Control
- RBAC configured with least privilege
- Resource-level permissions defined
- Regular access reviews scheduled
- Service accounts properly scoped
Monitoring
Monitoring
- Audit logging enabled
- Security alerts configured
- Anomaly detection active
- Regular security assessments
Input/Output
Input/Output
- Input validation schemas defined
- Prompt injection protection enabled
- Output filtering configured
- Rate limiting implemented
Compliance
GDPR Compliance
SOC 2 Compliance
Fibonacci Cloud is SOC 2 Type II certified. Enable additional controls:Next Steps
Governance
Organization governance, quotas, and policy administration
Best Practices
Production workflow patterns