Skip to content

Commit

Permalink
Add ILM privileges (#27461)
Browse files Browse the repository at this point in the history
This commit adds the `manage_ilm`, `read_ilm` cluster
privileges, and the `manage_ilm` index privilege.

these were introduced into ES by:
elastic/elasticsearch#36493
  • Loading branch information
talevy authored Dec 20, 2018
1 parent 5e84fe1 commit 88aa143
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x-pack/plugins/security/public/services/role_privileges.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const clusterPrivileges = [
'monitor_watcher',
'read_ccr',
'manage_ccr',
'manage_ilm',
'read_ilm',
];
const indexPrivileges = [
'all',
Expand All @@ -34,6 +36,7 @@ const indexPrivileges = [
'view_index_metadata',
'read_cross_cluster',
'manage_follow_index',
'manage_ilm',
];

export function getClusterPrivileges() {
Expand Down
3 changes: 3 additions & 0 deletions x-pack/plugins/security/public/services/shield_privileges.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ module.constant('shieldPrivileges', {
'monitor_watcher',
'read_ccr',
'manage_ccr',
'manage_ilm',
'read_ilm',
],
indices: [
'all',
Expand All @@ -38,6 +40,7 @@ module.constant('shieldPrivileges', {
'view_index_metadata',
'read_cross_cluster',
'manage_follow_index',
'manage_ilm',
],
applications: []
});
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ exports[`it renders without crashing 1`] = `
"isGroupLabelOption": false,
"label": "manage_ccr",
},
Object {
"isGroupLabelOption": false,
"label": "manage_ilm",
},
Object {
"isGroupLabelOption": false,
"label": "read_ilm",
},
]
}
selectedOptions={Array []}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ exports[`it renders without crashing 1`] = `
"isGroupLabelOption": false,
"label": "manage_follow_index",
},
Object {
"isGroupLabelOption": false,
"label": "manage_ilm",
},
]
}
selectedOptions={Array []}
Expand Down

0 comments on commit 88aa143

Please sign in to comment.