Hi @,
To create a read only user you’ll need to follow these steps:
run_as
in Kibana and otherwise, you won’t have permissions. Create the role and map it to your admin user, in the example wazuh
user:run_as
in Kibana config. Access to your Kibana node and open configuration file /usr/share/kibana/data/wazuh/config/wazuh.yml
:hosts:
- default:
url: https://<kibana-ip>
port: 55000
username: <user>
password: <password>
run_as: true
Restart Kibana: systemctl restart kibana
.
Now, we are going to create the read-only user at Opendistro level, go to Home->Management->Security->Internal users
and create the user.
You will have to map it to the kibana_user
role, for example:
Now, you’ll have to create a new role at Opendistro level with read only permissions.
After that, map your read only user to the created role rouser-role
as you did with the kibana_user
role. You have to map the rouser
to the role rouser-role
.
Finally, go to Wazuh app, Wazuh->Security
and create a new role mapping, mapping the readonly
role to the rouser
user.
rouser
user. Go to Wazuh->Dev tools
and try to execute a GET
and a POST
API call.Hope it helps!
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/35b49d6e-49f8-4c85-a57d-f2c10c62be7cn%40googlegroups.com.
Hi Rabail Naseer,
Please make sure that your custom admin Alama is mapped to the created opendistro_wazuh_admin
role. The role opendistro_wazuh_admin
is created in the first step of my last message.
If it is not mapped, first logout of Alama user and log back in with the default admin user (you need admin rights to access the Security menu). Please go to Wazuh -> Security -> Roles mapping
and map your user as shown in the picture below:
Once you do that, log out and log back in with your user Alama, you should be able to see all data.
Hope it helps!
Víctor.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/4a627f0c-665e-471f-8776-3403a7c39643n%40googlegroups.com.