-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wazuh App - Authorization Exception #1203
Comments
Hi @mathieu83470 , First of all, I want to say that we are supporting up to Wazuh v3.8.2 and Kibana v6.6.0. In any case, could you paste the same as #968 (comment) , please? Regards |
Hi @jesusgn90 Thanks but for now I can't upgrade Elastick stack to 6.6! |
Uncomment the next line: The file is located under So it should look like this: xpack.rbac.enabled: true Restart Kibana:
Regards |
Hello again @mathieu83470 , Please, execute the next
Where Regards |
Hello @jesusgn90 Thanks for your time! We have a gold license... Regards |
Hi @mathieu83470 I think I got it, you are using a Wazuh app a version older than a fixed app we released for 6.4.2 (#998). You are probably facing an issue with X-Pack we have for 3.6 and 6.4.0 / 6.4.1 Edit the file under Look for a function named Replace the next line: const data = await this.elasticRequest.callWithRequest(req, 'search', { with this: const data = await this.elasticRequest.callWithInternalUser('search', { Save it and restart Kibana:
Best regards |
Those lines are not the desired lines, the line I was talking about is https://github.com/wazuh/wazuh-kibana-app/blob/bb9b1de686b75d73bf36226ac63e858f69f05f4c/server/lib/elastic-wrapper.js#L498, that line must be Kind regards, |
Hello again @mathieu83470 , sorry for the late response. Please, can you paste the output from the next commands?
Thanks! |
Hello @jesusgn90 Thanks for your help |
All seems fine, the issue comes from the internal app indices ( Please paste the output of the next command:
Example output: {
".wazuh" : {
"settings" : {
"index" : {
"number_of_shards" : "1",
"provided_name" : ".wazuh",
"creation_date" : "1549060666239",
"number_of_replicas" : "0",
"uuid" : "nA61yOZyQIKLkxYH9JxirQ",
"version" : {
"created" : "6060099"
}
}
}
},
".wazuh-version" : {
"settings" : {
"index" : {
"creation_date" : "1549060666430",
"number_of_shards" : "1",
"number_of_replicas" : "0",
"uuid" : "DRRHumAYRsayUEv5gSWF2A",
"version" : {
"created" : "6060099"
},
"provided_name" : ".wazuh-version"
}
}
}
} I'm asking for that because Elasticsearch sometimes blocks certain indices, in that case you'll see an entry like the next one: "blocks" : {
"read_only_allow_delete" : "true"
}, If it appears in your output, use this comment to unlock those indices: curl -XPUT 'http://localhost:9200/_settings' -H 'Content-Type: application/json' -d' { "index": { "blocks": { "read_only_allow_delete": "false" } } } ' Where Regards |
That's right, I was thinking about the I'll get back to you as soon as possible. Regards |
Thanks a lot Maybe we can also try to upgrade ELK stack to 6.6 and re-install new version of wazuh app. For your information, to install wazuh app I had to follow this procedure : #664 (comment) |
Well, in any case, that's not the solution, I'm building a similar environment so I can debug properly what's happening to you. We are not planning to backport any change to 6.4.X but that version worked for other users (just replacing the line a suggested some comments ago), so I want to hunt what's happening to your environment. |
In the meantime, could you try to open a new "incognito" window on your browser? or just "clear all site data" in order to avoid a cookie/session issue related to Kibana itself. |
Follow up @mathieu83470 : Working app using simple auth and the user Wazuh 3.6.1 - Elastic 6.4.0 Now I'm going to apply extra settings from your configuration. |
Hello again @mathieu83470 , I've been testing your configuration, this is my own: server.host: "0.0.0.0"
xpack.security.enabled: true
xpack.security.encryptionKey: "something_at_least_32_characters"
xpack.security.secureCookies: true
elasticsearch.url: "http://172.16.1.2:9200"
elasticsearch.username: "elastic"
elasticsearch.password: "elastic"
server.ssl.enabled: true
server.ssl.certificate: /tmp/host.crt
server.ssl.key: /tmp/host.key
logging.dest: /var/log/kibana/kibana.log
logging.verbose: true
elasticsearch.ssl.certificateAuthorities: [ "/tmp/hostCA.crt" ] All is working for me, can not reproduce your situation. Tried to access the Wazuh app, deleted multiple times |
Hello @jesusgn90 Thanks again for your help. |
Ok @mathieu83470 , closing this ticket since you are not planning to continue the troubleshooting. Open a new ticket if you found any more troubles. Regards! |
Hello,
I have exactly the same issue of this case (#968) but i can't disable Xpack , anyone know to resolve it?
In kibana.yml => I use "elastic" user
In kibana UI => Logged with same "elastic" user
Error message : {"message":"2001 - [security_exception] action [indices:data/read/search] is unauthorized for user [kibana]","code":2001,"statusCode":500}
In kibana log - Initialization:

In kibana log - Accessing to wazuh-app:

Kibana version : 6.4.0
Wazuh-app version : Tested with 3.6.0 and 3.6.1 with same results
Thanks for your help
The text was updated successfully, but these errors were encountered: