Improve .env parser handling for quoted values
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- tooling
Research direction
Start by locating the Console's .env parser and reviewing the related PR #3015, which already adds coverage for the described behavior. Check the parser tests for separators, whitespace, wrapping quotes, embedded quotes, embedded separators, line endings, comments, malformed lines, and empty values; done means those cases preserve values correctly while still removing wrapping quotes.
Written by the indexing model from the issue text.
Description
🔖 Enhancement description
The Console's .env parser should only remove wrapping single or double quotes from imported environment variable values, while preserving quotes
that are part of the actual value.
Currently, quote characters inside values can be removed unintentionally. For example:
AUTHOR=O'Brien
MESSAGE=Say "hello"
These values should be parsed as:
{
AUTHOR: "O'Brien",
MESSAGE: 'Say "hello"'
}
The parser should still support existing behavior for wrapped values:
NAME='Appwrite'
MESSAGE="Hello world"
🎤 Pitch
Environment variable imports should preserve the exact value users provide, except for common .env wrapping quotes. Quotes can be meaningful in
secrets, connection strings, messages, and other configuration values.
This improves reliability for users importing .env files into Console and prevents accidental value changes during parsing.
The related PR adds coverage for .env parser behavior, including:
=and:separators- whitespace trimming
- wrapped single and double quotes
- quotes inside values
- values containing
=or: - CRLF line endings
- comments, malformed lines, and empty values
Related PR: https://github.com/appwrite/console/pull/3015
👀 Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
- Dominant language
- Svelte
- Stars
- 394
- Forks
- 259
- Avg merge
- 5h 52m
- Merged PRs (30d)
- 19
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from appwrite/console
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in appwrite/console
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
use-agent-os/agent-os#3314 ·
-
documentation low-priority templates
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
jesseray718/openroot#87 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·
-
in-progress proposal
Difficulty 1/5 Under an hour Newbie friendliness 88/100
uibcdf/molsyssuite#36 ·