fix(security): redact database query parameters (HH-596) (#159)

Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
Rogee
2026-08-24 12:22:16 +08:00
committed by GitHub
co-authored by rogee
parent 57f8a64fd8
commit e8c010406d
4 changed files with 35 additions and 5 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ func (h *Handler) ServeWS(c *gin.Context) {
// Step 1: Authenticate (JWT or pubsub_token)
claims, err := h.authenticator.Authenticate(c)
if err != nil {
logger.L().Errorf("ws: authentication failed: %v", err)
logger.L().Warnf("ws: authentication rejected: %v", err)
c.JSON(http.StatusUnauthorized, gin.H{"error": err.Error()})
return
}