Skip to content

Vault Secret Store path is wrong #4032

@eaglestorm

Description

@eaglestorm

Expected Behavior

Generated Url to retrieve a secret should match https://developer.hashicorp.com/vault/api-docs/secret/kv/kv-v1#list-secrets .

the path of the secret should resolve to /{engine path}/{secret name}

Actual Behavior

the actual path generated is

/{engine path}/data/{secret name}

Which is wrong no where in the docs can I find it adding data to the path.

I think its also using the wrong value for the X-Vault-Token but its not logging enough info form me to tell.

Steps to Reproduce the Problem

  1. setup a kv secrets engine with a custom path
  2. add a secret to this engine
  3. setup a dotnet client to access this secert and configure it with the enginePath and vaultTokenMountPath.
  4. call GetSecretAsync on startup to get a secret.

Release Note

RELEASE NOTE:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions