Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Security_exception action [indices:data/read/search] is unauthorised for user [_system] #401

Open
ramee535 opened this issue Mar 29, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@ramee535
Copy link

ramee535 commented Mar 29, 2021

@bolemebrige @saratvemulapalli similar to issue number #338

I use elastics version of elasticsearch and kibana with opendistro plugins.
Also for security functionalities I have x-pack enabled.

Is there any way to solve above mentioned issue and use alerting for my basic elk.

Thanks in advance for your help..

@ramee535 ramee535 added the enhancement New feature or request label Mar 29, 2021
@saratvemulapalli
Copy link
Contributor

@ramee535 thanks for reaching out.
Unfortunately ODFE does not support x-pack enabled security, we only support ODFE security today.

I was hoping @bolemebrige/community would take a stab at it and come back with the challenges.

@ramee535
Copy link
Author

ramee535 commented Apr 6, 2021

Thanks for your response Sarat, now I tried to install opendistro security plugin after after disabling x-pack features.. but when I am trying to run securityadmin script.. facing below issue. can you help

ERR: Cannot retrieve cluster state due to: Open Distro Security not initialized for cluster:monitor/health.
Root cause: ElasticsearchSecurityException[Open Distro Security not initialized for cluster:monitor/health] (org.elasticsearch.ElasticsearchSecurityException/org.elasticsearch.ElasticsearchSecurityException)

Try running securityadmin.sh with -icl (but no -cl) and -nhnv (If that works you need to check your clustername as well as hostnames in your TLS certificates)
Make also sure that your keystore or PEM certificate is a client certificate (not a node certificate) and configured properly in elasticsearch.yml
If this is not working, try running securityadmin.sh with --diagnose and see diagnose trace log file)
Add --accept-red-cluster to allow securityadmin to operate on a red cluster. @saratvemulapalli

@filipzag
Copy link

filipzag commented Apr 6, 2021

I haven't figured it out yet but my plan was to reverse engineer open distro roles and users and than create them in xpack role and user management... I think it should work but I haven't had time to try it...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants