Skip to content
Ameen Abozaid
Planned lessonJNR-042-L03

Locking down Actuator

  • Lesson 3 of 6
  • Junior
On This Lesson 4 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

expose only the safe operational endpoints.

Planned topics

  • Actuator exposes health, metrics, environment, and more; some endpoints reveal secrets or allow actions.
  • Expose only what is needed: management.endpoints.web.exposure.include=health,info.
  • Never expose env, heapdump, beans, or shutdown publicly.
  • Protect the rest with authentication and a role, or run them on a separate management port.
  • Hide health details from anonymous callers.
Draft outline details

Demonstration

yaml
management:
  endpoints.web.exposure.include: health,info
  endpoint.health.show-details: never

Check your understanding

Which endpoint can leak configuration values?

Show answer

/actuator/env.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.