Skip to content

feat: added double asterisk wildcard selector to prevent uppercasing of keys before exporting envs#545

Merged
fairclothjm merged 3 commits intohashicorp:mainfrom
bagf:fix/env-case-option
Mar 3, 2025
Merged

feat: added double asterisk wildcard selector to prevent uppercasing of keys before exporting envs#545
fairclothjm merged 3 commits intohashicorp:mainfrom
bagf:fix/env-case-option

Conversation

@bagf
Copy link
Copy Markdown
Contributor

@bagf bagf commented Apr 26, 2024

Description

When using the wildcard to match multiple secrets to export as env variables, all keys get uppercased. There are situations where this is undesirable. To maintain backwards compatibility I've added an alterative double asterisk ** which will avoid uppercasing exported env keys.

Relates #537

Closes #536

Checklist

  • Added CHANGELOG entry (only for user-facing changes)

Community Note

  • Please vote on this pull request by adding a 👍
    reaction
    to the original pull request comment to help the community and maintainers
    prioritize this request
  • Please do not leave "+1" comments, they generate extra noise for pull request
    followers and do not help prioritize the request

@hashicorp-cla-app
Copy link
Copy Markdown

hashicorp-cla-app bot commented Apr 26, 2024

CLA assistant check
All committers have signed the CLA.

@hashicorp-cla-app
Copy link
Copy Markdown

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes

Have you signed the CLA already but the status is still pending? Recheck it.

@bagf
Copy link
Copy Markdown
Contributor Author

bagf commented May 16, 2024

fyi i've signed the CLA but it wont change status for some reason

@heatherezell
Copy link
Copy Markdown

fyi i've signed the CLA but it wont change status for some reason

It might be if you submitted a change under your email, instead of your GitHub handle for example. That's fairly common.

Copy link
Copy Markdown
Collaborator

@fairclothjm fairclothjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bagf !

@fairclothjm fairclothjm merged commit 7709c60 into hashicorp:main Mar 3, 2025
7 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.

[BUG] Key transformed to uppercase when exported to env var using wildcard

3 participants