Skip to main content
Security is critical for production workflows. This guide covers authentication, secrets management, encryption, access controls, and security best practices.

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 in APP_ENV=production and warnings in staging.
Setting ENABLE_DOCS=true or ENABLE_DEVELOPER_ROUTES=true with APP_ENV=production prevents the server from starting. In staging these are warnings only.

Secrets Backend Configuration

Configure where Fibonacci stores organization secrets:
When 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:
This endpoint confirms IAM connectivity only and never returns secret values. It requires 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.
This prevents both DoS via zero/negative limits and rate-limit bypass via excessively large overrides. See Governance for how to set valid quota overrides.

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:
Additional audit events include DEVELOPER_SHELL_EXECUTED (emitted when a superuser accesses the developer shell), quota enforcement events, and governance setting changes.

Query Audit Logs

For paginated API access to audit logs see the Governance guide.

Input Validation and Sanitization

Schema Validation

Prompt Injection Prevention

Output Filtering

Network Security

IP Allowlisting

VPC Configuration

Security Checklist

  • 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
  • SESSION_SECRET_KEY set (≥ 32 characters)
  • ENABLE_DOCS=false in production
  • ENABLE_DEVELOPER_ROUTES=false in production
  • TRUSTED_PROXY_HOSTS configured
  • Secrets backend chosen and verified via GET /health/secrets
  • boto3 installed if using aws_secrets_manager backend
  • Encryption at rest enabled for sensitive data
  • TLS 1.3 for all communications
  • PII handling compliant with regulations
  • Data retention policies defined
  • RBAC configured with least privilege
  • Resource-level permissions defined
  • Regular access reviews scheduled
  • Service accounts properly scoped
  • Audit logging enabled
  • Security alerts configured
  • Anomaly detection active
  • Regular security assessments
  • 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