Repository navigation
Query: Support per endpoint TLS configuration - #8594
Conversation
Signed-off-by: Naman-B-Parlecha <naman.parlecha@finalroundai.com>
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-B-Parlecha <naman.parlecha@finalroundai.com>
Signed-off-by: Naman-B-Parlecha <naman.parlecha@finalroundai.com>
Signed-off-by: Naman-B-Parlecha <naman.parlecha@finalroundai.com>
Signed-off-by: Naman-B-Parlecha <naman.parlecha@finalroundai.com>
205dc0a to
fddb1b4
Compare
Signed-off-by: Naman-B-Parlecha <naman.parlecha@finalroundai.com>
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
|
@MichaHoffmann i have refactored to |
There was a problem hiding this comment.
Thanks for this. While I'm not a proper project member, I hope this initial review is helpful. I'll see if I can also test out the change as this is functionality I happen to need.
I note that there is a test failure from CI below, but it appears to be unrelated to this change.
…port Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
54fd19b to
bf8c193
Compare
Signed-off-by: Craig Ringer <craig.ringer@enterprisedb.com>
66a0cd0 to
8b790a6
Compare
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
|
Updated to 1.26 here #8717 so we can remove lots of boilerplate. |
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
|
@GiedriusS refactored all changed requested PLAT!! thanks:)) |
GiedriusS
left a comment
There was a problem hiding this comment.
Could we mark --endpoint and other parameters as deprecated in cmd/thanos/query.go in this same PR? In other words, let's only support using files for setting endpoints. In next_version+1 we can remove them entirely.
yes read the slack thread regarding this thanks |
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
|
This is still waiting. What can we do to progress this to merge? |
|
@Naman-B-Parlecha This now needs rebase. Sorry it's taking so long, I'm trying to encourage this to get through final review. |
Co-authored-by: Copilot <copilot@github.com>
|
The docs and unit test failures are not related to pr |
|
Thanks very much @GiedriusS |
This commit changes the log verbosity from info to debug for TLS client configuration setup. Running a Thanos Query on the main branch with `--endpoint.sd-config-file` instead of the legacy `--grpc-client*` arguments, log messages are emitted every 5 seconds (the interval at which the list of endpoints is refreshed): ``` ts=2026-06-15T14:47:46.913935863Z caller=client.go:147 level=info msg="enabling client to server TLS" ts=2026-06-15T14:47:46.9141221Z caller=options.go:145 level=info msg="TLS client using provided certificate pool" ts=2026-06-15T14:47:46.914143614Z caller=options.go:165 level=info msg="setting minimum TLS version to 1.3" ts=2026-06-15T14:47:46.91415433Z caller=options.go:191 level=info msg="TLS client authentication enabled" ts=2026-06-15T14:47:51.914025066Z caller=client.go:147 level=info msg="enabling client to server TLS" ts=2026-06-15T14:47:51.914294263Z caller=options.go:145 level=info msg="TLS client using provided certificate pool" ts=2026-06-15T14:47:51.91431529Z caller=options.go:165 level=info msg="setting minimum TLS version to 1.3" ts=2026-06-15T14:47:51.914326314Z caller=options.go:191 level=info msg="TLS client authentication enabled" ts=2026-06-15T14:47:56.913622829Z caller=client.go:147 level=info msg="enabling client to server TLS" ts=2026-06-15T14:47:56.913977311Z caller=options.go:145 level=info msg="TLS client using provided certificate pool" ts=2026-06-15T14:47:56.913995512Z caller=options.go:165 level=info msg="setting minimum TLS version to 1.3" ts=2026-06-15T14:47:56.914006135Z caller=options.go:191 level=info msg="TLS client authentication enabled" ``` I think that it was introduced in #8594. Signed-off-by: Simon Pasquier <spasquie@redhat.com>
I m still working on this have some edge case and tests to add. Will update description soon.
Changes
Add per-endpoint and default TLS configuration for the Query component via
endpoint.sd-config.client_configwith TLS settings, server name, and compressiondefault_client_configcan be set in the YAML config to apply TLS settings to all endpoints that don't specify their own--grpc-client-tls-*CLI flags are deprecated (hidden from--help) and will be removed after v0.43.0Precedence order
client_config(highest)default_client_configfrom YAML--grpc-client-tls-*CLI flags (deprecated, lowest)Example config
More documentation
Verification
Added debug logs to check if switching between global and per endpoint configuration works as intended