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

XMLWordPrintable

    • Type: Epic
    • Resolution: Fixed
    • Priority: Critical
    • Component/s: hashicorp-vault-plugin
    • None
    • Environment:
      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.

       

            Assignee:
            Peter Tierno
            Reporter:
            Matthew Barr
            Votes:
            8 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: