Skip to content
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

ca-cert: Inconsistent behavior with env var and cli arg #7923

Closed
fischerman opened this issue Nov 22, 2019 · 0 comments · Fixed by #8025
Closed

ca-cert: Inconsistent behavior with env var and cli arg #7923

fischerman opened this issue Nov 22, 2019 · 0 comments · Fixed by #8025
Labels
bug Used to indicate a potential bug core/cli

Comments

@fischerman
Copy link

Describe the bug
I would have expected that -ca-cert and VAULT_CACERT behave the same. However, if the certificate does not exists -ca-cert simply ignores it while VAULT_CACERT returns with an error.

To Reproduce
Steps to reproduce the behavior:

  1. Run VAULT_CACERT=not_found vault operator init
  2. Run vault operator init -ca-cert not_found
  3. See different outputs

Expected behavior
Same behavior, regardless how the option is passed to Vault.

Environment:

  • Vault Server Version (retrieve with vault status): N/A
  • Vault CLI Version (retrieve with vault version): Vault v1.2.0
  • Server Operating System/Architecture: Linux

Vault server configuration file(s): N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug core/cli
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants