Skip to content

Commit

Permalink
Merge pull request #1748 from wazuh/1668-fix-role
Browse files Browse the repository at this point in the history
Fix role to create wazuh-monitoring and statistics indices
  • Loading branch information
alberpilot authored Jul 19, 2022
2 parents f1fc7cb + a259118 commit 4c48c1e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
21 changes: 20 additions & 1 deletion unattended_installer/config/indexer/roles/roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,23 @@ asynchronous_search_full_access:
asynchronous_search_read_access:
reserved: true
cluster_permissions:
- 'cluster:admin/opendistro/asynchronous_search/get'
- 'cluster:admin/opendistro/asynchronous_search/get'

# Wazuh monitoring and statistics index permissions
manage_wazuh_index:
reserved: true
hidden: false
cluster_permissions: []
index_permissions:
- index_patterns:
- "wazuh-*"
dls: ""
fls: []
masked_fields: []
allowed_actions:
- "read"
- "delete"
- "manage"
- "index"
tenant_permissions: []
static: false
12 changes: 11 additions & 1 deletion unattended_installer/config/indexer/roles/roles_mapping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,14 @@ kibana_user:
hosts: []
users: []
and_backend_roles: []
description: "Maps kibanauser to kibana_user"
description: "Maps kibanauser to kibana_user"

# Wazuh monitoring and statistics index permissions
manage_wazuh_index:
reserved: true
hidden: false
backend_roles: []
hosts: []
users:
- "kibanaserver"
and_backend_roles: []

0 comments on commit 4c48c1e

Please sign in to comment.