Documentation ¶
Overview ¶
Package redact provides functions for determining values to redact.
Index ¶
Constants ¶
View Source
const LengthMin = 6
LengthMin is the shortest string length that will be considered a potential secret by the environment redactor. e.g. if the redactor is configured to filter out environment variables matching *_TOKEN, and API_TOKEN is set to "none", this minimum length will prevent the word "none" from being redacted from useful log output.
Variables ¶
This section is empty.
Functions ¶
func Vars ¶
func Vars(patterns []string, environment []env.Pair) (matched []env.Pair, short []string, err error)
Vars returns the variable names and values to be redacted, given a redaction config string and an environment map. It also returned variables whose names match the redacted-vars config, but whose values were too short.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.