Tools Page (#1180)
* Tools Page Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> * Help Boxes Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> * Remove Un-Used code Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
@@ -67,11 +67,13 @@ var (
|
||||
remoteBuckets = "/remote-buckets"
|
||||
replication = "/replication"
|
||||
license = "/license"
|
||||
watch = "/watch"
|
||||
heal = "/heal"
|
||||
trace = "/trace"
|
||||
logs = "/logs"
|
||||
healthInfo = "/health-info"
|
||||
watch = "/tools/watch"
|
||||
heal = "/tools/heal"
|
||||
trace = "/tools/trace"
|
||||
tools = "/tools"
|
||||
logs = "/tools/logs"
|
||||
auditLogs = "/tools/audit-logs"
|
||||
healthInfo = "/tools/diagnostics"
|
||||
)
|
||||
|
||||
type ConfigurationActionSet struct {
|
||||
@@ -261,6 +263,16 @@ var logsActionSet = ConfigurationActionSet{
|
||||
),
|
||||
}
|
||||
|
||||
// toolsActionSet contains the list of admin actions required for this endpoint to work
|
||||
var toolsActionSet = ConfigurationActionSet{
|
||||
actionTypes: iampolicy.NewActionSet(
|
||||
iampolicy.AllAdminActions,
|
||||
),
|
||||
actions: iampolicy.NewActionSet(
|
||||
iampolicy.ConsoleLogAdminAction,
|
||||
),
|
||||
}
|
||||
|
||||
// traceActionSet contains the list of admin actions required for this endpoint to work
|
||||
var traceActionSet = ConfigurationActionSet{
|
||||
actionTypes: iampolicy.NewActionSet(
|
||||
@@ -327,6 +339,8 @@ var endpointRules = map[string]ConfigurationActionSet{
|
||||
heal: healActionSet,
|
||||
trace: traceActionSet,
|
||||
logs: logsActionSet,
|
||||
auditLogs: logsActionSet,
|
||||
tools: toolsActionSet,
|
||||
healthInfo: healthInfoActionSet,
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ func TestGetAuthorizedEndpoints(t *testing.T) {
|
||||
"admin:*",
|
||||
},
|
||||
},
|
||||
want: 30,
|
||||
want: 32,
|
||||
},
|
||||
{
|
||||
name: "all s3 endpoints",
|
||||
@@ -89,7 +89,7 @@ func TestGetAuthorizedEndpoints(t *testing.T) {
|
||||
"s3:*",
|
||||
},
|
||||
},
|
||||
want: 32,
|
||||
want: 34,
|
||||
},
|
||||
{
|
||||
name: "Console User - default endpoints",
|
||||
|
||||
Reference in New Issue
Block a user