-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Elasticsearch: Support REST URIs including userInfo #21291
Comments
It looks like this should be possible, although it's a little involved since we support more than one URL in I think to implement it we'd need to change |
Can I work on this issue? |
While reviewing the PR from @evgeniycheban I've given some thought to the following:
I don't think the credentials from the URL should be overridden by the properties. The properties should only be used for URLs with no user info. This will align things with, for example, Boot's support for the addresses used to connect to RabbitMQ. |
Closing in favor of PR #21381 |
Setting the
spring.elasticsearch.rest.uris
with valuehttp://login:password@host:port
generatesUnknownHostException: login:password@host: Name or service not known
It would be nice if the userInfo part of the URL could also be used as credentials (that would be overridden if
spring.elasticsearch.rest.username
orspring.elasticsearch.rest.password
are defined)FYI I encountered this issue while trying to use Bonsai with Heroku that sets a variable BONSAI_URL including login and token.
The text was updated successfully, but these errors were encountered: