Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use base64 files as secret file #181

Open
elena-kozyreva opened this issue May 5, 2023 · 3 comments
Open

Use base64 files as secret file #181

elena-kozyreva opened this issue May 5, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@elena-kozyreva
Copy link

What feature do you want to see added?

Dear team,

I didn't find in documentation of the plugin how to use secret file as credential.
For example in local credentials we can save kube config file as Secret file encoding base64. But when I added the file to Azure KeyVault, Jenkins not able to read and use it.

Command for az cli:
az keyvault secret set --vault-name keyvaultforjenkins \ --name jenkins-kube-config --file kube-config \ --description "jenkins-kube-config" \ --encoding base64

Error in pipeline when it try to use the credential:
ERROR: Credentials 'jenkins-kube-config' is of type 'Secret text' where 'org.jenkinsci.plugins.plaincredentials.FileCredentials' was expected

Additional tag, for example of type the ID also didn't help:
--tags type=file

Could you please add support the such secret files?

Upstream changes

No response

@elena-kozyreva elena-kozyreva added the enhancement New feature or request label May 5, 2023
@timja
Copy link
Member

timja commented May 5, 2023

The plugin doesn't support file currently.

see https://github.com/jenkinsci/azure-keyvault-plugin#azure-key-vault-credentials-provider for the supported types (read down a little there's no heading for it)

you can always output the text to a file

@elena-kozyreva
Copy link
Author

The plugin doesn't support file currently.

Thank you for quick response.
I hope that in the future you will be able to add file support. :)

@timja
Copy link
Member

timja commented May 5, 2023

I hope that in the future you will be able to add file support. :)

or anyone else, pull requests are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants