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

composite vault setup with different namespace #2662

Open
himnay opened this issue Dec 2, 2024 · 2 comments
Open

composite vault setup with different namespace #2662

himnay opened this issue Dec 2, 2024 · 2 comments

Comments

@himnay
Copy link

himnay commented Dec 2, 2024

1Describe the bug
I am trying to access the HTTP header property X-Vault-namespace from my clienthttprequestinterceptor but since this field is added after the vaultclient createnamespace is executed. how can I force to execute my custom clienthttprequestinterceptor to get execute at the last
Sample
spring:
cloud:
config:
server:
composite:
- type: vault
namespace: /xyz/abc
// other properties related to the vault
- type: vault
namespace: /alpha/beta
// other properties related to the vault

@ryanjbaxter
Copy link
Contributor

Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.

@ryanjbaxter
Copy link
Contributor

You might want to try creating a Bean of type VaultRestTemplateFactory

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

No branches or pull requests

3 participants