-
Notifications
You must be signed in to change notification settings - Fork 142
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
403 (Forbidden) Issue when trying to pull secrets from my key value (kv) vault #271
Comments
I was experencing this same issue. Doing some research, I found the following issue #144. He doesn't directly mention how he fixed it but he left a big clue about "This was actually caused by the different way of secret scope reference". Looking again at the docs on For completeness, don't use the following if your using KV2
The above produces the following error: The correct way to do this is by using:
Thie produces the following: Hope this helps anyone suffering from same issue. It maybe wise that the docs get updated to make it extreamly clear that it must have this extra path to extract the secrets even though from CLI and using this path, does not work. It would be good if Works via CLI
Doesn't work via CLI however this matches what you need to use in code for vault-action plugin
|
Thanks so much for this. Your suggestion fixed my workflow as well and everything's looking good now. I second that this be added to some documentation. Thanks again! |
Using
vault cli
I'm able to pull my secrets using:If I try to get the same secret and provide the same path using the action in my workflow:
I then get the
403 Forbidden
error in my output.I thought that this action supported
kv get
or am I doing something wrong? In my local CLI I get the same403 Permission Denied
error when trying to dovault read xxx/kv/some/secret/path
, but if I executevault kv get ...
I can see the keys just fine.The text was updated successfully, but these errors were encountered: