Make heapdump endpoint restricted by default

See gh-45624

Signed-off-by: Lari Hotari <lhotari@users.noreply.github.com>
This commit is contained in:
Lari Hotari
2025-05-20 17:33:49 +03:00
committed by Phillip Webb
parent 31c864b769
commit a9f5a4194e
4 changed files with 9 additions and 6 deletions

View File

@@ -36,6 +36,7 @@ import java.util.concurrent.locks.ReentrantLock;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.actuate.endpoint.Access;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
import org.springframework.boot.actuate.endpoint.web.WebEndpointResponse;
@@ -56,7 +57,7 @@ import org.springframework.util.ReflectionUtils;
* @author Andy Wilkinson
* @since 2.0.0
*/
@WebEndpoint(id = "heapdump")
@WebEndpoint(id = "heapdump", defaultAccess = Access.NONE)
public class HeapDumpWebEndpoint {
private final long timeout;