mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 08:05:46 +08:00
Dedupe auth.unauthorized floods from unauthenticated page loads.
Keep one 401 audit per IP+path window, and hide historical unauthorized noise from the default business view. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
ea3d45ddc2
commit
d35d3992c2
5 changed files with 82 additions and 10 deletions
|
|
@ -87,6 +87,11 @@ export function auditSummary(
|
|||
});
|
||||
}
|
||||
if (action.startsWith("auth.")) {
|
||||
if (action === "auth.unauthorized") {
|
||||
const method = row?.method || "GET";
|
||||
const path = row?.path || "";
|
||||
return path ? `${method} ${path}` : "unauthorized";
|
||||
}
|
||||
return action.replace(/^auth\./, "");
|
||||
}
|
||||
if (action.startsWith("http.") || action.startsWith("ume.")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue