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

Using authentication #327

Open
konstantinmiller opened this issue May 31, 2021 · 3 comments
Open

Using authentication #327

konstantinmiller opened this issue May 31, 2021 · 3 comments

Comments

@konstantinmiller
Copy link

konstantinmiller commented May 31, 2021

That's not really a bug but a missing feature :)

It seems not to be possible to use authentication when connecting to Elasticsearch, or is it?

The call client = Elasticsearch([{'host': process.host, 'port': process.port}]) doesn't allow for it.

Can we have something like this please? :)

client = Elasticsearch([{'host': process.host, 'port': process.port}], 
                       http_auth=(process.user, process.password))
@fizyk
Copy link
Member

fizyk commented May 31, 2021

You'd also need to start the elasticseach process with some option to require password, and a password configured there as well 🤔

@konstantinmiller
Copy link
Author

In our setup, we are using an Elastic Cloud instance to run integration tests on the build agent. That instance is protected and we need to use credentials to access it.

@fizyk
Copy link
Member

fizyk commented Jun 1, 2021

@konstantinmiller I agree, however I'd need also to be able to start the server so the basic usecase with starting elasticsearch service with authentication and using it in the client would also be covered.

If you want you can work on this, as I do not know when I'll be able to add it.

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