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

[BUG] - Cannot connect to cluster with special characters in password #10

Closed
asdfII opened this issue Nov 22, 2019 · 6 comments
Closed
Assignees

Comments

@asdfII
Copy link

asdfII commented Nov 22, 2019

Description

  1. It works on single elastic with no x-pack, no username and password.
    Like this: http://10.112.17.82:9201/
  2. It doesn't work on elastic cluster with x-pack, and using correct username and password.
    Like this: http://elastic:[email protected]:9201/
    NOTICE: But It works with chrome extension Elasticsearch Head!

Steps To Reproduce
Anytime

Screenshots
image

Environment
OS: Ubuntu 16.04
Browser: Firefox 70.0.1
Elaticsearch: 6.8.4 (x-pack on)
Elasticvue: 0.16.0
Running Mode: firefox add-ons
Important Elasticsearch Settings:
http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: X-Requested-With,Content-Type,Content-Length,Authorization
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: certs/elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: certs/elastic-certificates.p12

@cars10 cars10 changed the title [BUG] - SHORT DESCRIPTION OF THE BUG [BUG] - Cannot connect to cluster protected via x-pack Nov 22, 2019
@cars10
Copy link
Owner

cars10 commented Nov 22, 2019

Hi, thank you for reporting this bug. Sadly i cannot reproduce the issue, even with the exact same config that you provided. Do you see any error messages in the browser console (press F12, then select the "console" tab) when you try to connect to your cluster?

@asdfII
Copy link
Author

asdfII commented Nov 26, 2019

Sorry for my late.
Here is my test screen with devtools.
image

And the error message is below,
{"error":{"root_cause":[{"type":"security_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}}],"type":"security_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm="security" charset="UTF-8""}},"status":401}

So It seems like authentication doesn't work.

But it works under chrome extension elasticsearch head,
image

So strange.

@cars10
Copy link
Owner

cars10 commented Nov 26, 2019

Hm, thx for the update. To you have any special characters in your password? That might be the issue, i will check that.

@cars10 cars10 changed the title [BUG] - Cannot connect to cluster protected via x-pack [BUG] - Cannot connect to cluster with special characters in password Nov 26, 2019
@cars10
Copy link
Owner

cars10 commented Nov 26, 2019

Seems that special characters don't work, thanks again for noting this. I already fixed it on develop and will release a new version in the following days. You can always build elasticvue yourself manually or via docker to use the latest version.

@asdfII
Copy link
Author

asdfII commented Nov 27, 2019

Yes, my password contains '#', so I've tried to use '%23' instead but the same error.
Looking forward to the latest version, and thanks a lot for your kind help.

@cars10 cars10 closed this as completed in 6e2a968 Nov 28, 2019
@cars10
Copy link
Owner

cars10 commented Nov 28, 2019

Hey @asdfII , just letting you know that i published a new version (0.16.1) that will hopefully fix the issue. You can update the firefox addon manually or wait for it to update automatically, either way you should be able to connect to your cluster. You also do not need to escape the password, you can enter is as-is.

cars10 added a commit that referenced this issue Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants