mirror of
https://github.com/minio/minio.git
synced 2025-11-25 20:16:10 -05:00
feat: allow prometheus for only authorized users (#12121)
allow restrictions on who can access Prometheus endpoint, additionally add prometheus as part of diagnostics canned policy. Signed-off-by: Harshavardhana <harsha@minio.io>
This commit is contained in:
@@ -31,6 +31,8 @@ const (
|
||||
|
||||
// StorageInfoAdminAction - allow listing server info
|
||||
StorageInfoAdminAction = "admin:StorageInfo"
|
||||
// PrometheusAdminAction - prometheus info action
|
||||
PrometheusAdminAction = "admin:Prometheus"
|
||||
// DataUsageInfoAdminAction - allow listing data usage info
|
||||
DataUsageInfoAdminAction = "admin:DataUsageInfo"
|
||||
// ForceUnlockAdminAction - allow force unlocking locks
|
||||
@@ -141,6 +143,7 @@ var supportedAdminActions = map[AdminAction]struct{}{
|
||||
DataUsageInfoAdminAction: {},
|
||||
TopLocksAdminAction: {},
|
||||
ProfilingAdminAction: {},
|
||||
PrometheusAdminAction: {},
|
||||
TraceAdminAction: {},
|
||||
ConsoleLogAdminAction: {},
|
||||
KMSKeyStatusAdminAction: {},
|
||||
|
||||
Reference in New Issue
Block a user