Skip to content

GH-920 Handle duplicate database roles#954

Open
goutamadwant wants to merge 1 commit into
spring-cloud:mainfrom
goutamadwant:GH-920
Open

GH-920 Handle duplicate database roles#954
goutamadwant wants to merge 1 commit into
spring-cloud:mainfrom
goutamadwant:GH-920

Conversation

@goutamadwant

Copy link
Copy Markdown

Summary

  • Use distinct database secret backend metadata names when the same Vault database role maps to different target username and password properties.
  • Allow multiple spring.cloud.vault.databases entries with the same backend and role to contribute separate datasource credential properties.
  • Add regression coverage for primary and secondary datasource properties backed by the same Vault database role.

Fixes gh-920

Testing

  • git diff --check
  • ./mvnw -pl spring-cloud-vault-config-databases -Dtest='*UnitTests' test

Use distinct database secret backend metadata names when the same Vault database role is mapped to different target username and password properties.

Fixes spring-cloudgh-920

Signed-off-by: Goutam Adwant <workwithgoutam@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vault database - datasource username and password not populated when multiple databases use same vault db role

1 participant