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§
- Rejected
Request Logger - Logs every rejected
insert_processand 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 rejectedinsert_processor OTLP request is logged throughlogger, as one line that includes what its body claims.