mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 08:18:18 +00:00
ee6f791100
extract_params_header copied every request/response header verbatim into the maps that feed audit entries (requestQuery/responseHeader) and notification events (req_params). Sensitive headers such as Authorization and X-Amz-Security-Token were serialized in plaintext and forwarded to external sinks (webhook/kafka/file), leaking long-lived credentials. Redact credential-bearing headers at this single chokepoint: the header name is kept for correlation, but its value is replaced with the shared REDACTED_SECRET placeholder. A case-insensitive sensitive-header list covers authorization, x-amz-security-token, x-amz-content-sha256, cookie, and set-cookie. Non-sensitive headers keep their existing behavior. Refs: https://github.com/rustfs/backlog/issues/963