Authentication¶
FallbackRabbit supports static API key authentication for the REST API and dashboard.
Configuration¶
Set API keys via environment variable or server configuration:
# Simple: comma-separated keys
export FALLBACKRABBIT_API_KEYS="my-secret-key-1,my-secret-key-2"
# Labeled: name=key pairs
export FALLBACKRABBIT_API_KEYS="admin:sk-admin-123,reader:sk-reader-456"
Or programmatically:
from fallbackrabbit.server import create_app
app = create_app(
storage_url="sqlite:///data/frabbit.db",
api_keys={"admin": "sk-admin-123", "reader": "sk-reader-456"},
)
Authentication Methods¶
X-API-Key Header¶
Bearer Token¶
Query Parameter¶
Skip Paths¶
The following paths skip authentication:
/health— Health check endpoint/docs— OpenAPI documentation/redoc— ReDoc documentation/openapi.json— OpenAPI schema/dashboard— Dashboard UI (browser access)
Rate Limiting¶
API keys can be combined with rate limiting for production use: