-
Notifications
You must be signed in to change notification settings - Fork 21
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
Using multiple key vaults #70
Comments
It depends on what you want to do, In pipeline it's supported there's a key vault url override you can use. The credential provider currently just supports one vault |
@timja In my case, I have a lot of values in three key vaults and getting these values describing each in the pipeline is a very big problem. |
We have something fairly crazy here that allows it: https://github.com/hmcts/cnp-jenkins-library/blob/master/vars/withTeamSecrets.groovy https://github.com/hmcts/draft-store/blob/master/Jenkinsfile_CNP#L13-L29 Does that help? or are you after something else? |
Maybe this will help. Thank. Is there a chance that you will add the ability to use multiple vaults in the future? |
Possibly based on demand, how would you see it working? Are you looking for it with the credential provider? possibly with different credentials per vault? I think it would have to be namespaced then, something like |
I think I'm not the only one with this issue. And yes, in my opinion the most logical solution would be with separate credentials for each vault. It is very bad from a security point of view to store keys for all environments in one vault. |
Via Are you wanting this to be easier to use in |
For us the best solution is to connect via configuration-as-code plugin. If we could just connect a second key vault, as I've shown below, that would be great. All other methods do not suit us very much
|
Sure makes sense. FYI @chriskilding similar to your AWS issue |
@timja Is there a chance that you will implement such a solution within a couple of months, or is there no chance? |
There's a chance but no plans right now, If someone else were to contribute it then I can spare the time to review, guide and test it. |
Yep we've got the same issue in the AWS Secrets Manager: jenkinsci/aws-secrets-manager-credentials-provider-plugin#70 My plan was to introduce some kind of optional Starter for ten is something like this in the Jenkinsfile (in your case the
As you suggest we'd then also need a way to configure namespaces on the credential providers in the casc.yaml. The idea needs work but, with more discussion, could be made viable. |
My suggestion without the 'namespace' feature support is to just prefix it with the vault name / account id in AWS and then a separator like a |
It will be very useful for me also |
Does Azure have a notion of For example can you have things like
AWS does have this, and that's what complicates just adding the account ID as a prefix. The plugin won't know which bit of the combined name is an account ID and what's part of the hierarchy. |
No azure has separate ‘vaults’ for that |
Your checklist for this issue
Jenkins version 2.281
Plugin version 2.2
OS CentOS 7
Description
It would be great to be able to connect multiple key vaults.
Is this something that is already supported and what I missed in the documentation?
The text was updated successfully, but these errors were encountered: