syntaxis/config/api/features/auth.toml.template
Jesús Pérez 9cef9b8d57 refactor: consolidate configuration directories
Merge _configs/ into config/ for single configuration directory.
Update all path references.

Changes:
- Move _configs/* to config/
- Update .gitignore for new patterns
- No code references to _configs/ found

Impact: -1 root directory (layout_conventions.md compliance)
2025-12-26 18:36:23 +00:00

27 lines
909 B
Plaintext

# Authentication Feature Configuration
#
# This configuration controls API key authentication and authorization.
# Each request must include a valid API key in the Authorization header.
# This file is loaded ONLY if [server.features.auth].enabled = true in the main config.
# (The enabled flag is set in the main lifecycle-api-config.toml file)
[auth]
# Path to API keys configuration file
# Each line should contain: key_name = "key_value"
# Example: admin_key = "sk_abc123def456..."
api_keys_path = "./config/api_keys.toml"
# Header name for API key (typically "Authorization" or "X-API-Key")
auth_header = "Authorization"
# Expected prefix for API key value (e.g., "Bearer ", "ApiKey ")
# Leave empty for no prefix requirement
auth_prefix = "Bearer "
# Log authentication failures (useful for debugging)
log_failures = true
# Timeout for key validation (milliseconds)
key_validation_timeout_ms = 100