Make heapdump endpoint restricted by default
See gh-45624 Signed-off-by: Lari Hotari <lhotari@users.noreply.github.com>
This commit is contained in:
committed by
Phillip Webb
parent
31c864b769
commit
a9f5a4194e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user