-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Granting kibana_system
reserved role access to "all" privileges to .adhoc.alerts*
and .internal.adhoc.alerts*
indices
#127321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
d559964
5966787
9a47df2
e34b3e7
49cf63d
5231345
c0df6dd
f543bd9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 127321 | ||
summary: Granting `kibana_system` reserved role access to "all" privileges to `.adhoc.alerts*` | ||
and `.internal.adhoc.alerts*` indices | ||
area: Authorization | ||
type: enhancement | ||
issues: [] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,6 +265,12 @@ static RoleDescriptor kibanaSystem(String name) { | |
RoleDescriptor.IndicesPrivileges.builder().indices(ReservedRolesStore.ALERTS_INDEX_ALIAS).privileges("all").build(), | ||
// "Alerts as data" public index alias used in Security Solution | ||
// Kibana system user uses them to read / write alerts. | ||
RoleDescriptor.IndicesPrivileges.builder() | ||
.indices(ReservedRolesStore.ADHOC_ALERTS_BACKING_INDEX, ReservedRolesStore.ADHOC_ALERTS_INDEX_ALIAS) | ||
.privileges("create_index", "manage", "read", "write") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @e40pud Thanks for updating this! The last thing I'd like to ask, is about the
Aiming for the minimum necessary privileges, could we include just a subset of these? If not, could you provide justification to include them? Sorry to have to ask. We like to be as thorough as we can when changing this role. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I went through the ES apis that we use to work with this indices and here is the list of all of them:
Regarding the
and according to the
|
||
.build(), | ||
// "Alerts as data" public index alias used in Security Solution | ||
// Kibana system user uses them to read / write alerts. | ||
RoleDescriptor.IndicesPrivileges.builder().indices(ReservedRolesStore.PREVIEW_ALERTS_INDEX_ALIAS).privileges("all").build(), | ||
// "Alerts as data" internal backing indices used in Security Solution | ||
// Kibana system user creates these indices; reads / writes to them via the | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these indices created/owned by Kibana?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct