From d23d7a692d2cc3e11d7c8014e25705c32b8b7e1a Mon Sep 17 00:00:00 2001 From: Alexander Percivall Date: Sat, 12 Sep 2026 14:30:03 +0200 Subject: [PATCH] fix(cilium): pre-import protobuf dependencies before observer_pb2 (#6815) Co-authored-by: Shahar Glazner --- keep/providers/cilium_provider/cilium_provider.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/keep/providers/cilium_provider/cilium_provider.py b/keep/providers/cilium_provider/cilium_provider.py index e8b3648e73..42d85d87a9 100644 --- a/keep/providers/cilium_provider/cilium_provider.py +++ b/keep/providers/cilium_provider/cilium_provider.py @@ -124,6 +124,9 @@ def _get_service_name(self, endpoint) -> str: def pull_topology(self) -> list[TopologyServiceInDto]: # for some providers that depends on grpc like cilium provider, this might fail on imports not from Keep (such as the docs script) + from google.protobuf import any_pb2, field_mask_pb2, timestamp_pb2, wrappers_pb2 # noqa + import keep.providers.cilium_provider.grpc.flow.flow_pb2 # noqa + import keep.providers.cilium_provider.grpc.relay.relay_pb2 # noqa from keep.providers.cilium_provider.grpc.observer_pb2 import ( # noqa FlowFilter, GetFlowsRequest,