Documentation
¶
Overview ¶
Package redact identifies and masks header values that commonly carry credentials, so they never round-trip back out through API responses, `readproof inspect`, or `readproof resource list` — even if an operator pasted a raw secret instead of using the "${VAR}" environment-reference form the http source adapter resolves at fetch time (see internal/source/http).
Index ¶
Constants ¶
const Placeholder = "[REDACTED]"
Variables ¶
This section is empty.
Functions ¶
func Headers ¶
Headers returns a copy of headers with sensitive values replaced by Placeholder. Non-sensitive entries pass through unchanged.
func IsSensitiveHeader ¶
IsSensitiveHeader reports whether a header name commonly carries a credential, by exact well-known name or by substring heuristic (e.g. "X-Api-Key", "X-Auth-Token").
Types ¶
This section is empty.