spring-cloud / spring-cloud/spring-cloud-netflix
Oauth token cannot be injected to replica requests for Eureka cluster
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 5k
- Forks
- 2.5k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 10
Description
Hi Spring Cloud Team,
I am using Spring Cloud Netflix as our Discovery Service, and also setup an Eureka cluster with 2 nodes. But got authentication issue for nodes replication with Oauth token.
Spring Cloud Version: 2020.0.2
eureka-core version: 1.10.11
I tried to inject Oauth token with guide: https://docs.spring.io/spring-cloud-netflix/docs/current/reference/html/#authenticating-with-the-eureka-server, this only works for general user requests to register app and also heartbeat, but doesn't work for cluster nodes replication requests, specifically "/eureka/peerreplication/batch/". So can we improve this to allow customization for replication requests? Or this is an issue for Eureka?
Thanks very much.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the Spring Cloud Netflix authentication guide and the Eureka peer replication endpoint /eureka/peerreplication/batch/. Trace how OAuth tokens are added for registration and heartbeat requests, then determine how replication requests could receive the same customization. Done means authenticated replication succeeds between the Eureka cluster nodes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- authentication, backend, distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100