Skip to content

Commit

Permalink
[Security solution] Update serverless roles to include Data Views fea… (
Browse files Browse the repository at this point in the history
#169036)

…ture permissions

## Summary

Align roles with project-controller

(cherry picked from commit 4113d25)

# Conflicts:
#	x-pack/plugins/security_solution/scripts/endpoint/common/roles_users/endpoint_operations_analyst.ts
  • Loading branch information
patrykkopycinski committed Oct 25, 2023
1 parent caa3613 commit 6f93a17
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/kbn-es/src/serverless_resources/roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ soc_manager:
- feature_actions.all
- feature_builtInAlerts.all
- feature_osquery.all
- feature_indexPatterns.all # Detections Data Views
resources: "*"

detections_admin:
Expand Down Expand Up @@ -471,6 +472,7 @@ platform_engineer:
- feature_fleet.all
- feature_fleetv2.all
- feature_osquery.all
- feature_indexPatterns.all # Detections Data Views
resources: "*"

endpoint_operations_analyst:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,39 @@ import { getNoResponseActionsRole } from './without_response_actions_role';
export const getEndpointOperationsAnalyst: () => Omit<Role, 'name'> = () => {
const noResponseActionsRole = getNoResponseActionsRole();
return {
...noResponseActionsRole,
elasticsearch: {
cluster: [],
indices: [
{
names: [
'metrics-endpoint.metadata_current_*',
'.fleet-agents*',
'.fleet-actions*',
'apm-*-transaction*',
'traces-apm*',
'auditbeat-*',
'endgame-*',
'filebeat-*',
'logs-*',
'packetbeat-*',
'winlogbeat-*',
'.lists*',
'.items*',
],
privileges: ['read'],
},
{
names: [
'.alerts-security*',
'.siem-signals-*',
'.preview.alerts-security*',
'.internal.preview.alerts-security*',
],
privileges: ['read', 'write'],
},
],
run_as: [],
},
kibana: [
{
...noResponseActionsRole.kibana[0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ soc_manager:
- feature_actions.all
- feature_builtInAlerts.all
- feature_osquery.all
- feature_indexPatterns.all # Detections Data Views
resources: "*"

detections_admin:
Expand Down Expand Up @@ -474,6 +475,7 @@ platform_engineer:
- feature_fleet.all
- feature_fleetv2.all
- feature_osquery.all
- feature_indexPatterns.all # Detections Data Views
resources: "*"

endpoint_operations_analyst:
Expand Down

0 comments on commit 6f93a17

Please sign in to comment.