0
0
Spring Bootframework~5 mins

Securing actuator endpoints in Spring Boot - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of securing actuator endpoints in Spring Boot?
Securing actuator endpoints protects sensitive application information and controls from unauthorized access, ensuring only trusted users can view or manage the app's health, metrics, and configurations.
Click to reveal answer
intermediate
Which Spring Boot property enables security for actuator endpoints?
The property management.endpoints.web.exposure.include controls which endpoints are exposed, and management.endpoint.<endpoint>.enabled controls if an endpoint is active. Security is often configured with Spring Security to restrict access.
Click to reveal answer
intermediate
How do you restrict actuator endpoints to authenticated users only?
Add Spring Security and configure HTTP security to require authentication for actuator endpoints, for example by matching /actuator/** and requiring login or specific roles.
Click to reveal answer
beginner
What is the default exposure level of actuator endpoints in Spring Boot?
By default, only the health and info endpoints are exposed over HTTP. Other endpoints are not exposed unless explicitly configured.
Click to reveal answer
beginner
Why should sensitive actuator endpoints like 'shutdown' be secured or disabled?
Endpoints like 'shutdown' can stop the application remotely. If left unsecured, attackers could disrupt service. Securing or disabling them prevents unauthorized control.
Click to reveal answer
Which Spring Boot property controls which actuator endpoints are exposed over HTTP?
Aspring.security.user.name
Bmanagement.endpoints.web.exposure.include
Cserver.port
Dmanagement.endpoint.enabled
What is the best way to secure actuator endpoints in a Spring Boot app?
AUse Spring Security to require authentication for actuator URLs
BDisable all actuator endpoints
CExpose all endpoints publicly
DChange server port
By default, which actuator endpoints are exposed over HTTP?
Ahealth and info
Bshutdown and metrics
Call endpoints
Dnone
What could happen if the 'shutdown' actuator endpoint is left unsecured?
AIt will expose user data
BNothing, it is safe by default
CAttackers could stop the application remotely
DIt will slow down the app
How can you disable a specific actuator endpoint like 'shutdown'?
ARemove Spring Security
BDelete the actuator dependency
CSet server.port=0
DSet management.endpoint.shutdown.enabled=false
Explain how to secure actuator endpoints in a Spring Boot application.
Think about controlling who can see and use the actuator URLs.
You got /4 concepts.
    Why is it important to limit access to actuator endpoints?
    Consider what could happen if anyone could access these endpoints.
    You got /4 concepts.