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

Fixes the SpringVaultEnvironmentRepository issue with composite profile #2594

Closed
wants to merge 1 commit into from

Conversation

kvmw
Copy link
Contributor

@kvmw kvmw commented Oct 17, 2024

Fixes #2592

So the SpringVaultEnvironmentRepositoryFactory::build was being called with the correct instance of VaultEnvironmentProperties but it was not using those properties for creation of VaultTemplate. Instead it was using the injected instance of SpringVaultClientConfiguration which had only the vault properties provided under spring.cloud.config.server.vault.

Copy link
Contributor

@ryanjbaxter ryanjbaxter left a comment

Choose a reason for hiding this comment

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

We cannot change public methods in a minor release, can we do this so we dont break existing method signatures? If so I think this can also go in 4.1.x

@kvmw
Copy link
Contributor Author

kvmw commented Oct 17, 2024

We cannot change public methods in a minor release, can we do this so we dont break existing method signatures? If so I think this can also go in 4.1.x

Oh, you are so fast. I was just preparing the PR description. Let me see If there is a way to fix it without changing the method signature.

@kvmw kvmw marked this pull request as draft October 17, 2024 12:57
@kvmw kvmw marked this pull request as ready for review October 17, 2024 13:59
@kvmw kvmw requested a review from ryanjbaxter October 17, 2024 13:59
@ryanjbaxter
Copy link
Contributor

Also can you make this PR against the 4.1.x branch

@kvmw
Copy link
Contributor Author

kvmw commented Oct 18, 2024

closing this in favour of #2595

@kvmw kvmw closed this Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vault configuration in composite profile is not picked up.
3 participants