Hello, I am trying to use the Vault Secrets Operator with my Openshift cluster.
I seem to have managed to make the connection and auth work, but StaticSecret is not working, it is giving me this error: (I edited the real name/path of my secret with “gotest”)
Failed to read Vault secret: empty response from Vault, path="/v1/gotest/data/secrettest"
I called that endpoint with Curl, and verified that the secret does in fact exist by getting a response with the secret in it.
This is the declaration for the StaticSecret:
spec:
destination:
create: true
name: secret2112
overwrite: true
type: kv-v2
hmacSecretData: true
mount: /v1/gotest
path: secrettest
refreshAfter: 600s
type: kv-v2
vaultAuthRef: vaultauth-sample
For VaultAuth:
spec:
kubernetes:
role: gotest-role
serviceAccount: gotest-serviceaccount
tokenExpirationSeconds: 600
method: kubernetes
mount: kubernetes
vaultConnectionRef: vaultconnection-sample
It gives me the folloing message in Events Successfully handled VaultAuth resource request
And vaultConnection:
spec:
address: 'http://myVaultURL.com'
skipTLSVerify: false
Which gets me VaultConnection accepted
in the Events tab