mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-17 09:40:58 +00:00
[fix] restrict the actuator endpoints to admin (#4277)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user