Repository navigation
added shared path for vault credential lookup - #3221
Conversation
Signed-off-by: Holger Protzek <[email protected]>
|
Hi, any change to get this merged? |
|
@hprotzek Sorry for the delay, I held off on PR review for a bit to focus on getting 5.0 out the door. Now that it's out I'll get back to reviewing PRs this week. 🙂 |
|
Accessing some shared secrets across teams is a pretty common scenario and now it’s a real pain point as we have to duplicate through which introduces some operational overhead. Meanwhile, it would be nice if the shared path can be multiple instead of one for the sake of flexibility. |
|
FWIW, I've started on a proposal that should eliminate the need for this: concourse/rfcs#21 In the mean-time, if this is still a huge blocker I'm happy to review this PR and probably merge it as long as it's a small change with low security risk. |
|
@vito Thanks for the new proposal, I will look into it. Meanwhile could you review this PR, it would help us a lot if we can use it now and the change is very small and should not break any exiting config. |
vito
left a comment
There was a problem hiding this comment.
@hprotzek Agreed - looks good so far, I just noticed the CI builds never ran so I triggered them. Thanks for adding unit tests!
FWIW, we have coverage for Vault in the TopGun suite as well but now that there are unit tests I think it's OK to not add anything there, since it'd be covering the same thing in a more expensive way.
I'll approve for now and check back once the builds finish. 👍 Thanks!
|
Merging - thanks! |
|
Hi, Do we have similar feature for Credhub? Thanks |
We have a lot of shared secrets, that we have to copy into each team folder. Also sometimes we create vault secrets during provisioning, where we are not aware of the available teams in Concourse.
This PR adds an optional
shared-pathto the vault credential lookup. Existing behaviour of the credential lookup rules stays the same, except that if the path is configured, and credentials are neither found in/concourse/TEAM_NAME/PIPELINE_NAME/foo_paramor/concourse/TEAM_NAME/foo_paramit will check the shared path/concourse/SHARED_PATH/foo_param.Resolves: #2442