Access Control
Wazuh Indexer uses the OpenSearch Security plugin to manage access control and security features. This allows you to define users, roles, and permissions for accessing indices and performing actions within the Wazuh Indexer.
You can find a more detailed overview of the OpenSearch Security plugin in the OpenSearch documentation.
Wazuh default Internal Users
Wazuh defines internal users and roles for the different Wazuh components to handle index management.
These default users and roles definitions are stored in the internal_users.yml
, roles.yml
, and roles_mapping.yml
files on the /etc/wazuh-indexer/opensearch-security/
directory.
Find more info about the configurations files in the Configuration Files section.
Users
User | Description | Roles |
---|---|---|
wazuh-server | User for the Wazuh Server with read/write access to stateful indices and write-only access to stateless indices. | stateless-write , stateful-delete , stateful-write , stateful-read |
wazuh-dashboard | User for Wazuh Dashboard with read access to stateful and stateless indices, and management level permissionsfor the monitoring indices. | sample-data-management , metrics-write , metrics-read , stateless-read , stateful-read |
Roles
Role Name | Access Description | Index Patterns | Permissions |
---|---|---|---|
stateful-read | Grants read-only permissions to stateful indices. | wazuh-states-* | read |
stateful-write | Grants write-only permissions to stateful indices. | wazuh-states-* | index |
stateful-delete | Grants delete permissions to stateful indices. | wazuh-states-* | delete |
stateless-read | Grants read-only permissions to stateless indices. | wazuh-alerts* , wazuh-archives* | read |
stateless-write | Grants write-only permissions to stateless indices. | wazuh-alerts* , wazuh-archives* | index |
metrics-read | Grants read permissions to metrics indices. | wazuh-monitoring* , wazuh-statistics* | read |
metrics-write | Grants write permissions to metrics indices. | wazuh-monitoring* , wazuh-statistics* | index |
sample-data-management | Grants full permissions to sample data indices. | *-sample-* | data_access , manage |