Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i block"/actuator" endpoint in gateway #3374

Closed
niteshk9894 opened this issue Apr 25, 2024 · 3 comments
Closed

How can i block"/actuator" endpoint in gateway #3374

niteshk9894 opened this issue Apr 25, 2024 · 3 comments

Comments

@niteshk9894
Copy link

I wanted to know how can i block actuator endpoint in spring cloud gateway. Basically i want to block it for external access but internal pod to pod communication i want to allow it .

For example :

I created a routeLocator like below just example i

.route("generic_route", r -> r.order(0).path("/**").filters(f->f.filter(urlFilter)).uri("no://op"))

but it is not going through this filter or route.

@hsb786
Copy link

hsb786 commented Apr 28, 2024

You can specify the actuator's port separately

server:
port: 5100 #service port
management:
server:
port: 5200 #actuator port

@niteshk9894
Copy link
Author

I used webFilter then it works ...... Thanks for letting me know to run on diff port.
#2784

@niteshk9894
Copy link
Author

issue resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants