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

Pass JWT token to spring cloud config server

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

Nobody has claimed this yet.

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

Description

Describe the bug
I'm utilizing Spring Cloud Config Client version 4.1. Following the guidelines provided in the documentation found at https://docs.spring.io/spring-cloud-config/docs/current/reference/html/#_providing_a_custom_resttemplate_using_config_data. My objective is to transmit a JWT token to the config server for token authentication prior to delivering configurations to the client. However, the CustomBootstrapRegistryInitializer remains untriggered. Below is a sample implementation:

Sample
https://github.com/satya108agarwal/config-client/blob/master/src/main/java/config/CustomBootstrapRegistryInitializer.java

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 with the Spring Cloud Config documentation section on providing a custom RestTemplate using Config Data and inspect config/CustomBootstrapRegistryInitializer.java in the linked sample. Reproduce the Spring Cloud Config Client 4.1 setup and verify whether CustomBootstrapRegistryInitializer is invoked before configuration delivery; done means the documented JWT-authenticated client flow works.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.