Skip to content

VaultSharp.Core.VaultApiException: {"errors":["1 error occurred:\n\t* permission denied\n\n"]} #307

Closed Answered by gitisz
gitisz asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like I figured it out, just took a few days to unravel (yes, was working on it for that long).

await vaultClient.V1.Auth.PerformImmediateLogin();

With the above line passing, e.g. not throwing an exception, it was clear I was successful logging in, which informs the Signed request was correct. I came to know that what solved it for me wasn't that VAULT_TOKEN was taking priority, but instead the following:

  1. We are using KeyValueV1 and not V2. I was having KeyValue.V2.ReadSecretAsync originally.
  2. The mountPoint in our Org for authenticating with IAuthMethodInfo is not the same as the mountPoint we have for each Vault.
        IAuthMethodInfo authMethodInfo = new IAMAWSAuthMethodInfo(…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gitisz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants