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

Enables defining a base path for CredHub credentials #2521

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

kvmw
Copy link
Contributor

@kvmw kvmw commented Sep 9, 2024

When several instances of config-server using the same CredHub server, it is a common practice to separate each config-server credentials with a common base path.
For example, for given config-servers foo and bar, we can have following paths in CredHub:

  • /SERVER/FOO/secret/a
  • /SERVER/FOO/secret/b
  • ...
  • /SERVER/BAR/secret/x
  • /SERVER/BAR/secret/y
  • ...

This approach even enables CredHub admins to limit access to those base paths to certain servers only. So server foo can only access to credentials stored under /server/foo and server bar can only access credentials under /server/bar.

This PR adds an optional CredHub property called path which should prepend to all credentials stored or retrieved by this config server. Default value is empty.

Signed-off-by: kvmw <mshamsi@broadcom.com>
@ryanjbaxter ryanjbaxter added this to the 4.1.4 milestone Sep 9, 2024
@ryanjbaxter ryanjbaxter merged commit 4481536 into spring-cloud:4.1.x Sep 9, 2024
@kvmw kvmw deleted the kvmw/credhub-key-path branch September 9, 2024 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants