Skip to content

added shared path for vault credential lookup - #3221

Merged
vito merged 1 commit into
concourse:masterfrom
hprotzek:vault-shared-path
Mar 20, 2019
Merged

vito merged 1 commit into
concourse:masterfrom
hprotzek:vault-shared-path

Conversation

@hprotzek

@hprotzek hprotzek commented Feb 6, 2019 •

Copy link
Copy Markdown
Contributor

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-path to 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_param or /concourse/TEAM_NAME/foo_param it will check the shared path /concourse/SHARED_PATH/foo_param.

Resolves: #2442

@hprotzek

hprotzek commented Mar 4, 2019

Copy link
Copy Markdown
Contributor Author

Hi, any change to get this merged?

@hprotzek hprotzek reopened this Mar 4, 2019
@vito

vito commented Mar 10, 2019

Copy link
Copy Markdown
Contributor

@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. 🙂

@brightzheng100

Copy link
Copy Markdown

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.
So should we extend and build this feature in a generic Concourse level, instead of backend credential manager specific?

Meanwhile, it would be nice if the shared path can be multiple instead of one for the sake of flexibility.

@vito

vito commented Mar 15, 2019

Copy link
Copy Markdown
Contributor

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.

@hprotzek

Copy link
Copy Markdown
Contributor Author

@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 vito left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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!

@vito

vito commented Mar 20, 2019

Copy link
Copy Markdown
Contributor

Merging - thanks!

@vito
vito merged commit 712c4dc into concourse:master Mar 20, 2019
@vito vito added the release/documented Documentation and release notes have been updated. label Apr 5, 2019
@gagsbd

gagsbd commented Aug 6, 2021

Copy link
Copy Markdown

Hi,

Do we have similar feature for Credhub?

Thanks
Gags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/documented Documentation and release notes have been updated.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow concourse to support global secrets

4 participants