Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add 'quote' option to dotenv format#2174

Open
icholy wants to merge 2 commits into
getsops:maingetsops/sops:mainfrom
icholy:dotenv-quoteicholy/sops:dotenv-quoteCopy head branch name to clipboard
Open

Add 'quote' option to dotenv format#2174
icholy wants to merge 2 commits into
getsops:maingetsops/sops:mainfrom
icholy:dotenv-quoteicholy/sops:dotenv-quoteCopy head branch name to clipboard

Conversation

@icholy

@icholy icholy commented May 7, 2026

Copy link
Copy Markdown

The dotenv store emits key=value unquoted, escaping only newlines (as a literal \n). Values containing whitespace, quotes, or other characters produce output that downstream parsers reject or misinterpret. This PR adds an opt-in alternative:

  • Add a quote boolean to the dotenv store config.
  • When true, the emitter wraps every value with strconv.Quote.
  • When true, unquoted encrypted files can still be loaded.

Related to: #1435, #1951, #1748, #622, #706

@icholy
icholy marked this pull request as ready for review May 7, 2026 15:04
icholy added 2 commits May 8, 2026 02:01
Signed-off-by: Ilia Choly <ilia.choly@gmail.com>
Signed-off-by: Ilia Choly <ilia.choly@gmail.com>
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.