ESP REST Can I disable Spring Boot endpoints in the JVM
search cancel

ESP REST Can I disable Spring Boot endpoints in the JVM

book

Article ID: 274630

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

How to disable default endpoints enabled in the ESP REST JVM. 

1. Can we completely disable these without impacting ESPREST via IJO** parameters?

2. What is the best method / syntax for doing so?

Affected Product:
Spring Boot Actuator heapdump endpoint
Spring Boot Actuator env endpoint
Spring Boot Actuator threaddump endpoint
Spring Boot Actuator jolokia endpoint
Spring Boot Actuator httptrace endpoint
Spring Boot Actuator startup endpoint

Environment

Component: ESP WORKLOAD AUTOMATION
Release:   12.0

Resolution

We advise to not disable all.  The API mediation integration depends on some, maybe more added later. The health and info endpoint should remain enabled.

Add the following to the RESTPROP member in your initparms.
This is CYBWS008 from the sample library prefix.CD7YSAMP.

 
management.endpoints.enabled-by-default=false
management.endpoint.info.enabled=true
management.endpoint.health.enabled=true