mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
23 lines
843 B
Go
23 lines
843 B
Go
package apidump
|
|
|
|
// sensitiveRequestHeaders are headers that should be redacted from request dumps.
|
|
var sensitiveRequestHeaders = map[string]struct{}{
|
|
"Api-Key": {},
|
|
"Authorization": {},
|
|
"Cookie": {},
|
|
"Proxy-Authorization": {},
|
|
"X-Amz-Security-Token": {},
|
|
"X-Api-Key": {},
|
|
"X-Auth-Token": {},
|
|
"X-Coder-AI-Governance-Session-Token": {},
|
|
"X-Coder-AI-Governance-Token": {},
|
|
}
|
|
|
|
// sensitiveResponseHeaders are headers that should be redacted from response dumps.
|
|
// Note: header names use Go's canonical form (http.CanonicalHeaderKey).
|
|
var sensitiveResponseHeaders = map[string]struct{}{
|
|
"Set-Cookie": {},
|
|
"Www-Authenticate": {},
|
|
"Proxy-Authenticate": {},
|
|
}
|