Skip to content

[misc]: Factorize SetFlagsFromEnvVars and support credentials #4294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Tom-Hubrecht
Copy link

Describe your changes

The code for setting up command flags values from environment variables was copied in three different places, this puts the helper function in the util package so that every component can use it. Furthermore, it now supports reading values from files in $CREDENTIALS_DIRECTORY, which allows direct integration with systemd's LoadCredential mechanism (but any platform can define such a variable and pass values as files).

Note however that it removes support from reading values from variables of the form WT_... which is very legacy.

Issue ticket number and link

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

@CLAassistant
Copy link

CLAassistant commented Aug 5, 2025

CLA assistant check
All committers have signed the CLA.

…_DIRECTORY

The code for setting up command flags values from environment variables
was copied in three different places, this puts the helper function in
the util package so that every component can use it.
Furthermore, it now supports reading values from files in
`$CREDENTIALS_DIRECTORY`, which allows direct integration with systemd's
`LoadCredential` mechanism (but any platform can define such a variable
and pass values as files).
Copy link

sonarqubecloud bot commented Aug 5, 2025

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.

2 participants