spring-cloud / spring-cloud/spring-cloud-config

composite vault setup with different namespace

Open
#2,662 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feedback-provided
Dominant language
Java
Stars
2k
Forks
1.3k
Avg merge
2d 59m
Merged PRs (30d)
16

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the composite Vault setup with the two namespaces shown in the issue, then trace when the clientHttpRequestInterceptor runs relative to VaultClient namespace creation. Done means the custom interceptor executes after the X-Vault-namespace header is added for both Vault entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.