Skip to main content

Module auth

Module auth 

Source
Expand description

HTTP Basic Auth middleware for the admin API.

Guards every admin endpoint except the health probes, comparing the Authorization: Basic header against credentials from AdminConfig.

Structs§

AuthState
Expected Basic Auth credentials, sourced from AdminConfig (which in turn supports ${ENV_VAR} interpolation).

Functions§

basic_auth_middleware
Axum middleware enforcing HTTP Basic Auth on admin endpoints.