Changelog - 2026-11-06
Redaction masks a key named credential and its prefixed forms
Security Bug FixIn one line. A value under the key credential (singular), dbCredential, api_credential or a plural such as dbCredentials is now replaced with [REDACTED]. Only credentials was masked before, so these keys reached the log in clear.
What changed
- The bare key.
credentialjoinscredentialsin the list of masked key names. - The prefixed forms. Any key that ends in
_credential,Credential,_credentialsorCredentialsis masked, the way keys ending inTokenandSecretalready were. - Where it applies. Every caller of
RedactUtility.redactSecretsandtoJsonSafe, with or withoutforce, and so the logger and the fetchers that redact a request config.
Who is affected
- Code that logs or inspects an object holding a
credential-style key. The value now reads[REDACTED]. A key that only contains the word, such ascredentialType, is not masked, but any key that ENDS in it is, flags included (hasCredential), as withTokenandSecret. - Everyone else. No action needed.
Details
| File | Package |
|---|---|
src/common/redact.ts | helpers |