Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-63106

KV v2 credentials wrong path

XMLWordPrintable

      Hi,

      I have kv v2 credential defined with a namespace in the path which jenkins can't seem to be able to access.

      Upon inspection I can see that it is trying to get the secret from wrong path. It's adding adding data in wrong place in the URL.

       

      Secret path: my-namespace/kv/jenkins/common/github

       

      I can see in vault logs that it tries to hit /v1/my-namespace/data/kv/jenkins/common/github where correct path should be /v1/my-namespace/kv/data/jenkins/common/github

      In order to get kv v2 secrets, data should be included in the path right after kv eg.:

      /v1/<namespace>/kv/data/<your_secret>

       

      Accessing kv v1 secrets with namespace in the path works fine.

            ptierno Peter Tierno
            kobazik Dominik Zalewski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: