Skip to content

fix(security): a capitalised word is still a word, not a credential - #397

Merged
dan-petty merged 1 commit into
mainfrom
fix/masker-title-case-words
Sep 22, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/masker-title-case-words

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The published v0.2.22 release description reads "Secret & Vault Lease Lifecycle" and "Prompt Caching & Token ". CHANGELOG.md holds the correct text -- "Secret Resolution", "Token Governance" -- and the masker corrupted it on the way out.

#392 narrowed this rule by requiring the value after a credential keyword to carry a digit, a capital, or a separator. A capital was the wrong signal. Every ordinary word is capitalised at the start of a sentence or in a heading, and a changelog heading is exactly where this rule gets applied. I tested that fix against lowercase prose only -- "unify secret resolution", "token counting" -- so the case that was actually going to break it was never exercised.

A leading capital marks a word. An internal capital, a digit, a separator, or a length no English word reaches marks a token. Bearer ghp_A1b2..., token aBcDeFgHiJkL and a twenty-six character opaque string are still masked; "Secret Resolution", "Token Governance" and "Password Management Policy" are left alone.

The v0.2.22 release description is republished from the corrected changelog separately.

The published v0.2.22 release description reads "Secret <masked-token> & Vault Lease Lifecycle" and "Prompt Caching & Token <masked-token>". CHANGELOG.md holds the correct text -- "Secret Resolution", "Token Governance" -- and the masker corrupted it on the way out.

#392 narrowed this rule by requiring the value after a credential keyword to carry a digit, a capital, or a separator. A capital was the wrong signal. Every ordinary word is capitalised at the start of a sentence or in a heading, and a changelog heading is exactly where this rule gets applied. I tested that fix against lowercase prose only -- "unify secret resolution", "token counting" -- so the case that was actually going to break it was never exercised.

A leading capital marks a word. An internal capital, a digit, a separator, or a length no English word reaches marks a token. `Bearer ghp_A1b2...`, `token aBcDeFgHiJkL` and a twenty-six character opaque string are still masked; "Secret Resolution", "Token Governance" and "Password Management Policy" are left alone.

The v0.2.22 release description is republished from the corrected changelog separately.
Copilot AI lite review requested due to automatic review settings September 22, 2026 19:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@dan-petty
dan-petty merged commit 5124827 into main Sep 22, 2026
7 checks passed
@dan-petty
dan-petty deleted the fix/masker-title-case-words branch September 22, 2026 19:22
@dan-petty dan-petty mentioned this pull request Sep 28, 2026
7 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants