mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 21:50:47 +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
|
|
@ -747,6 +747,7 @@ def list_audit_logs(
|
|||
"api_tokens.get",
|
||||
"auth.me",
|
||||
"auth.sessions",
|
||||
"auth.unauthorized",
|
||||
)
|
||||
q = q.filter(~AuditLog.action.like("http.%"))
|
||||
q = q.filter(~AuditLog.action.in_(noise_actions))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue