microservices

Exchange reference token for JWT - downstream microservices authorization

痴心易碎 提交于 2021-02-07 09:20:30
问题 I am currently creating a new application based on a Microservices architecture, with authentication provided by Identity Server 4. Following lots of research and also setting up proof of concepts, I have Identity Server setup to secure the API's and a native application successfully accessing these services using tokens. Initially the client was issued an access token which was used to access the API's, I have however now switched this out to use reference tokens. Now, onto the issue! The

Exchange reference token for JWT - downstream microservices authorization

試著忘記壹切 提交于 2021-02-07 09:20:21
问题 I am currently creating a new application based on a Microservices architecture, with authentication provided by Identity Server 4. Following lots of research and also setting up proof of concepts, I have Identity Server setup to secure the API's and a native application successfully accessing these services using tokens. Initially the client was issued an access token which was used to access the API's, I have however now switched this out to use reference tokens. Now, onto the issue! The

service cannot communicate with rabbitmq in k8s cluster

你说的曾经没有我的故事 提交于 2021-01-29 14:24:02
问题 I have k8s cluster (1.16) with one service in it's specific namespace, and a stateful set of rabbitmq (image: 3.8.0-alpine) with 3 replicas, one on each of my workers, in a different namespace. I configured the service to connect rabbitmq with amqp://user:password@rabbitmq-service.rabbitmq-namespace:5672 I'm getting this error in the logs of my service: Rabbit mq disconnected connect EHOSTUNREACH <rabbitmq_svc_ip>:5672 rabbitmq seems to be working fine. there are no errors shown in the pods.

spring config server- for local git repository

半腔热情 提交于 2021-01-29 11:22:08
问题 I'm trying to setting up spring cloud config server -Created git repository folder on my local F:\git-local-repository\repository -linked it using class path link source -Added property file for my service -After committing my changes on location F:\git-local-repository\repository -hitting url : http://localhost:8888/limits/default result in error : org.springframework.cloud.config.server.environment.NoSuchLabelException: No such label: master Caused by: org.eclipse.jgit.api.errors

JHipster - How to add route to external microservices in application.yml

一笑奈何 提交于 2021-01-29 10:42:30
问题 I'm using Jhipster 5.5.0 to build a zuul gateway capable to route rest request to different microservices. Some of this microservices are developed in different languages, deployed and running on different server. Every microservices is protected via OIDC using the same keycloak server, under different realms. Now I need to configure zuul route on application.yml properties file of my gateway app, to access this service by external rest client (customers) and using zuul for filtering request

Kubernetes - Ingress-nginx routing error (Cannot connect frontend to backend)

强颜欢笑 提交于 2021-01-29 10:11:30
问题 Need some serious help here ! Thanks in advance. I am trying to deploy a microservice based Java application. I am able to get to the frontend service(webapp) on my browser, but I am unable to connect it with the backend (auth service) and hence it shows authentication failure. HTML LOGIN FORM form points to "/login?referrerURL=" I checked the ingress nginx logs : Service "default/auth-srv" does not have any active Endpoint. Service "default/voice-srv" does not have any active Endpoint.

Multi-Cluster Kubernetes - cross cluster communication

北慕城南 提交于 2021-01-29 09:24:27
问题 Not sure if this is the right place, please point me to a different forum if not. In a multi-cluster kubernetes setup, is cross-cluster communication a valid design? In particular, a pod in one cluster relying on a pod in another cluster. Or are there limitations or anti-patterns associated with this that we should avoid? If not, what tools do you use to manage this deployment and monitor load on each cluster? 回答1: Multicluster deployments give you a greater degree of isolation and

Can we avoid mapping all the fields to entity class in springdata for elasticsearch, as I have more than 100 field in the json document?

早过忘川 提交于 2021-01-29 09:13:13
问题 I am implementing a spring-boot microservice for elasticsearch (es) operations using springdata APIs. My documents that are indexed in es are huge with multiple fields (more than 100). Is there a way to avoid defining/hardcoding all the fields in the entity class for elasticsearch object in java? My sample patient JSON could be like: { "key_1":"value_1", "key_2":"value_2", "key_3":"value_3", . . . "key_n":"value_n" } 回答1: If you can go for a slightly different form to store your data in

How do we design the Multiple NPM Private Package in NodeJs Microservices?

淺唱寂寞╮ 提交于 2021-01-29 07:43:02
问题 My project has over 30 microservices and 20 over private scope npm packages (4 teams working on these microservices). We are following those microservice best practices like DRY principles. However, we realized that there are a few issue within that we are unable to control well. The management of private npm version. e.g upgrade our private package version in our microservices. Circular dependencies between the private packages. Due to that, our microservices always build and deployment

How do we design the Multiple NPM Private Package in NodeJs Microservices?

五迷三道 提交于 2021-01-29 07:32:49
问题 My project has over 30 microservices and 20 over private scope npm packages (4 teams working on these microservices). We are following those microservice best practices like DRY principles. However, we realized that there are a few issue within that we are unable to control well. The management of private npm version. e.g upgrade our private package version in our microservices. Circular dependencies between the private packages. Due to that, our microservices always build and deployment