Skip to content
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

xpack basic leads to misleading message "cluster health: not connected" #431

Open
chx opened this issue Feb 19, 2020 · 2 comments
Open

xpack basic leads to misleading message "cluster health: not connected" #431

chx opened this issue Feb 19, 2020 · 2 comments

Comments

@chx
Copy link

chx commented Feb 19, 2020

If you are doing xpack.license.self_generated.type basic then, while the browser and the Any Request tab works, the cluster health will not and neither will structured query due to xpack basic limiting some query. I understand of course the problems with _stats returning a 403 but since _nodes and state does come back with useful data maybe some other message could be displayed which shows that connection is indeed successful but the cluster health is not available ? (Due to security.) This caused me endless headaches because I didn't even try the browser tab when Overview and Indices didn't work and I presumed it's my ineptness with docker compose that causes things not to work -- when they actually work.

@philipskokoh
Copy link
Collaborator

Just found a way to get permission (without superuser) to read cluster info.

Try to create a new role monitor cluster privileges assigned to the role. Users with this role should be able to access node info, node and cluster stats.
Reference:
https://www.elastic.co/guide/en/elasticsearch/reference/current/security-privileges.html

@aman-thakral
Copy link

I made this work by forking an existing proxy and adding the CORS logic directly to the proxy.

https://github.com/aman-thakral/aws-es-proxy-py

To create a local proxy using the "default" aws profile store in ~/.aws/credentials and enable CORS use the following:

./aws_es_proxy_py -r us-east-1 -p 9200 --enable-cors --profile default -e <es url>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants