Named secret values
Always onRedacts the value assigned to a key whose final segment names a secret, such as password=, DB_PASSWORD=, "clientSecret": or --password. Keys are split into segments at _, -, . and camel-case transitions.
Replaced with [REDACTED]
Examples
| Input | Output |
|---|---|
password=fake-value | password=[REDACTED] |
export GITHUB_TOKEN=fake | export GITHUB_TOKEN=[REDACTED] |
"clientSecret": "fake" | "clientSecret": "[REDACTED]" |
--password fake --verbose | --password [REDACTED] --verbose |
Left unchanged
password_length=16token_type=Bearermax_tokens=10password=null
Limitations
- Unquoted values end at whitespace, , ; & quotes and brackets, so an unquoted password containing those characters is only partly redacted; quoted values are fully handled.
- Multi-line strings, arrays, and objects are not treated as assigned values.