Skip to content

feat: add API key authentication middleware#9

Merged
alez007 merged 1 commit intomainfrom
feat/api-auth
Apr 7, 2026
Merged

feat: add API key authentication middleware#9
alez007 merged 1 commit intomainfrom
feat/api-auth

Conversation

@alez007
Copy link
Copy Markdown
Owner

@alez007 alez007 commented Apr 7, 2026

Add OpenAI-compatible Bearer token auth at the gateway level. Keys are configured via YASHA_API_KEYS env var (comma-separated). Auth is disabled when the env var is unset, preserving backward compatibility. /health is exempt for load balancer probes. Includes yasha_auth_failures_total Prometheus metric, Grafana dashboard panel, and 15 tests.

Add OpenAI-compatible Bearer token auth at the gateway level.
Keys are configured via YASHA_API_KEYS env var (comma-separated).
Auth is disabled when the env var is unset, preserving backward
compatibility. /health is exempt for load balancer probes.
Includes yasha_auth_failures_total Prometheus metric, Grafana
dashboard panel, and 15 tests.
@alez007 alez007 merged commit a01a34d into main Apr 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant