mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
util: allow configuring VAULT_BACKEND for Vault connection
It seems that the version of the key/value engine can not always be detected for Hashicorp Vault. In certain cases, it is required to configure the `VAULT_BACKEND` (or `vaultBackend`) option so that a successful connection to the service can be made. The `kv-v2` is the current default for development deployments of Hashicorp Vault (what we use for automated testing). Production deployments default to version 1 for now. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
75b9b9fe6d
commit
82557e3f34
@ -21,7 +21,7 @@ data:
|
||||
vault login ${VAULT_DEV_ROOT_TOKEN_ID}
|
||||
|
||||
# create a secret store for the tenant
|
||||
vault secrets enable -path="tenant" kv
|
||||
vault secrets enable -version=2 -path="tenant" kv
|
||||
|
||||
# create a policy for the tenant
|
||||
vault policy write "${TENANT_NAMESPACE}" - << EOS
|
||||
|
Reference in New Issue
Block a user