auth: no audit logging of authentication failures #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Failed auth attempts are silently dropped — no structured log entry, no forensic trail. Impossible to distinguish a misconfigured client from a brute-force attempt after the fact.
File:
internal/auth/bearer.go:22-42Suggestion: On every 401, emit a structured log line with:
jwt_invalid,jwt_dex_unavailable,static_token_mismatch,no_token)