-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
add apikey authentication support to quarkus-elasticsearch-rest-client #45490
Comments
/cc @cescoffier (rest-client), @geoand (rest-client), @gsmet (elasticsearch), @loicmathieu (elasticsearch), @marko-bekhta (elasticsearch), @yrodiere (elasticsearch) |
Hello, The low-level REST client supports API key authentication by configuring it this way: https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/_other_authentication_methods.html#_elasticsearch_api_keys In Quarkus, you can set such configuration through a custom bean annotated with If you want to add support for directly setting the API key through configuration, I think that's a good idea, and should not be too hard; pull requests welcome! For anyone wanting to implement this, the implementation would boil down to:
General information about how to start contributing to Quarkus is available here: https://github.com/quarkusio/quarkus/blob/main/CONTRIBUTING.md |
I am wiling to take this up. |
Thank you, then we'll wait for your pull request! |
Is this issue completed or actively worked upon? I see a PR raised but has review comments that needs to be worked upon. I can work on it if no one else is working on it. |
@marko-bekhta did the review, he'll be able to tell you what the status is exactly and how to proceed. |
i think the last review comment was deprecating existing username/password properties and creating new alternatives for them too and @marko-bekhta wanted to check with you (@yrodiere ) if its worth doing. so was waiting on a response on that |
Sorry, I missed that. I just answered; IMO no further change is necessary. So that leaves only the other review comments, and I'll let @marko-bekhta see to those :) |
Description
Hi right now only username/password auth is supported in the rest client. The elasticsearch cluster that i am connecting to is using apikey auth.
https://quarkus.io/guides/elasticsearch#quarkus-elasticsearch-rest-client_quarkus-elasticsearch-username
Can i request to add apikey auth support to this rest client?
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: