-
Notifications
You must be signed in to change notification settings - Fork 140
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
[BUG] kv v2 is not working proper with the github action. given API path does not work. #539
Comments
@snooops I am sorry you are having trouble! Could it be that your namespace is incorrect in the Vault Action config? I don't see usage of the Vault Namespace in your CLI example. Is the namespace set in the CLI environment? |
@fairclothjm yes the namespace is set. I have double checked it. |
Is there any advanced debug for the action to see the API calls or to see whats going on? |
|
Ok i got it now. Damn it. Honestly i don't understand why vault is so hyped, for me many calls and procedures are not straight forward. Anyways, my issue was in the policy. This is what i had and was not working:
This worked:
So it seems something is not well documented or the path is a different one, either way is bad. Hope it helps. The action, the namespace and the approle was correct. |
I'm not sure your only issue is with policy, you might also have an issue with politeness |
I didn't wanted to offend anyone, i was just frustrated regarding the issue i had + english is not my native language. |
@snooops No offense taken from me. I am glad you got it figured out! Hopefully I can help clarify the issue here. From your original example of the CLI kv get the path is returned as
So So you could use the following less permissive policy instead of the solution that you found:
You can read more about policies here but the relevant detail is under the Policy Syntax section:
|
Just to add a little more clarification. The
Since everything in vault is "path-based", including policies, your trailing |
Ah ok, things are getting more clear now. Thank you very much! |
Vault server version
v1.15.6
vault-action version
v3.0.0
Describe the bug
Action can't find the secrets using the kvv2 engine using the approle authentication.
To Reproduce
This Github Action returns a
Response code 403 (Forbidden)
Expected behavior
The secret with a 200 OK
Log Output
Additional context
I guess this is related to #271
The text was updated successfully, but these errors were encountered: