У нас есть два микросервиса, развернутые на AWS EKS в одном пространстве имен. Мы пытаемся вызвать API одной службы в другой службе.
Если мы попытаемся вызвать API из POD с помощью Curl, это сработает. Если мы также используем веб-клиент в коде для вызова Тогда API работает, но когда мы используем Feign Client, он не работает.
Во всех реализациях передаются только заголовки авторизации и типа контента.
Ниже приведена ошибка:
Код: Выделить всё
Your system policy has denied access to the requested URL.
Transaction ID: dcff724f84f5aca8-00000000eadbc942-0000000065e5d403
For assistance, contact your network support team.
feign.FeignException$Forbidden: [403 Forbidden] during [POST] to [http://test-service:8080/process/7336f66a-7ab5-4a23-23ed-d7cde05a4eda]
Access Denied
spring-boot:3.1.6
spring-cloud-starter-openfeign:4.0.2
I am trying to call one service API from another service that is deployed in the same namespace of AWS EKS.
Using a web client I can successfully call the API but getting 403 while using Feign client. Passed the same headers in both implementations.
Источник: https://stackoverflow.com/questions/781 ... ng-feign-c