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

KV v2 changes the API path to secrets & the response format

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Fixed
    • Icon: Critical Critical
    • hashicorp-vault-plugin
    • None
    • Using Jenkins 2.133, plugin 2.1.1, vault 0.10.3 in dev mode, w/ kv version 2 for /secrets/, all on linux.

      It looks like .10 changed the API for kv. https://www.vaultproject.io/api/secret/kv/kv-v2.html

      it now requires /secret/data/path, instead of /secret/path.  The response is also altered, so that you get 

       

      "data":{ 
        "data":{
          "foo": "bar"
        }
      } 
      

      vs{{}}

      "data": {
          "foo": "bar"
        }
      

       

      This causes 404 errors if you don't manually put the /data/ into the path, and doesn't allow the key to be found, so you don't get the actual values into the build steps.

       

            ptierno Peter Tierno
            mbarr Matthew Barr
            Votes:
            8 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: