Skip to content
Preptima
mediumScenarioConceptMidSeniorStaff

Security review asks which Actuator endpoints are exposed in production. What do you expose, to whom, and which one quietly leaks secrets?

Expose health to the platform, metrics to the scraper, and nothing else over HTTP without authentication, ideally on a separate management port. The quiet leak is heapdump: masking protects the env and configprops responses, but a heap dump holds every secret, token and customer record in memory unmasked.

4 min readUpdated 2026-10-09Target archetype: Enterprise Captive, Fintech

Answer

Short answer

Expose Spring Boot Actuator endpoints by audience, not by convenience. The orchestrator gets health, the metrics scraper gets prometheus or metrics, and anything an operator needs sits behind authentication on a management port the internet cannot reach. The endpoint that quietly leaks secrets is heapdump. Masking hides values in the env and configprops responses, but a heap dump is a copy of memory, with every decrypted password and token in it.

Was this answer helpful?

Likely follow-ups

  • How would you capture a heap dump for a memory incident without leaving the endpoint exposed afterwards?
  • What can an attacker learn from the beans and mappings endpoints even though they contain no secrets?
  • Why must a wildcard in the exposure include list be quoted in YAML?
  • What do health details reveal when show-details is left at always?

Related questions

Further reading

Related Topics