I started a Vault
instance in my local k8s cluster and it's up and running. Then I login to the pod and run vault kv put secret/config foo=world
. But I got error:
Error making API request.
URL: GET https://127.0.0.1:8200/v1/sys/internal/ui/mounts/secret/config
Code: 403. Errors:
* preflight capability check returned 403, please ensure client's policies grant access to path "secret/config/"
Then I tried with enable userpass (user: test-user
and password: training
) attached with full policy on path secret/abc/*
. Then, I run command:
vault kv put secret/lsdc username='test-user' password='training' ttl='30000s'
However, I still get the same error output. What would be the reason?