forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[index management] better privilege checking for enrich policies (ela…
…stic#201717) ## Summary Kibana roles with only `manage_enrich` or `monitor_enrich` will now have access to the Enrich Policy tab in Index Management. --- The `registerElasticsearchFeature` api is too restrictive to use for index management as it only allows a single set of privileges to determine whether a given management app is shown AND any stated privilege is combined in an `AND` logic statement. We need `OR` - index management may cover a number of different privileges that don't overlap. The solution - use an observable to subscribe to the capabilities api and register the management app based on that. This pr focuses on Enrich Policies and removes UI elements as appropriate based on `manage_enrich` or `monitor_enrich` and leaves other index management tabs alone as these will be addressed in follow up PRs. Part of elastic#178654
- Loading branch information
1 parent
007bf3f
commit 3765479
Showing
20 changed files
with
266 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
x-pack/plugins/index_management/public/application/components/enrich_policies/index.ts
This file was deleted.
Oops, something went wrong.
82 changes: 0 additions & 82 deletions
82
...lugins/index_management/public/application/components/enrich_policies/with_privileges.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.