chore: stop exposing actuator env by default

This commit is contained in:
lingniu
2026-07-01 08:24:09 +08:00
parent 62ef3f5bc1
commit bb6ffa86fd
10 changed files with 14 additions and 10 deletions

View File

@@ -70,7 +70,7 @@ management:
endpoints:
web:
exposure:
include: health,info,metrics,prometheus,env
include: health,info,metrics,prometheus
metrics:
tags:
application: vehicle-analytics-app

View File

@@ -35,7 +35,8 @@ class VehicleAnalyticsAppDefaultsTest {
"${VEHICLE_STAT_ENABLED:true}")
.containsEntry(
"lingniu.ingest.sink.mq.consumer.bindings.vehicleStatEnvelopeConsumerProcessor.group-id",
"${KAFKA_GROUP_STAT:vehicle-stat}");
"${KAFKA_GROUP_STAT:vehicle-stat}")
.containsEntry("management.endpoints.web.exposure.include", "health,info,metrics,prometheus");
assertThat(properties.stringPropertyNames())
.noneMatch(name -> name.startsWith("lingniu.ingest.event-file-store."))