[fix] restrict the actuator endpoints to admin (#4277)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Duansg
2026-08-09 21:07:48 +08:00
committed by GitHub
co-authored by Claude Opus 5
parent 1a7b45ec26
commit 4566f62de3
8 changed files with 100 additions and 0 deletions
@@ -92,6 +92,8 @@ resourceRole:
- /api/ai/**===delete===[admin]
- /api/logs/sse/**===get===[admin,user,guest]
- /api/logs/ingest/**===post===[admin,user]
# spring boot actuator exposes jvm, http and datasource internals for scraping
- /actuator/**===get===[admin]
# config the resource restful api that need bypass auth protection
# rule: api===method
@@ -92,6 +92,8 @@ resourceRole:
- /api/ai/**===delete===[admin]
- /api/logs/sse/**===get===[admin,user,guest]
- /api/logs/ingest/**===post===[admin,user]
# spring boot actuator exposes jvm, http and datasource internals for scraping
- /actuator/**===get===[admin]
# config the resource restful api that need bypass auth protection
# rule: api===method
@@ -92,6 +92,8 @@ resourceRole:
- /api/ai/**===delete===[admin]
- /api/logs/sse/**===get===[admin,user,guest]
- /api/logs/ingest/**===post===[admin,user]
# spring boot actuator exposes jvm, http and datasource internals for scraping
- /actuator/**===get===[admin]
# config the resource restful api that need bypass auth protection
# rule: api===method
@@ -96,6 +96,8 @@ resourceRole:
- /api/ingestion/otlp/**===get===[admin,user,guest]
- /api/logs/**===get===[admin,user,guest]
- /api/traces/**===get===[admin,user,guest]
# spring boot actuator exposes jvm, http and datasource internals for scraping
- /actuator/**===get===[admin]
# config the resource restful api that need bypass auth protection
# rule: api===method
@@ -92,6 +92,8 @@ resourceRole:
- /api/ai/**===delete===[admin]
- /api/logs/sse/**===get===[admin,user,guest]
- /api/logs/ingest/**===post===[admin,user]
# spring boot actuator exposes jvm, http and datasource internals for scraping
- /actuator/**===get===[admin]
# config the resource restful api that need bypass auth protection
# rule: api===method