Repository navigation
fix(security): keep prose after a token colon unmasked - #3639
Conversation
The token and password rules masked any value of 8 or more characters after a colon, so the buildx error 'failed to fetch oauth token: unexpected status ...' printed as 'token=<masked-token> status ...'. After a colon, an unquoted value that reads as a word is now left as written. An equals sign and a quote mark still mask the value.
Plans the change folder of issue 2613: the proposal with its feasibility check, the design, the secret-masking spec delta and the tasks.
A value that starts with an equals sign, as in token:=word or token: =word, is an assignment. The colon rule left it as written. The check now masks it, as on main.
Add the assignment requirement and modify the syntax-aware requirement. Correct the pattern-set claim, group kind and sentence length.
Test resultsFail-to-pass ( Narrow tests: Full gate (
Review findings
|
|
Filed as #3638: six cases of |
🤖 I have created a release *beep* *boop* --- ## [0.62.5](v0.62.4...v0.62.5) (2026-11-05) ### Bug Fixes * **security:** keep prose after a token colon unmasked ([#3639](#3639)) ([73eff22](73eff22)) ### Performance Improvements * **roadmap:** read the default tree once per run ([#3636](#3636)) ([2db71f2](2db71f2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
The output masking rewrote a plain word after
token:orpassword:. buildx writes "failed to fetch oauth token: unexpected status ...", and the printed error lost the word "unexpected". After a colon,_mask_literalnow leaves an unquoted value as written when it reads as a plain word. A credential, a quoted value and a value after=or:=stay masked, as on main. The check reuses_looks_like_a_credential, so no new heuristic exists.Closes #2613
Change:
openspec/changes/archive/2026-11-05-2613-prose-after-a-token-colon/