From 55780622807ef245a2602e73d7bf60d5113a83f6 Mon Sep 17 00:00:00 2001 From: Mike Wyer Date: Wed, 15 Jan 2025 12:28:07 +0000 Subject: [PATCH] Set default_authority for all grpc channels. This ensures tunneled grpc connections can still be routed to the intended host. --- weaviate/connect/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/weaviate/connect/base.py b/weaviate/connect/base.py index ad2e87ebd..37f81c644 100644 --- a/weaviate/connect/base.py +++ b/weaviate/connect/base.py @@ -111,6 +111,7 @@ def _grpc_channel(self, proxies: Dict[str, str], grpc_msg_size: Optional[int]) - opts = [ ("grpc.max_send_message_length", grpc_msg_size), ("grpc.max_receive_message_length", grpc_msg_size), + ("grpc.default_authority", self.grpc.host), ] if (p := proxies.get("grpc")) is not None: