diff --git a/dotnet/OpenWaf.Edge/Admin/AdminEndpoints.cs b/dotnet/OpenWaf.Edge/Admin/AdminEndpoints.cs index 847d5af..af7917a 100644 --- a/dotnet/OpenWaf.Edge/Admin/AdminEndpoints.cs +++ b/dotnet/OpenWaf.Edge/Admin/AdminEndpoints.cs @@ -48,22 +48,12 @@ internal static class AdminEndpoints // history keeps, and at the shipped log level the edge does not log // URLs - but raising Microsoft.AspNetCore to Information, which is // the ordinary next move when something is misbehaving, makes - // Kestrel log the full URL including this token (measured: 0 token - // lines at the shipped level, 2 at Information). So the request is - // served and the moment it happens is named, without ever repeating - // the secret. - // The query string is accepted for one reason: an operator typing - // curl at a keyboard does it without thinking, and refusing them is - // how an operator ends up disabling the auth instead of learning the - // header. What is NOT acceptable is doing it silently. A URL is the - // one part of a request that every access log, proxy log and browser - // history keeps, and at the shipped log level the edge does not log - // URLs - but raising Microsoft.AspNetCore to Information, which is - // the ordinary next move when something is misbehaving, makes - // Kestrel log the full URL including this token (measured: 0 token - // lines at the shipped level, 2 at Information). So the request is - // served and the moment it happens is named, without ever repeating - // the secret. + // Kestrel log the full URL including this token. Measured on the + // shipped image: one query-string request leaves 0 lines containing + // the token at the shipped level and 2 at Information ("Request + // starting" and "Request finished"), and a header request leaves 0 + // at either. So the request is served and the moment it happens is + // named, without ever repeating the secret. if (viaQuery) { filterCtx.HttpContext.RequestServices