hashicorp-vault-plugin icon indicating copy to clipboard operation
hashicorp-vault-plugin copied to clipboard

Save all variables to a file

Open PLeS207 opened this issue 3 years ago • 3 comments

Hello please tell me how I can save all variables to a file without declaring all variables in "def secrets"

PLeS207 avatar Jan 27 '21 12:01 PLeS207

You have to use def secrets, that's the current contract for the plugin to function.

jetersen avatar Jan 27 '21 21:01 jetersen

Yes, I use this structure

def secrets = [
                [path: 'test/dev01', engineVersion: 1, secretValues: [
                        [envVar: 'APP_ENV', vaultKey: 'APP_ENV']]]
            ]
        
def configuration = [vaultUrl: 'http://vault.examples.net:8200',
                             vaultCredentialId: 'vault',
                             skipSslVerification: 'true',
                             engineVersion: 1]

but I have about 100 variables in my test/dev01 storage, how I can get them without description of each value

PLeS207 avatar Jan 28 '21 08:01 PLeS207

You cannot without changes to the plugin

jetersen avatar Jan 28 '21 08:01 jetersen