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

Jenkins environment variables substitution

Open morriell opened this issue 1 year ago • 0 comments

What feature do you want to see added?

Some times is essential to switch Vault URL. But currently there is no good manageable way to do it. Using environment variables in Vault configuration seems obvious, although it does not work. Vault plugin does not provide variable substitution on any configuration level.

I have undertaken a small investigation and I've tried various versions of vault plugin and various configurations. None of these combinations support variable expansion.

Here is a sample. There is DEFAULT_VAULT_URL environment variable set in Jenkins settings. image And there is a job configured to use that variable image The job should simply print the value obtained from Vault: image The job configured this way fails with an error: image The last picture shows that the DEFAULT_VAULT_URL variable was not expanded.

Upstream changes

No response

morriell avatar Jan 17 '23 17:01 morriell