-
Notifications
You must be signed in to change notification settings - Fork 146
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
save vault secret to file #136
Comments
Can you link to gerrit plugin cause there many. Gerrit plugins should be using credentials plugin? Than yes JCasC can create a credential ssh key. |
https://plugins.jenkins.io/gerrit-trigger/ at the moment i don't see an option to use credentials plugin with gerrit trigger :( |
Sounds like a lack on their part not JCasC or this plugin. |
Agree in 100%. I'm looking for a work around for this problem. |
This is the file your talking about: https://github.com/jenkinsci/gerrit-trigger-plugin/blob/fc6dd658d3affe9aa8ebfeb224116adf24804523/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/config/Config.java#L558-L561 You could use JCasC, Vault and https://github.com/jenkinsci/configuration-as-code-groovy-plugin to write the file to file systems. |
Ah your missing: jenkinsci/configuration-as-code-groovy-plugin#3 😓 |
i know about that plugin ;) just wanted to know if there is something more sophisticated. unfortunately i've ended with groovy initial script:
|
Ah yes, you can just use groovy to extract the credential, good point 👍 |
Hello,
configuration-as-code:1.44
hashicorp-vault:3.6.1
I've a 'special' case. Gerrit plugins looks for a ssh key in a file system. Is there a way to extract it from the vault and save to file when jenkins starts in jcasc mode?
The text was updated successfully, but these errors were encountered: