Replace enabledByDefault to DefaultEnablement
This commit introduces a DefaultEnablement enum that replaces the "enabledByDefault" boolean flag of Endpoint. This allows to better control what indicates the default enablement of an endpoint. With DefaultEnablement#ENABLED, the endpoint is enabled unless an endpoint specific property says otherwise. With DefaultEnabled#DISABLED, the endpoint is disabled unless an endpoint specific property says otherwise. DefaultEnablement#NEUTRAL provides a dedicated option to indicate that we should resort to the default settings in absence of a specific property. See gh-10161
This commit is contained in:
@@ -1074,28 +1074,28 @@ content into your application; rather pick only the properties that you need.
|
||||
|
||||
# AUDIT EVENTS ENDPOINT ({sc-spring-boot-actuator}/endpoint/AuditEventsEndpoint.{sc-ext}[AuditEventsEndpoint])
|
||||
endpoints.auditevents.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.auditevents.enabled=true # Enable the auditevents endpoint.
|
||||
endpoints.auditevents.jmx.enabled=true # Expose the auditevents endpoint as a JMX MBean.
|
||||
endpoints.auditevents.web.enabled=false # Expose the auditevents endpoint as a Web endpoint.
|
||||
endpoints.auditevents.enabled= # Enable the auditevents endpoint.
|
||||
endpoints.auditevents.jmx.enabled= # Expose the auditevents endpoint as a JMX MBean.
|
||||
endpoints.auditevents.web.enabled= # Expose the auditevents endpoint as a Web endpoint.
|
||||
|
||||
# AUTO-CONFIGURATION REPORT ENDPOINT ({sc-spring-boot-actuator}/endpoint/AutoConfigurationReportEndpoint.{sc-ext}[AutoConfigurationReportEndpoint])
|
||||
endpoints.autoconfig.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.autoconfig.enabled=true # Enable the autoconfig endpoint.
|
||||
endpoints.autoconfig.jmx.enabled=true # Expose the autoconfig endpoint as a JMX MBean.
|
||||
endpoints.autoconfig.web.enabled=false # Expose the autoconfig endpoint as a Web endpoint.
|
||||
endpoints.autoconfig.enabled= # Enable the autoconfig endpoint.
|
||||
endpoints.autoconfig.jmx.enabled= # Expose the autoconfig endpoint as a JMX MBean.
|
||||
endpoints.autoconfig.web.enabled= # Expose the autoconfig endpoint as a Web endpoint.
|
||||
|
||||
# BEANS ENDPOINT ({sc-spring-boot-actuator}/endpoint/BeansEndpoint.{sc-ext}[BeansEndpoint])
|
||||
endpoints.beans.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.beans.enabled=true # Enable the beans endpoint.
|
||||
endpoints.beans.jmx.enabled=true # Expose the beans endpoint as a JMX MBean.
|
||||
endpoints.beans.web.enabled=false # Expose the beans endpoint as a Web endpoint.
|
||||
endpoints.beans.enabled= # Enable the beans endpoint.
|
||||
endpoints.beans.jmx.enabled= # Expose the beans endpoint as a JMX MBean.
|
||||
endpoints.beans.web.enabled= # Expose the beans endpoint as a Web endpoint.
|
||||
|
||||
# CONFIGURATION PROPERTIES REPORT ENDPOINT ({sc-spring-boot-actuator}/endpoint/ConfigurationPropertiesReportEndpoint.{sc-ext}[ConfigurationPropertiesReportEndpoint])
|
||||
endpoints.configprops.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.configprops.enabled=true # Enable the configprops endpoint.
|
||||
endpoints.configprops.jmx.enabled=true # Expose the configprops endpoint as a JMX MBean.
|
||||
endpoints.configprops.enabled= # Enable the configprops endpoint.
|
||||
endpoints.configprops.jmx.enabled= # Expose the configprops endpoint as a JMX MBean.
|
||||
endpoints.configprops.keys-to-sanitize=password,secret,key,token,.*credentials.*,vcap_services # Keys that should be sanitized. Keys can be simple strings that the property ends with or regex expressions.
|
||||
endpoints.configprops.web.enabled=false # Expose the configprops endpoint as a Web endpoint.
|
||||
endpoints.configprops.web.enabled= # Expose the configprops endpoint as a Web endpoint.
|
||||
|
||||
# ENDPOINT DEFAULT SETTINGS
|
||||
endpoints.default.enabled=true # Enable all endpoints by default.
|
||||
@@ -1104,63 +1104,63 @@ content into your application; rather pick only the properties that you need.
|
||||
|
||||
# ENVIRONMENT ENDPOINT ({sc-spring-boot-actuator}/endpoint/EnvironmentEndpoint.{sc-ext}[EnvironmentEndpoint])
|
||||
endpoints.env.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.env.enabled=true # Enable the env endpoint.
|
||||
endpoints.env.jmx.enabled=true # Expose the env endpoint as a JMX MBean.
|
||||
endpoints.env.enabled= # Enable the env endpoint.
|
||||
endpoints.env.jmx.enabled= # Expose the env endpoint as a JMX MBean.
|
||||
endpoints.env.keys-to-sanitize=password,secret,key,token,.*credentials.*,vcap_services # Keys that should be sanitized. Keys can be simple strings that the property ends with or regex expressions.
|
||||
endpoints.env.web.enabled=false # Expose the env endpoint as a Web endpoint.
|
||||
endpoints.env.web.enabled= # Expose the env endpoint as a Web endpoint.
|
||||
|
||||
# FLYWAY ENDPOINT ({sc-spring-boot-actuator}/endpoint/FlywayEndpoint.{sc-ext}[FlywayEndpoint])
|
||||
endpoints.flyway.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.flyway.enabled=true # Enable the flyway endpoint.
|
||||
endpoints.flyway.jmx.enabled=true # Expose the flyway endpoint as a JMX MBean.
|
||||
endpoints.flyway.web.enabled=false # Expose the flyway endpoint as a Web endpoint.
|
||||
endpoints.flyway.enabled= # Enable the flyway endpoint.
|
||||
endpoints.flyway.jmx.enabled= # Expose the flyway endpoint as a JMX MBean.
|
||||
endpoints.flyway.web.enabled= # Expose the flyway endpoint as a Web endpoint.
|
||||
|
||||
# HEALTH ENDPOINT ({sc-spring-boot-actuator}/endpoint/HealthEndpoint.{sc-ext}[HealthEndpoint])
|
||||
endpoints.health.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.health.enabled=true # Enable the health endpoint.
|
||||
endpoints.health.jmx.enabled=true # Expose the health endpoint as a JMX MBean.
|
||||
endpoints.health.web.enabled=false # Expose the health endpoint as a Web endpoint.
|
||||
endpoints.health.enabled= # Enable the health endpoint.
|
||||
endpoints.health.jmx.enabled= # Expose the health endpoint as a JMX MBean.
|
||||
endpoints.health.web.enabled= # Expose the health endpoint as a Web endpoint.
|
||||
|
||||
# HEAP DUMP ENDPOINT ({sc-spring-boot-actuator}/endpoint/web/HeapDumpWebEndpoint.{sc-ext}[HeapDumpWebEndpoint])
|
||||
endpoints.heapdump.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.heapdump.enabled=true # Enable the heapdump endpoint.
|
||||
endpoints.heapdump.web.enabled=false # Expose the heapdump endpoint as a Web endpoint.
|
||||
endpoints.heapdump.enabled= # Enable the heapdump endpoint.
|
||||
endpoints.heapdump.web.enabled= # Expose the heapdump endpoint as a Web endpoint.
|
||||
|
||||
# INFO ENDPOINT ({sc-spring-boot-actuator}/endpoint/InfoEndpoint.{sc-ext}[InfoEndpoint])
|
||||
endpoints.info.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.info.enabled=true # Enable the info endpoint.
|
||||
endpoints.info.jmx.enabled=true # Expose the info endpoint as a JMX MBean.
|
||||
endpoints.info.web.enabled=false # Expose the info endpoint as a Web endpoint.
|
||||
endpoints.info.enabled= # Enable the info endpoint.
|
||||
endpoints.info.jmx.enabled= # Expose the info endpoint as a JMX MBean.
|
||||
endpoints.info.web.enabled= # Expose the info endpoint as a Web endpoint.
|
||||
|
||||
# LIQUIBASE ENDPOINT ({sc-spring-boot-actuator}/endpoint/LiquibaseEndpoint.{sc-ext}[LiquibaseEndpoint])
|
||||
endpoints.liquibase.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.liquibase.enabled=true # Enable the liquibase endpoint.
|
||||
endpoints.liquibase.jmx.enabled=true # Expose the liquibase endpoint as a JMX MBean.
|
||||
endpoints.liquibase.web.enabled=false # Expose the liquibase endpoint as a Web endpoint.
|
||||
endpoints.liquibase.enabled= # Enable the liquibase endpoint.
|
||||
endpoints.liquibase.jmx.enabled= # Expose the liquibase endpoint as a JMX MBean.
|
||||
endpoints.liquibase.web.enabled= # Expose the liquibase endpoint as a Web endpoint.
|
||||
|
||||
# LOG FILE ENDPOINT ({sc-spring-boot-actuator}/endpoint/web/LogFileWebEndpoint.{sc-ext}[LogFileWebEndpoint])
|
||||
endpoints.logfile.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.logfile.enabled=true # Enable the logfile endpoint.
|
||||
endpoints.logfile.enabled= # Enable the logfile endpoint.
|
||||
endpoints.logfile.external-file= # External Logfile to be accessed. Can be used if the logfile is written by output redirect and not by the logging system itself.
|
||||
endpoints.logfile.web.enabled=false # Expose the logfile endpoint as a Web endpoint.
|
||||
endpoints.logfile.web.enabled= # Expose the logfile endpoint as a Web endpoint.
|
||||
|
||||
# LOGGERS ENDPOINT ({sc-spring-boot-actuator}/endpoint/LoggersEndpoint.{sc-ext}[LoggersEndpoint])
|
||||
endpoints.loggers.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.loggers.enabled=true # Enable the loggers endpoint.
|
||||
endpoints.loggers.jmx.enabled=true # Expose the loggers endpoint as a JMX MBean.
|
||||
endpoints.loggers.web.enabled=false # Expose the loggers endpoint as a Web endpoint.
|
||||
endpoints.loggers.enabled= # Enable the loggers endpoint.
|
||||
endpoints.loggers.jmx.enabled= # Expose the loggers endpoint as a JMX MBean.
|
||||
endpoints.loggers.web.enabled= # Expose the loggers endpoint as a Web endpoint.
|
||||
|
||||
# REQUEST MAPPING ENDPOINT ({sc-spring-boot-actuator}/endpoint/RequestMappingEndpoint.{sc-ext}[RequestMappingEndpoint])
|
||||
endpoints.mappings.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.mappings.enabled=true # Enable the mappings endpoint.
|
||||
endpoints.mappings.jmx.enabled=true # Expose the mappings endpoint as a JMX MBean.
|
||||
endpoints.mappings.web.enabled=false # Expose the mappings endpoint as a Web endpoint.
|
||||
endpoints.mappings.enabled= # Enable the mappings endpoint.
|
||||
endpoints.mappings.jmx.enabled= # Expose the mappings endpoint as a JMX MBean.
|
||||
endpoints.mappings.web.enabled= # Expose the mappings endpoint as a Web endpoint.
|
||||
|
||||
# METRICS ENDPOINT ({sc-spring-boot-actuator}/endpoint/MetricsEndpoint.{sc-ext}[MetricsEndpoint])
|
||||
endpoints.metrics.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.metrics.enabled=true # Enable the metrics endpoint.
|
||||
endpoints.metrics.jmx.enabled=true # Expose the metrics endpoint as a JMX MBean.
|
||||
endpoints.metrics.web.enabled=false # Expose the metrics endpoint as a Web endpoint.
|
||||
endpoints.metrics.enabled= # Enable the metrics endpoint.
|
||||
endpoints.metrics.jmx.enabled= # Expose the metrics endpoint as a JMX MBean.
|
||||
endpoints.metrics.web.enabled= # Expose the metrics endpoint as a Web endpoint.
|
||||
|
||||
# SHUTDOWN ENDPOINT ({sc-spring-boot-actuator}/endpoint/ShutdownEndpoint.{sc-ext}[ShutdownEndpoint])
|
||||
endpoints.shutdown.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
@@ -1170,21 +1170,21 @@ content into your application; rather pick only the properties that you need.
|
||||
|
||||
# STATUS ENDPOINT ({sc-spring-boot-actuator}/endpoint/StatusEndpoint.{sc-ext}[StatusEndpoint])
|
||||
endpoints.status.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.status.enabled=true # Enable the status endpoint.
|
||||
endpoints.status.jmx.enabled=true # Expose the status endpoint as a JMX MBean.
|
||||
endpoints.status.web.enabled=false # Expose the status endpoint as a Web endpoint.
|
||||
endpoints.status.enabled= # Enable the status endpoint.
|
||||
endpoints.status.jmx.enabled= # Expose the status endpoint as a JMX MBean.
|
||||
endpoints.status.web.enabled= # Expose the status endpoint as a Web endpoint.
|
||||
|
||||
# THREAD DUMP ENDPOINT ({sc-spring-boot-actuator}/endpoint/ThreadDumpEndpoint.{sc-ext}[ThreadDumpEndpoint])
|
||||
endpoints.threaddump.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.threaddump.enabled=true # Enable the threaddump endpoint.
|
||||
endpoints.threaddump.jmx.enabled=true # Expose the threaddump endpoint as a JMX MBean.
|
||||
endpoints.threaddump.web.enabled=false # Expose the threaddump endpoint as a Web endpoint.
|
||||
endpoints.threaddump.enabled= # Enable the threaddump endpoint.
|
||||
endpoints.threaddump.jmx.enabled= # Expose the threaddump endpoint as a JMX MBean.
|
||||
endpoints.threaddump.web.enabled= # Expose the threaddump endpoint as a Web endpoint.
|
||||
|
||||
# TRACE ENDPOINT ({sc-spring-boot-actuator}/endpoint/TraceEndpoint.{sc-ext}[TraceEndpoint])
|
||||
endpoints.trace.cache.time-to-live=0 # Maximum time in milliseconds that a response can be cached.
|
||||
endpoints.trace.enabled=true # Enable the trace endpoint.
|
||||
endpoints.trace.jmx.enabled=true # Expose the trace endpoint as a JMX MBean.
|
||||
endpoints.trace.web.enabled=false # Expose the trace endpoint as a Web endpoint.
|
||||
endpoints.trace.enabled= # Enable the trace endpoint.
|
||||
endpoints.trace.jmx.enabled= # Expose the trace endpoint as a JMX MBean.
|
||||
endpoints.trace.web.enabled= # Expose the trace endpoint as a Web endpoint.
|
||||
|
||||
# MANAGEMENT HTTP SERVER ({sc-spring-boot-actuator}/autoconfigure/web/ManagementServerProperties.{sc-ext}[ManagementServerProperties])
|
||||
management.add-application-context-header=false # Add the "X-Application-Context" HTTP header in each response.
|
||||
|
||||
Reference in New Issue
Block a user