Skip to content
This repository was archived by the owner on Sep 21, 2026. It is now read-only.
This repository was archived by the owner on Sep 21, 2026. It is now read-only.

Improve .env parser handling for quoted values聽#3018

Description

@abhay-dev2901

馃敄 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: #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?

Activity

  1. abhay-dev2901 commented on May 3, 2026

    @abhay-dev2901
    ContributorAuthor
  2. mythrimutyapu7 commented on Jul 5, 2026

    @mythrimutyapu7

    Hi!
    I'd like to work on this issue if it's still available.
    I've read through the issue description and would be happy to implement the fix. Please let me know if it's okay for me to take this one.
    Thanks!

  3. eldadfux commented on Sep 21, 2026

    @eldadfux
    Member

    Starting today this repo is archived. Please raise any issues with the new Appwrite console on the main platform repo: https://github.com/appwrite/appwrite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions