Skip to content

Enables defining a base path for CredHub credentials#2521

Merged
ryanjbaxter merged 1 commit intospring-cloud:4.1.xfrom
kvmw:kvmw/credhub-key-path
Sep 9, 2024
Merged

Enables defining a base path for CredHub credentials#2521
ryanjbaxter merged 1 commit intospring-cloud:4.1.xfrom
kvmw:kvmw/credhub-key-path

Conversation

@kvmw
Copy link
Copy Markdown
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.

@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