Skip to content

feat(config): expand environment variables in TOML API keys - #79

Merged
benbenbang merged 1 commit into
mainfrom
refactor/expand_envvar
Oct 9, 2026
Merged

benbenbang merged 1 commit into
mainfrom
refactor/expand_envvar

Conversation

@benbenbang

Copy link
Copy Markdown
Member

Allow TOML api_key values to reference $NAME and ${NAME} variables while keeping environment and flag values literal. Trim expanded keys, treat undefined variables as empty, and preserve key-free file viewing without requiring service initialization credentials.

Document the expansion behavior and add configuration tests and an example TOML file.

Allow TOML `api_key` values to reference `$NAME` and `${NAME}` variables while keeping environment and flag values literal. Trim expanded keys, treat undefined variables as empty, and preserve key-free file viewing without requiring service initialization credentials.

Document the expansion behavior and add configuration tests and an example TOML file.
@benbenbang
benbenbang enabled auto-merge (rebase) October 9, 2026 09:31
@github-actions github-actions Bot added documentation Improvements or additions to documentation triage labels Oct 9, 2026
@benbenbang
benbenbang merged commit cc35a53 into main Oct 9, 2026
5 checks passed
@benbenbang
benbenbang deleted the refactor/expand_envvar branch October 9, 2026 09:33
@benbenbang
benbenbang restored the refactor/expand_envvar branch October 9, 2026 09:34
@ptah-bw-technical-app

Copy link
Copy Markdown

🎉 This PR is included in version 1.4.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@benbenbang
benbenbang deleted the refactor/expand_envvar branch October 9, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation released triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant