shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[Question] How can we configure it to isolate requests from accessing these internal interfaces of shenyu-bootstrap?

Open chaclus opened this issue 1 year ago • 1 comments

Question

As the entry point for traffic following load balancing, the Shenyu gateway directs all subdomains directly to shenyu-bootstrap. However, some API interfaces in shenyu-bootstrap are unauthenticated and can be accessed directly via domain + URI, such as /actuator, /actuator/env, etc. How can we configure it to isolate requests from accessing these internal interfaces of shenyu-bootstrap?

chaclus avatar Jun 19 '24 03:06 chaclus

@chaclus in shenyu bootstrap , you can config the internal interface like this :

  1. you can write a api start with /shenyu , such as /shenyu/detail
  2. you can config health path in yaml , shenyu.health.paths
shenyu: 
  health:
    enabled: true
    paths:
      - /actuator
      - /health_check

hql0312 avatar Jul 02 '24 04:07 hql0312