@Paladox I had to dig in my notes. In OpenSearch, anonymous authentication is not configured in opensearch.yml
Please follow the steps below.
- Set “anonymous_auth_enabled” to true in config.yml
- Add the below line to opensearch_dashboards.yml
opensearch_security.auth.anonymous_auth_enabled: true
- In roles.yml set the following role. (The permissions are just an example.)
opendistro_security_anonymous:
cluster_permissions:
- "unlimited"
index_permissions:
- index_patterns:
- "*"
allowed_actions:
- "unlimited"
tenant_permissions:
- tenant_patterns:
- "global_tenant"
allowed_actions:
- "kibana_all_write"
- In roles_mapping.yml configure the mapping of the anonymous backend role
opendistro_security_anonymous:
backend_roles:
- "opendistro_security_anonymous_backendrole"
Please remember to apply security plugin configuration changes with securityadmin.sh script.