-
Notifications
You must be signed in to change notification settings - Fork 484
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
Enable expand env for oidc discovery provider #5689
base: main
Are you sure you want to change the base?
Conversation
Fixes: spiffe#5688 Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
require.Error(err) | ||
require.Contains(err.Error(), "unable to load configuration:") | ||
|
||
err = os.WriteFile(confPath, []byte(minimalServerAPIConfig), 0600) | ||
require.NoError(err) | ||
|
||
config, err := LoadConfig(confPath) | ||
config, err := LoadConfig(confPath, false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add a test case that expands environment variables defined in the config and verifies that the expansion works as expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. I'll add a test for it.
Fixes: #5688