You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
has descriptive comments of: If the configuration is nil, Vault will use configuration from DefaultConfig(), which is the recommended starting configuration.
But even if the client configuration is non-nil, the code still validates environment variables, and will terminate client construction if any of these environment variables are invalid, regardless if they are being used for client initialisation or not.
The text was updated successfully, but these errors were encountered:
This problem looks pretty straightforward to fix, I'll take a stab at it.
I recommend that you leave DefaultConfig's current behaviour intact for backward compatibility reasons. One way to address the issue would be to factor out a new helper (DefaultConfigNoReadEnv?) which doesn't look at environment variables.
Hi @marcboudreau - any updates on this, or questions for @ncabatoff's feedback? Please let us know if we can help, or if your PR is ready for review and merging. Thanks! (Since the PR has been open for a while, you may wish to rebase it.)
The golang vault client construction code at
vault/api/client.go
Line 413 in 438e9cb
has descriptive comments of:
If the configuration is nil, Vault will use configuration from DefaultConfig(), which is the recommended starting configuration.
But even if the client configuration is non-nil, the code still validates environment variables, and will terminate client construction if any of these environment variables are invalid, regardless if they are being used for client initialisation or not.
The text was updated successfully, but these errors were encountered: