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

cmd/thanos/receive: fix dialopts TLS heuristic #4388

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

squat
Copy link
Member

@squat squat commented Jun 30, 2021

Currently, the Thanos receive gRPC dialopts are configured to use TLS
when the remote-write HTTP server is configured with a TLS certificate.
This heuristic is not correct: just because the remote-write HTTP server
is exposed over TLS does not mean that the hashring gRPC server is using
TLS. This commit fixes the heuristic for enabling TLS in the gRPC client
for forwarding remote-write requests internally within a hashring.

Fixes: #4382.

Signed-off-by: Lucas Servén Marín lserven@gmail.com

  • I added CHANGELOG entry for this change.

@bill3tt
Copy link
Contributor

bill3tt commented Jun 30, 2021

Nice find 💪 How have you been able to verify this change indeed fixes the problem? I'm not aware of a test that excercises this code path.

Currently, the Thanos receive gRPC dialopts are configured to use TLS
when the remote-write HTTP server is configured with a TLS certificate.
This heuristic is not correct: just because the remote-write HTTP server
is exposed over TLS does not mean that the hashring gRPC server is using
TLS. This commit fixes the heuristic for enabling TLS in the gRPC client
for forwarding remote-write requests internally within a hashring.

Fixes: thanos-io#4382.

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
@bwplotka bwplotka merged commit a18db62 into thanos-io:main Jul 1, 2021
@bwplotka
Copy link
Member

bwplotka commented Jul 1, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Receivers: Hashring gRPC calls are failing when Remote Write mTLS is enabled
3 participants