Hi
Nathaniel,
Forgive my oversight, but it seems to me that we have already found one of the possible errors.
When we moved from Wazuh 3.x to 4.x, in wazuh.yml we stopped using user to use username. In addition to the use of the username and password: "wazuh-wui". You can check this information
here if you have Elastic basic license and in case you use OpenDistro, you can check
here. In both cases, the changes are the same for this case.
.png?part=0.1&view=1)
With respect to creating your own user for this, remember that it will need the pertinent permissions to be able to work correctly.
I also want to tell you what the use of run_as is for. The run_as of the API host configuration, makes the user permissions depend on the authentication context, which will be given by the user with which he/she logs into Kibana. These permissions can be added/edited/deleted using Policies, Roles, and RoleMapping.
Here I leave you a link explaining everything in more detail, remember that you can do it with API calls or with the UI.
And finally, I wanted to ask you that for the future, if possible, send the answers to the threads to everyone and not only to the person who is helping you, so that if another user has the same doubt, it could be very interesting to find this thread.
Regards,
Alejandro.