Skip to content

Commit 64bee2d

Browse files
Copilotmprins
andauthored
PMW-59: Update actuator configuration for Spring Boot 4.0.2 (#299)
* Initial plan * Update actuator properties for Spring Boot 4.0.2 compatibility Co-authored-by: mprins <1165786+mprins@users.noreply.github.com> * Fix enum value format for health.show-details property Co-authored-by: mprins <1165786+mprins@users.noreply.github.com> * Add documentation about actuator security configuration Co-authored-by: mprins <1165786+mprins@users.noreply.github.com> * update deprecated config * remove repository config as we have none --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mprins <1165786+mprins@users.noreply.github.com>
1 parent 74bec57 commit 64bee2d

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/main/resources/application.properties

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,23 @@ spring.datasource.username=planmonitor-wonen
3636
spring.datasource.password=planmonitor-wonen
3737

3838
# Actuator
39-
management.endpoints.access.default=read_only
39+
management.endpoints.access.default=none
4040
management.endpoints.web.base-path=/api/planmonitorwonen/actuator
4141
management.endpoints.web.exposure.include=info,health,prometheus,loggers,logfile,mappings
4242

4343
# we don't have a logfile configured, so this will return 404
44-
management.endpoint.logfile.enabled=true
44+
management.endpoint.logfile.access=read_only
4545
# NOTE this `loggers` is an endpoint that can change the configuration while running using POST requests
46-
management.endpoint.loggers.enabled=true
47-
management.endpoint.info.enabled=true
48-
management.endpoint.health.enabled=true
49-
management.endpoint.health.show-details=ALWAYS
50-
management.endpoint.configprops.show-values=WHEN_AUTHORIZED
46+
management.endpoint.loggers.access=read_only
47+
management.endpoint.info.access=read_only
48+
management.endpoint.health.access=read_only
49+
management.endpoint.health.show-details=always
50+
management.endpoint.configprops.show-values=when-authorized
5151
# too slow with bcrypt and http basic (~100ms password hashing each request) - use prometheus endpoint instead
52-
management.endpoint.metrics.enabled=false
53-
management.endpoint.prometheus.enabled=true
52+
management.endpoint.metrics.access=none
53+
management.endpoint.prometheus.access=read-only
5454
management.metrics.tags.application=${spring.application.name}
5555
management.metrics.tags.hostname=${HOST:localhost}
56-
management.metrics.data.repository.autotime.enabled=true
57-
management.metrics.data.repository.autotime.percentiles=0.5,0.95,0.99
5856
management.prometheus.metrics.export.enabled=true
5957
management.prometheus.metrics.export.descriptions=true
6058

0 commit comments

Comments
 (0)