From c3eccfe14792d32677726d6cd67a4f19595d44a1 Mon Sep 17 00:00:00 2001 From: Arik Alon Date: Tue, 26 May 2026 10:24:59 +0300 Subject: [PATCH] allow disabling platform links on webex --- docs/configuration/sinks/webex.rst | 29 +++++++++++++++++++ src/robusta/core/sinks/webex/webex_sink.py | 2 ++ .../core/sinks/webex/webex_sink_params.py | 1 + 3 files changed, 32 insertions(+) diff --git a/docs/configuration/sinks/webex.rst b/docs/configuration/sinks/webex.rst index eb82c73df..e6bef6932 100644 --- a/docs/configuration/sinks/webex.rst +++ b/docs/configuration/sinks/webex.rst @@ -65,6 +65,35 @@ Now we're ready to configure the webex sink. You should now get playbooks results in Webex! +Configuration parameters +------------------------------------------------ + +.. list-table:: + :header-rows: 1 + :widths: 25 15 60 + + * - Field + - Default + - Description + * - ``bot_access_token`` + - *(required)* + - The Webex bot access token. + * - ``room_id`` + - *(required)* + - Default Webex room ID to send notifications to. + * - ``room_id_override`` + - *(none)* + - Template resolved against subject labels/annotations to route to a different room. + * - ``namespace_room_id_override`` + - *(none)* + - Template resolved against namespace labels/annotations to route to a different room. + * - ``send_to_default_if_missing`` + - ``true`` + - When overrides don't resolve, send to ``room_id`` (``true``) or drop the finding (``false``). + * - ``disable_platform_links`` + - ``false`` + - When ``true``, omits the Robusta platform ``Investigate`` and ``Silence`` links from messages. + Dynamic Room Routing ------------------------------------------------ diff --git a/src/robusta/core/sinks/webex/webex_sink.py b/src/robusta/core/sinks/webex/webex_sink.py index c6c150832..91f3385e7 100644 --- a/src/robusta/core/sinks/webex/webex_sink.py +++ b/src/robusta/core/sinks/webex/webex_sink.py @@ -34,6 +34,8 @@ def write_finding(self, finding: Finding, platform_enabled: bool): room_id = self._resolve_room_id(finding) if room_id is None: return + if self.params.disable_platform_links: + platform_enabled = False self.sender.send_finding_to_webex(finding, platform_enabled, room_id=room_id) def _resolve_room_id(self, finding: Finding) -> Optional[str]: diff --git a/src/robusta/core/sinks/webex/webex_sink_params.py b/src/robusta/core/sinks/webex/webex_sink_params.py index 91b7e7a85..4c3f24be8 100644 --- a/src/robusta/core/sinks/webex/webex_sink_params.py +++ b/src/robusta/core/sinks/webex/webex_sink_params.py @@ -13,6 +13,7 @@ class WebexSinkParams(SinkBaseParams): room_id_override: Optional[str] = None namespace_room_id_override: Optional[str] = None send_to_default_if_missing: bool = True + disable_platform_links: bool = False @classmethod def _get_sink_type(cls):