How can we connect to remote sidecar grpc port over http basic-auth in querier? now we get this error message :
too many colons in address
for something like user:password@sidecarAddress:80
(We proxied sidecar over traefik ingress)
Is it possible? If not how can we expose sidecar port over internet?
IMO the correct way to do this would be to use mTLS so that the sidecar can authenticate the querier. You can specify the gRPC client certificates in the querier using the --grpc-client... flags [0] and specify the CA used to verify the client certificates in the sidecar with the --grpc-server-tls-client-ca flag [1].
If you prefer to terminate TLS in Traefik, you can also set the TLS configuration there, rather than in the sidecar; see [2].
[0] https://github.com/thanos-io/thanos/blob/master/docs/components/query.md#flags
[1] https://github.com/thanos-io/thanos/blob/master/docs/components/sidecar.md#flags
[2] https://docs.traefik.io/https/tls/#client-authentication-mtls
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
IMO the correct way to do this would be to use mTLS so that the sidecar can authenticate the querier. You can specify the gRPC client certificates in the querier using the
--grpc-client...flags [0] and specify the CA used to verify the client certificates in the sidecar with the--grpc-server-tls-client-caflag [1].If you prefer to terminate TLS in Traefik, you can also set the TLS configuration there, rather than in the sidecar; see [2].
[0] https://github.com/thanos-io/thanos/blob/master/docs/components/query.md#flags
[1] https://github.com/thanos-io/thanos/blob/master/docs/components/sidecar.md#flags
[2] https://docs.traefik.io/https/tls/#client-authentication-mtls