MSP-8292 Up deps

This commit is contained in:
Синельник Тимур Романович committed 2026-08-12 16:00:30 +03:00
1 parent 3a66223a89
commit 5daaea50a1
186 files changed
+7092 -1579

No files matched your search

-39
View File
@@ -111,45 +111,6 @@ func Pointer[T any](v T) *T {
return &v
}
var sensitiveHeaders = map[string]struct{}{
"_csrf": {},
"_csrf_token": {},
"_session": {},
"_xsrf": {},
"api-key": {},
"apikey": {},
"auth": {},
"authorization": {},
"cookie": {},
"credentials": {},
"csrf": {},
"csrf-token": {},
"csrftoken": {},
"ip-address": {},
"passwd": {},
"password": {},
"private-key": {},
"privatekey": {},
"proxy-authorization": {},
"remote-addr": {},
"secret": {},
"session": {},
"sessionid": {},
"token": {},
"user-session": {},
"x-api-key": {},
"x-csrftoken": {},
"x-forwarded-for": {},
"x-real-ip": {},
"xsrf-token": {},
}
// IsSensitiveHeader reports whether a header or metadata key should be treated as sensitive.
func IsSensitiveHeader(key string) bool {
_, ok := sensitiveHeaders[strings.ToLower(key)]
return ok
}
// eventIdentifier returns a human-readable identifier for the event to be used in log messages.
// Format: "<description> [<event-id>]".
func eventIdentifier(event *Event) string {