Skip to content

fix(secret-guard): fail closed on dollar-prefixed secret paths - #1286

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-8999-secret-guard-dollar-tokens
Oct 2, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-8999-secret-guard-dollar-tokens

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Leading $HOME/$USER tokens expand from the environment before matching, so cat $HOME/.ssh/id_rsa asks exactly like the literal path. Other live $VAR tokens joined to a path separator fail closed to ask; bare $VAR with no path shape stays invisible. Quoted dollars, command substitutions, ANSI-C quotes, and Windows ADS streams are unaffected.

Fixes CL-8999

A leading $HOME/${HOME} or $USER/${USER} expands from the environment before matching, so $HOME/.ssh/id_rsa asks exactly like the literal path. Any other live $VAR joined to a path separator fails closed to ask, while bare $VAR tokens with no path shape stay invisible.
@linear-code

linear-code Bot commented Oct 2, 2026

Copy link
Copy Markdown

CL-8999

@TheGreatAxios
TheGreatAxios merged commit aa537c0 into main Oct 2, 2026
13 checks passed
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.

1 participant