← Java / Spring · 目次

JAVA-023 / 初級

Actuator エンドポイントの全公開

A05:2021 Security Misconfiguration · CWE-200 Exposure of Sensitive Information

なぜ問題になるのか?

/actuator/env、/heapdump から秘密値やメモリダンプが漏えいします。

修正方法

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

参考資料