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

Unable to connect to Elastic with specified elastic user #246

Closed
skirven4 opened this issue Jun 28, 2024 · 2 comments
Closed

Unable to connect to Elastic with specified elastic user #246

skirven4 opened this issue Jun 28, 2024 · 2 comments

Comments

@skirven4
Copy link

Elastic Support Case: 01644420

Issue: I created a static secret for the elastic user per the documentation: https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-users-and-roles.html. The user works as expected in Elastic and Kibana.

The issue is that because of the secret not being created, the Diagnostic script cannot login:
"If you specify the password for the elastic user through such a basic authentication secret then the secret holding the password described in Default elastic user<https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-users-and-roles.html#k8s-default-elastic-user> will not be created by the operator."

Shouldn't the Diagnostic app try to use the secret user if it's available from the deployment? Or maybe ECK should create the secret if it's not present for this reason?

@thbkrkr
Copy link
Contributor

thbkrkr commented Jun 28, 2024

Shouldn't the Diagnostic app try to use the secret user if it's available from the deployment?

To be able to do that, we would need to put more knowledge about the ECK operator into the eck-diagnostics code and that is not something we want to do.

Or maybe ECK should create the secret if it's not present for this reason?

That will not work when users want no default elastic user, see:

Since ECK 2.13.0, the operator creates a dedicated user for the eck-diagnostics, independent of the elastic user. This should cover your case?

@skirven4
Copy link
Author

skirven4 commented Jun 28, 2024

Aha! That makes total sense. I did search some through the code but was not sure what I was looking for. I need to upgrade the operator very soon.
Thank you!!

Edit: I did see the notes about the disabling of the elastic user in 2.13.0, but wasn't sure if thr connection to the Diagnostic had been corrected.

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

2 participants