Skip to main content

Module ingestion_auth

Module ingestion_auth 

Source
Expand description

ingestion authentication layer that attributes rejected insert_process callers Authentication layer for the ingestion routes.

Wraps micromegas_auth::axum::authenticate_quiet so a rejected insert_process request, the first call any client makes, or an OTLP export, is logged as one line carrying both the rejection reason and the identity its body claims. The 401 response is identical to the one auth_middleware returns.

Structs§

RejectedRequestLogger
Logs every rejected insert_process and OTLP request, with the claims of its body attached at most once per client IP and claimed sender per minute.

Functions§

ingestion_auth_middleware
Like micromegas_auth::axum::auth_middleware, except that a rejected insert_process or OTLP request is logged through logger, as one line that includes what its body claims.