spring-cloud/spring-cloud-netflix

Oauth token cannot be injected to replica requests for Eureka cluster

Aberta

#4.046 aberto em 16 de nov. de 2021

 (3 comentários) (0 reação) (0 responsável)Java (2.433 forks)batch import
documentationhelp wanted

Métricas do repositório

Stars
 (4.805 estrelas)
Métricas de merge de PR
 (Mesclagem média 3h 47m) (5 fundiu PRs em 30d)

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.

Guia do colaborador