Documentation
¶
Overview ¶
Package redact provides functionality to redact potentially sensitive flags, to prevent their contents from being exposed via expvars or debugging endpoints.
Example ¶
flag.Parse() // parse the args to get the values RedactFlags(flag.CommandLine, os.Args) // redact them from the runtime
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RedactFlags ¶
RedactFlags iterates through the given FlagSet and arguments slice, and for each non-bool flag which has the string "[SENSITIVE]" in its usage, redacts the value of the flag from the given arguments.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.