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

@@ -94,7 +94,7 @@ management:
endpoints:
web:
exposure:
include: health,info,metrics,prometheus,env
include: health,info,metrics,prometheus
health:
redis:
enabled: ${MANAGEMENT_HEALTH_REDIS_ENABLED:false}

View File

@@ -45,7 +45,8 @@ class Jt808IngestAppDefaultsTest {
"${VEHICLE_IDENTITY_MYSQL_INITIALIZE_SCHEMA:true}")
.containsEntry("lingniu.ingest.event-history.enabled", false)
.containsEntry("lingniu.ingest.vehicle-state.enabled", false)
.containsEntry("lingniu.ingest.vehicle-stat.enabled", false);
.containsEntry("lingniu.ingest.vehicle-stat.enabled", false)
.containsEntry("management.endpoints.web.exposure.include", "health,info,metrics,prometheus");
assertThat(properties.stringPropertyNames())
.noneMatch(name -> name.startsWith("lingniu.ingest.event-file-store."));