Documentation
¶
Index ¶
Constants ¶
View Source
const Redacted = "***"
Redacted is the prefix the API uses to mark a masked secret. A masked value is the prefix optionally followed by the last few characters of the stored secret (e.g. "***abcd"). Masked values are never persisted: on writes they are treated as "no change" so a read-modify-write round-trip cannot overwrite a real credential with its mask.
Variables ¶
This section is empty.
Functions ¶
func IsMasked ¶
IsMasked reports whether a value was produced by Mask (it carries the redaction prefix). It is used both to detect a masked secret echoed back on update and to reject a masked value as a literal secret where there is no stored value to keep (create, auth type switch, first-time config).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.