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

fix(elasticsearch): disable verification #1469

Merged
merged 5 commits into from
Jan 23, 2024

Conversation

WilliamGorge
Copy link
Contributor

@WilliamGorge WilliamGorge commented Jan 23, 2024

Change Summary

Disable the internal verification of the elasticsearch client that checks if the root / of the provided URL returns a a compatible payload.

This internal verification, for some reason, does not use the basic auth provided by http_auth. So this check fails when the client configuration ask for authentication for the / route.

https://github.com/elastic/elasticsearch-py/blob/v7.17.6/elasticsearch/transport.py#L532
https://github.com/elastic/elasticsearch-py/blob/v7.17.6/elasticsearch/transport.py#L216

https://toucantoco.slack.com/archives/C823R095H/p1705597838374409

@WilliamGorge WilliamGorge added the bug Something isn't working label Jan 23, 2024
@WilliamGorge WilliamGorge self-assigned this Jan 23, 2024
WilliamGorge and others added 4 commits January 23, 2024 16:33
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
@lukapeschke lukapeschke force-pushed the fix-disable-elasticsearch-check branch from 0faefa7 to b44ce10 Compare January 23, 2024 15:37
@lukapeschke lukapeschke changed the base branch from master to release/v3.23 January 23, 2024 15:37
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
@lukapeschke lukapeschke requested review from davinov and fspot January 23, 2024 15:52
@lukapeschke lukapeschke merged commit 5f84938 into release/v3.23 Jan 23, 2024
2 checks passed
@lukapeschke lukapeschke deleted the fix-disable-elasticsearch-check branch January 23, 2024 16:05
Copy link
Contributor Author

@WilliamGorge WilliamGorge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM: merci pour le com

lukapeschke added a commit that referenced this pull request Jan 23, 2024
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Co-authored-by: Luka Peschke <luka.peschke@toucantoco.com>
lukapeschke added a commit that referenced this pull request Jan 23, 2024
Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Co-authored-by: William Gorge <WilliamGorge@users.noreply.github.com>
lukapeschke added a commit that referenced this pull request Jan 23, 2024
…private key format (#1470) (#1473)

* [backport] fix(elasticsearch): disable verification (#1469)

Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Co-authored-by: Luka Peschke <luka.peschke@toucantoco.com>

* feat(gbq): Implement a simple status check validating the private key format (#1470)

Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>

* fix merge errors

Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>

---------

Signed-off-by: Luka Peschke <luka.peschke@toucantoco.com>
Co-authored-by: William Gorge <WilliamGorge@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants