Documentation
¶
Overview ¶
Package redact masks secrets before they reach a terminal, a log or a telemetry backend. allbctl output is routinely pasted into issues and shared screens, so anything credential-shaped is hidden by default.
Index ¶
Constants ¶
const Mask = "********"
Mask is what a hidden value is replaced with.
Variables ¶
This section is empty.
Functions ¶
func EnvValue ¶
EnvValue returns value in a form safe to display for the given key: fully masked for secret-looking keys, and with any embedded URL password masked otherwise (e.g. DATABASE_URL=postgres://user:pass@host/db).
func IsSecretKey ¶
IsSecretKey reports whether a key name looks like it holds a credential.
func URLPassword ¶
URLPassword masks the password of a URL that embeds credentials. Values that are not URLs, or carry no password, are returned unchanged.
Types ¶
This section is empty.