Skip to content

Commit f00cc0e

Browse files
authored
note section added for security implications of exposed actuator env. (#1231)
1 parent b4010c9 commit f00cc0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/src/main/asciidoc/spring-cloud-commons.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ For a Spring Boot Actuator application, some additional management endpoints are
248248
* `/actuator/restart` to close the `ApplicationContext` and restart it (disabled by default).
249249
* `/actuator/pause` and `/actuator/resume` for calling the `Lifecycle` methods (`stop()` and `start()` on the `ApplicationContext`).
250250

251+
NOTE: While enabling the `POST` method for `/actuator/env` endpoint can provide flexibility and convenience in managing your application environment variables,
252+
it's critical to ensure that the endpoint is secured and monitored to prevent potential security risks.
253+
Add a `spring-boot-starter-security` dependency to configure access control for the actuator’s endpoint.
254+
251255
NOTE: If you disable the `/actuator/restart` endpoint then the `/actuator/pause` and `/actuator/resume` endpoints
252256
will also be disabled since they are just a special case of `/actuator/restart`.
253257

0 commit comments

Comments
 (0)