Skip to content

Vault UI secret path confusion #31660

@juchiast

Description

@juchiast

So I looked at the kv-v2 secret in Vault UI and it show me this information: "API path: /v1/secret/data/flow-server", I thought I have to use this path to refer to the secret in policy and k8s annotations:

path "/v1/secret/data/flow-server" {
  capabilities = ["read"]
}
        vault.hashicorp.com/agent-inject-secret-config.toml: "/v1/secret/data/flow-server"

As it turned out, I have to strip the /v1/ prefix for for it to work.

Suggestion: UI should be showing a "path for configuration" or something similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions