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

Ability to read all key/value pairs at /secret/:path

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • hashicorp-vault-plugin
    • None
    • Jenkins 1.653.1 on linux, plugin version 2.1.1

      Hi,

      in Vault I have some key/value pairs stored like

      /secret/system/environment
      db_one_pwd=secret1
      db_two_pwd=secret2
      db_three_pwd=secret3
      ....
      

      The list of secrets managed here should be flexible - and depends on the $system requirements.

      In a Jenkins pipeline library I would like to read just "all values" at the location

       "secret/system/environment"

      , for example

       "secret/myBackend/TEST".

       

      Currently, I need to specify a list of mappings ( $envVar, $vaultKey ) for all the keys.

      I would like the plugin to support querying all key/values, like

      vault kv get /secrets/system/environment
      

      does.

       

            ptierno Peter Tierno
            torstenreinhard Torsten Reinhard
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: