-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix(Ingestion): Elastic http/https host support #4191
Conversation
allow users to specify url scheme. enable ingestion from both TLS enabled clusters. currently specifying the url scheme resulted in assertion error.
tested with ``` host = 192.0.0.1 host = localhost host = http://localhost:9002 host = https://localhost:9002
Thanks for this @abiwill That will ensure we handle different styles of host_port specification correctly. |
Unittest PR: #4194 |
It is impressive that only changing the validation regex solves the issue. It is fascinating to see a project growing in such a way. I want to thank you for spending your time on investigating, implementing and testing this change. 🚀 |
I have just started my journey into programming. Trying to learn and solve :) |
Since this check is really a first line of defense, I think it is okay to be a bit more loose, since the underlying elastic client will anyway complain if it cannot connect to the configured endpoint. We just want to make sure that clearly valid values are not blocked by it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Made changes to unit test in this PR itself.
…project#4191) Co-authored-by: Shirshanka Das <[email protected]>
allow users to specify url scheme. enable ingestion from both TLS enabled clusters.
currently specifying the url scheme resulted in assertion error.
Checklist