You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I set up a docker instance with hashicorp/vault with the very basic.
Now I'm trying to run VaultSharp code against it.
But I noticed the API Request URLs seem wrong.
I created a proxy and compared the requests to running the "vault" commands directly inside the container, but setting the -address flag to go through my router.
An example is: vaultClient.V1.Secrets.KeyValue.V2.WriteSecretAsync("/my-app", secretData, null, "my-auth/servers")
This creates a REST call to: /v1/my-auth/servers/data/my-app
The same command from vault makes a request to v1/my-auth/servers/my-app
Notice the extra data part.
I checked the source code and it adds whatever I give for secretData to an object called data.
What is the reason for this?
If I leave my code as is, I get an error "missing client ID".
As I see it, you are using vaultClient.V1.Secrets.KeyValue.V2.WriteSecretAsync.. which is used to update the KVv2 secret engine not to configure an Auth method.
Describe the bug
I set up a docker instance with hashicorp/vault with the very basic.
Now I'm trying to run VaultSharp code against it.
But I noticed the API Request URLs seem wrong.
I created a proxy and compared the requests to running the "vault" commands directly inside the container, but setting the -address flag to go through my router.
An example is:
vaultClient.V1.Secrets.KeyValue.V2.WriteSecretAsync("/my-app", secretData, null, "my-auth/servers")
This creates a REST call to:
/v1/my-auth/servers/data/my-app
The same command from vault makes a request to
v1/my-auth/servers/my-app
Notice the extra data part.
I checked the source code and it adds whatever I give for
secretData
to an object calleddata
.What is the reason for this?
If I leave my code as is, I get an error "missing client ID".
I am trying to write the following:
I am trying to add the oauthapp plugin via c-sharp, but can't get passed this step.
I also couldn't find the equivalent of
vault secrets enable -path=oauth2 oauthapp
. Is this possible via the VaultSharp library?VaultSharp Version
1.13.0.1
Vault Version
Vault v1.14.1 (bf23fe8636b04d554c0fa35a756c75c2f59026c0), built 2023-07-21T10:15:14Z
Does this work with Vault CLI?
Yes
Sample Code Snippet
See above
Exception Details/Stack Trace/Error Message
I get "missing client id"
Any additional info
n/a
The text was updated successfully, but these errors were encountered: