Securing Eureka in Spring cloud

好久不见. 提交于 2019-12-04 09:54:39

Ok, turns out that after you post an question is when suddenly you discover a way of doing.

I have figured out the part of my question:

in the Eureka server put this

security:
  basic:
    enabled: true
  user:
      name: user # login username
      password: password

In you service then put this

eureka:
  client:
    registerWithEureka: true
    fetchRegistry: true
    serviceUrl:
      defaultZone: http://user:password@localhost:8761/eureka/

After this services are authenticating to Eureka nd Eureka will reject any service without these credentials.

So Now to the second part of my question. What other ways can I secure this connection that are more secure?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!