fix: sanitize JWT error to prevent JWKS URL leak in 403 response
CI / Vet, test, build (push) Successful in 4m47s
CI / Build and push image (push) Successful in 2m35s

This commit is contained in:
Admin Bot
2026-09-05 00:31:37 -07:00
parent 11ca4a5902
commit 4463508f29
+1 -1
View File
@@ -323,7 +323,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
writeProblemDetail(w, http.StatusForbidden,
"https://api.example.com/problems/forbidden",
"Forbidden",
fmt.Sprintf("JWT validation failed: %v", err),
"JWT validation failed",
nil)
logging.Errorf("auth failed", err, map[string]string{
"path": r.URL.Path,