Skip to content

fix(env_manager): Enhance .env parsing for multi-line values, comment…#12

Merged
Hordunlarmy merged 1 commit into
mainfrom
dev
Jan 29, 2026
Merged

fix(env_manager): Enhance .env parsing for multi-line values, comment…#12
Hordunlarmy merged 1 commit into
mainfrom
dev

Conversation

@Hordunlarmy
Copy link
Copy Markdown
Member

This pull request improves the parsing logic for environment variable secrets in the parse_all_in_one_secret function, making it more robust when handling complex env format strings. The changes enhance the parser's ability to process multi-line values, correctly strip comment lines, and handle quoted values, resulting in more reliable extraction of environment variables. Test coverage for env_manager.py has also increased.

Environment Variable Parsing Improvements

  • Updated parse_all_in_one_secret in env_manager.py to:
    • Remove comment lines before parsing.
    • Accurately detect and extract multi-line values for each environment variable.
    • Properly strip leading/trailing quotes from string values.
    • Ignore comment lines and handle various input formats robustly.

Test Coverage

  • Increased the line coverage for env_manager.py, reflecting improved test coverage for the updated parsing logic. [1] [2]

Documentation

  • Added changelog entries describing the enhanced environment variable parsing for env format secrets, highlighting improved handling of multi-line values, comment lines, and quoted values. [1] [2] [3]…s, and quotes

@Hordunlarmy Hordunlarmy merged commit a1681fc into main Jan 29, 2026
5 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