Skip to content

fix: escape dollar signs to avoid variable expansion - #20

Merged
rmarganti merged 1 commit into
mainfrom
dollar-sign-expansion
Mar 15, 2026
Merged

fix: escape dollar signs to avoid variable expansion#20
rmarganti merged 1 commit into
mainfrom
dollar-sign-expansion

Conversation

@rmarganti

Copy link
Copy Markdown
Owner

When writing secrets in dotenv style, they may include a dollar sign. Ie.

SOME_KEY="pas$word"

However, when dotenv-style readers look at this (include our own reader), they see the $ as an indicator that variable substitution should occur.

The fix here is to apply escaping to dollar signs when writing dotenv-style secrets.

SOME_KEY="pas\$word"

@rmarganti
rmarganti merged commit 6a18283 into main Mar 15, 2026
4 checks passed
@rmarganti
rmarganti deleted the dollar-sign-expansion branch March 15, 2026 18:18
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