security: add support for main action

This commit adds support for the change in elasticsearch where the `/` rest
endpoint now delegates to an action and can be authorized.

Original commit: elastic/x-pack-elasticsearch@8ef38ce50f
This commit is contained in:
jaymode 2016-04-07 05:55:06 -04:00
parent 9e2635631c
commit 8049a82953
5 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,7 @@ admin:
graph_explorer: graph_explorer:
cluster: cluster:
- cluster:monitor/health - cluster:monitor/health
- cluster:monitor/main
indices: indices:
- names: '*' - names: '*'
privileges: privileges:
@ -21,6 +22,7 @@ graph_explorer:
no_graph_explorer: no_graph_explorer:
cluster: cluster:
- cluster:monitor/health - cluster:monitor/health
- cluster:monitor/main
indices: indices:
- names: '*' - names: '*'
privileges: privileges:

View File

@ -30,4 +30,5 @@ crappy_role:
- cluster:monitor/nodes/info - cluster:monitor/nodes/info
- cluster:monitor/health - cluster:monitor/health
- cluster:monitor/nodes/liveness - cluster:monitor/nodes/liveness
- cluster:monitor/main

View File

@ -23,7 +23,7 @@ monitoring_user:
# Marvel remote agent role. Assign to the agent user on the remote marvel cluster # Marvel remote agent role. Assign to the agent user on the remote marvel cluster
# to which the marvel agent will export all its data # to which the marvel agent will export all its data
remote_monitoring_agent: remote_monitoring_agent:
cluster: [ "manage_index_templates" ] cluster: [ "manage_index_templates", "monitor" ]
indices: indices:
- names: - names:
- '.marvel-es-*' - '.marvel-es-*'

View File

@ -13,6 +13,7 @@ cluster:admin/snapshot/status
cluster:admin/tasks/cancel cluster:admin/tasks/cancel
cluster:monitor/allocation/explain cluster:monitor/allocation/explain
cluster:monitor/health cluster:monitor/health
cluster:monitor/main
cluster:monitor/nodes/hot_threads cluster:monitor/nodes/hot_threads
cluster:monitor/nodes/info cluster:monitor/nodes/info
cluster:monitor/nodes/stats cluster:monitor/nodes/stats

View File

@ -3,6 +3,7 @@ cluster:admin/snapshot/status[nodes]
cluster:admin/snapshot/status[nodes][n] cluster:admin/snapshot/status[nodes][n]
cluster:admin/tasks/cancel[n] cluster:admin/tasks/cancel[n]
cluster:monitor/allocation/explain cluster:monitor/allocation/explain
cluster:monitor/main
cluster:monitor/nodes/hot_threads[n] cluster:monitor/nodes/hot_threads[n]
cluster:monitor/nodes/info[n] cluster:monitor/nodes/info[n]
cluster:monitor/nodes/liveness cluster:monitor/nodes/liveness