From the course: Advanced Spring: Spring Boot Actuator

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

How to secure Actuator endpoints with Spring Security

How to secure Actuator endpoints with Spring Security - Spring Boot Tutorial

From the course: Advanced Spring: Spring Boot Actuator

How to secure Actuator endpoints with Spring Security

- [Instructor] Currently our health endpoint reveals lots of details that we may not want exposed. Therefore, it'd be nice to be able to limit access to the full details of our health endpoint to specific users so that only perhaps users with a role of admin should be able to see the full details of our health endpoint. And this is what I mean. If I go back to Postman, and I trigger the health endpoints, let's say send, you can see the full details, right? So we want to make some changes here. If you're an admin, you should be able to see this. If you're not an admin, you should not be able to see this. This is what we're trying to achieve. So I'm going to go back here and talk about the things that we need to make this happen. So, first of all, we need to bring in spring security dependency into our application so that we can secure the application in general. Next, we need to go into the properties file and…

Contents