robusta-api 0.54.0a0__tar.gz → 0.55.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/PKG-INFO +11 -11
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/pyproject.toml +23 -16
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/_version.py +1 -1
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/api/__init__.py +0 -1
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/base_params.py +51 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/env_vars.py +4 -1
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/internal/ai_integration.py +31 -5
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/internal/crds.py +41 -3
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/playbooks_event_handler_impl.py +3 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/prometheus_enrichment_utils.py +19 -1
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/dal/supabase_dal.py +48 -5
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/robusta_sink.py +12 -8
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/prometheus/utils.py +24 -0
- robusta_api-0.55.0/src/robusta/runner/scan_callbacks.py +38 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/web.py +22 -9
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/web_api.py +0 -30
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/LICENSE +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/clients/robusta_client.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/discovery/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/discovery/discovery.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/discovery/resource_names.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/discovery/top_service_resolver.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/discovery/utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/exceptions.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/cluster_status.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/events.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/helm_release.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/jobs.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/k8s_operation_type.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/namespaces.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/nodes.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/openshift_group.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/pods.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/runner_config.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/model/services.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/persistency/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/persistency/in_memory.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/persistency/scheduled_jobs_states_dal.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/actions_registry.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/base_trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/common.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/container_playbook_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/crash_reporter.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/generation.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/internal/CRD_API_DOCUMENTATION.md +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/internal/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/internal/discovery_events.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/job_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/node_enrichment_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/node_playbook_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/oom_killer_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/playbook_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/playbooks_event_handler.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/pod_utils/crashloop_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/pod_utils/imagepull_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/pod_utils/pending_pod_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/pubsub/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/pubsub/event_emitter.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/pubsub/event_subscriber.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/pubsub/events_pubsub.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/action_requests.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/base.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/blocks.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/callbacks.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/charts.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/consts.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/custom_rendering.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/finding_subjects.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/holmes.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/url_helpers.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/reporting/utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/schedule/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/schedule/model.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/schedule/scheduler.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/common/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/common/channel_transformer.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/common/destination_override.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/common/html_tools.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/datadog/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/datadog/datadog_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/datadog/datadog_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/discord/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/discord/discord_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/discord/discord_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/file/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/file/file_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/file/file_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/file/object_traverser.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/google_chat/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/google_chat/google_chat.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/google_chat/google_chat_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/incidentio/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/incidentio/incidentio_api.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/incidentio/incidentio_client.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/incidentio/incidentio_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/incidentio/incidentio_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/jira/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/jira/jira_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/jira/jira_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/kafka/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/kafka/kafka_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/kafka/kafka_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/mail/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/mail/mail_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/mail/mail_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/mattermost/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/mattermost/mattermost_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/mattermost/mattermost_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams/msteams_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams/msteams_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams/msteams_webhook_tranformer.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams_graph/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams_graph/msteams_graph_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams_graph/msteams_graph_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/opsgenie/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/opsgenie/opsgenie_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/opsgenie/opsgenie_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/pagerduty/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/pagerduty/pagerduty_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/pagerduty/pagerduty_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/pushover/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/pushover/pushover_client.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/pushover/pushover_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/pushover/pushover_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/dal/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/dal/model_conversion.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/discovery_metrics.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/prometheus_discovery_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/robusta_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/account_resource_fetcher.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/base_resource_manager.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/prometheus_alert_resource_manager.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/rrm.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/types.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/rocketchat/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/rocketchat/rocketchat_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/rocketchat/rocketchat_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/servicenow/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/servicenow/servicenow_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/servicenow/servicenow_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/sink_base.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/sink_base_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/sink_config.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/sink_factory.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/preview/slack_sink_preview.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/preview/slack_sink_preview_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/slack_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/slack_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/templates/header.j2 +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/templates/template_loader.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/telegram/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/telegram/telegram_client.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/telegram/telegram_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/telegram/telegram_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/timing.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/transformer.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/victorops/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/victorops/victorops_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/victorops/victorops_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/webex/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/webex/webex_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/webex/webex_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/webhook/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/webhook/webhook_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/webhook/webhook_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/yamessenger/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/yamessenger/yamessenger_client.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/yamessenger/yamessenger_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/yamessenger/yamessenger_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/zulip/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/zulip/zulip_sink.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/zulip/zulip_sink_params.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/stream/utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/container_oom_killed_trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/custom_triggers.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/deployment_rollout_trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/error_event_trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/helm_releases_triggers.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/job_failed_trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/multi_resources_trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/oom_killed_trigger_base.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/pod_crash_loop_trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/pod_evicted_trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/pod_image_pull_backoff.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/triggers/pod_oom_killed_trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/argocd/argocd_client.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/common/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/common/requests.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/discord/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/discord/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/git/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/git/git_repo.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/git/well_known_hosts.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/google_chat/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/google_chat/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/grafana.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/helper.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/jira/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/jira/client.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/jira/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/api_client_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/events.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/models.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/triggers.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/v1/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/v1/models.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/base_event.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/base_triggers.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/custom_crds.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/custom_models.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/model_not_found_exception.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/process_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/templates.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/mail/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/mail/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/mattermost/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/mattermost/client.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/mattermost/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/graph/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/graph/graph_client.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/graph/graph_msg.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/graph/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_adaptive_card_files.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_adaptive_card_files_image.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_adaptive_card_files_text.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_action.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_base.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_card.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_column.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_container.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_images.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_table.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_text_block.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_mark_down_fix_url.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_msg.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/msteams/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/openshift/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/openshift/token.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/prometheus/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/prometheus/models.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/prometheus/trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/receiver.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/resource_analysis/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/resource_analysis/cpu_analyzer.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/resource_analysis/memory_analyzer.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/resource_analysis/node_cpu_analyzer.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/resource_analysis/prometheus_analyzer.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/rocketchat/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/rocketchat/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/event.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/models.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/playbook_scheduler.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/playbook_scheduler_manager.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/playbook_scheduler_manager_impl.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/trigger.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/servicenow/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/servicenow/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/slack/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/slack/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/webex/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/webex/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/zulip/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/integrations/zulip/sender.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/model/alert_relabel_config.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/model/config.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/model/playbook_action.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/model/playbook_definition.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/patch/patch.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/config_loader.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/log_init.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/main.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/not_found_exception.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/object_updater.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/process_setup.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/ssl_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/telemetry.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/runner/telemetry_service.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/__init__.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/archive.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/auth_provider.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/base64_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/cluster_provider_discovery.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/common.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/decorators.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/docs.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/documented_pydantic.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/error_codes.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/file_system_watcher.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/function_hashes.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/json_schema.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/parsing.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/rate_limiter.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/scope.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/server_start.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/service_discovery.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/silence_utils.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/stack_tracer.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/task_queue.py +0 -0
- {robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/utils/time_utils.py +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: robusta-api
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.55.0
|
|
4
4
|
Summary:
|
|
5
5
|
Author: Arik Alon
|
|
6
6
|
Author-email: arikalon1@users.noreply.github.com
|
|
7
|
-
Requires-Python: >=3.
|
|
7
|
+
Requires-Python: >=3.11,<3.12
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
10
9
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
10
|
Provides-Extra: all
|
|
12
11
|
Requires-Dist: Flask (>=3.1.3,<4.0.0) ; extra == "all"
|
|
@@ -17,7 +16,7 @@ Requires-Dist: better-exceptions (>=0.3.3,<0.4.0) ; extra == "all"
|
|
|
17
16
|
Requires-Dist: bitmath (>=1.3.3.1,<2.0.0.0)
|
|
18
17
|
Requires-Dist: boto3 (>=1.42.19,<2.0.0)
|
|
19
18
|
Requires-Dist: botocore (>=1.42.19,<2.0.0)
|
|
20
|
-
Requires-Dist: certifi (>=2026.
|
|
19
|
+
Requires-Dist: certifi (>=2026.10.18)
|
|
21
20
|
Requires-Dist: click (>=8.3.3)
|
|
22
21
|
Requires-Dist: colorlog (>=5.0.1,<6.0.0)
|
|
23
22
|
Requires-Dist: croniter (>=1.3.15,<2.0.0)
|
|
@@ -25,9 +24,9 @@ Requires-Dist: cryptography (>=50.0.0,<51.0.0)
|
|
|
25
24
|
Requires-Dist: datadog-api-client (>=1.2.0,<2.0.0) ; extra == "all"
|
|
26
25
|
Requires-Dist: docutils (==0.19)
|
|
27
26
|
Requires-Dist: dpath (>=2.0.5,<3.0.0)
|
|
28
|
-
Requires-Dist: filelock (>=
|
|
27
|
+
Requires-Dist: filelock (>=4.2.1)
|
|
29
28
|
Requires-Dist: grafana-api (>=1.0.3,<2.0.0) ; extra == "all"
|
|
30
|
-
Requires-Dist: h2 (>=4.
|
|
29
|
+
Requires-Dist: h2 (>=4.4.1,<5.0.0)
|
|
31
30
|
Requires-Dist: hikaru-model-26 (>=1.1.1,<2.0.0)
|
|
32
31
|
Requires-Dist: httpx (==0.27.2)
|
|
33
32
|
Requires-Dist: humanize (>=3.13.1,<4.0.0)
|
|
@@ -36,13 +35,14 @@ Requires-Dist: jinja2 (>=3.1.5)
|
|
|
36
35
|
Requires-Dist: kafka-python (>=2.3.2,<3.0.0) ; extra == "all"
|
|
37
36
|
Requires-Dist: kubernetes (>=26.1.0,<27.0.0)
|
|
38
37
|
Requires-Dist: markdown2 (==2.4.13)
|
|
38
|
+
Requires-Dist: oauthlib (>=4.0.1)
|
|
39
39
|
Requires-Dist: opsgenie-sdk (>=2.1.5,<3.0.0)
|
|
40
|
-
Requires-Dist: pillow (>=
|
|
40
|
+
Requires-Dist: pillow (>=13.0.0,<14.0.0)
|
|
41
41
|
Requires-Dist: poetry-core (==1.1.0a7) ; extra == "all"
|
|
42
|
-
Requires-Dist: prometheus-api-client (
|
|
42
|
+
Requires-Dist: prometheus-api-client (>=0.7.0,<0.8.0) ; extra == "all"
|
|
43
43
|
Requires-Dist: prometheus-client (>=0.12.0,<0.13.0)
|
|
44
|
-
Requires-Dist: prometrix (==0.2.
|
|
45
|
-
Requires-Dist: pyasn1 (>=0.6.
|
|
44
|
+
Requires-Dist: prometrix (==0.2.12)
|
|
45
|
+
Requires-Dist: pyasn1 (>=0.6.5)
|
|
46
46
|
Requires-Dist: pydantic (>=2.11.7,<3.0.0)
|
|
47
47
|
Requires-Dist: pydash (==8.0.0)
|
|
48
48
|
Requires-Dist: pyjwt (>=2.14.0,<3.0.0)
|
|
@@ -63,7 +63,7 @@ Requires-Dist: tabulate (>=0.8.10,<0.9.0) ; extra == "all"
|
|
|
63
63
|
Requires-Dist: tenacity (>=9.1.2,<10.0.0)
|
|
64
64
|
Requires-Dist: toml (>=0.10.2,<0.11.0)
|
|
65
65
|
Requires-Dist: urllib3 (>=2.8.0,<3.0.0)
|
|
66
|
-
Requires-Dist: virtualenv (>=21.
|
|
66
|
+
Requires-Dist: virtualenv (>=21.14.9,<22.0.0)
|
|
67
67
|
Requires-Dist: watchdog (>=2.1.0,<3.0.0) ; extra == "all"
|
|
68
68
|
Requires-Dist: watchgod (>=0.7,<0.8)
|
|
69
69
|
Requires-Dist: webexteamssdk (>=1.6.1,<2.0.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "robusta-api"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.55.0"
|
|
4
4
|
description = ""
|
|
5
5
|
authors = ["Arik Alon <arikalon1@users.noreply.github.com>"]
|
|
6
6
|
packages = [
|
|
@@ -17,7 +17,7 @@ multi_line_output = 3
|
|
|
17
17
|
include_trailing_comma = true
|
|
18
18
|
|
|
19
19
|
[tool.poetry.dependencies]
|
|
20
|
-
python = ">=3.
|
|
20
|
+
python = ">=3.11, <3.12"
|
|
21
21
|
setuptools = "^83.0.0"
|
|
22
22
|
colorlog = "^5.0.1"
|
|
23
23
|
python-json-logger = "^3.0.0"
|
|
@@ -70,7 +70,8 @@ cryptography = "^50.0.0"
|
|
|
70
70
|
# PDF renderer for KRR/Popeye scan reports (BSD-3-Clause; replaced LGPL-licensed fpdf2)
|
|
71
71
|
reportlab = "^5.0.0"
|
|
72
72
|
attrs = "^23.1.0"
|
|
73
|
-
|
|
73
|
+
# 0.2.12 drops its pillow<13 cap, needed for the Pillow 13 CVE fixes; requires prometheus-api-client >=0.7
|
|
74
|
+
prometrix = "0.2.12"
|
|
74
75
|
hikaru-model-26 = "^1.1.1"
|
|
75
76
|
apprise = "1.6.0"
|
|
76
77
|
rocketchat-api = "^1.30.0"
|
|
@@ -78,10 +79,10 @@ pydash = "8.0.0"
|
|
|
78
79
|
# The following are added to speed up poetry dependency resolution
|
|
79
80
|
botocore = "^1.42.19"
|
|
80
81
|
boto3 = "^1.42.19"
|
|
81
|
-
prometheus-api-client = "0.
|
|
82
|
+
prometheus-api-client = "^0.7.0"
|
|
82
83
|
requests = "^2.33.0"
|
|
83
|
-
# Bump to fix certifi CVE flagged by customer scan; date-versioned, so use >= rather than caret
|
|
84
|
-
certifi = ">=2026.
|
|
84
|
+
# Bump to fix certifi CVE flagged by customer scan (GHSA-6q48-6c7w-9gw2); date-versioned, so use >= rather than caret
|
|
85
|
+
certifi = ">=2026.10.18"
|
|
85
86
|
regex = "2024.5.15"
|
|
86
87
|
# Pin to fix CVE-2026-102268 (Critical) + CVE-2026-102266/102267/102271-102273 (High): PyJWT
|
|
87
88
|
pyjwt = "^2.14.0"
|
|
@@ -89,22 +90,25 @@ urllib3 = "^2.8.0"
|
|
|
89
90
|
httpx = "0.27.2"
|
|
90
91
|
# realtime (supabase dependency) requires websockets.asyncio, added in websockets 13
|
|
91
92
|
websockets = ">=13"
|
|
92
|
-
# Pin to fix cve https://github.com/robusta-dev/robusta/security/dependabot/85
|
|
93
|
-
h2 = "^4.
|
|
93
|
+
# Pin to fix cve https://github.com/robusta-dev/robusta/security/dependabot/85 and CVE-2026-71554
|
|
94
|
+
h2 = "^4.4.1"
|
|
94
95
|
# Pin to fix CVE-2026-30922 (transitive via google-auth)
|
|
95
96
|
# Bump to fix CVE-2026-59885, CVE-2026-59886 (High)
|
|
96
|
-
pyasn1 = ">=0.6.
|
|
97
|
+
pyasn1 = ">=0.6.5" # CVE-2026-119194/119195/119196/119197 (High)
|
|
98
|
+
# Pin to fix CVE-2026-118669 and CVE-2026-49272 (High) (transitive via requests-oauthlib)
|
|
99
|
+
oauthlib = ">=4.0.1"
|
|
97
100
|
# Pin to fix CVE-2026-63374 (Critical) + CVE-2026-64847 (Medium) (transitive via httpx)
|
|
98
101
|
anyio = "^4.14.2"
|
|
99
|
-
# Pin to fix CVE-2026-22701 (transitive via virtualenv/pre-commit)
|
|
100
|
-
filelock = ">=
|
|
101
|
-
# Pin to fix CVE-2026-102925/102930/102937 (transitive via pre-commit)
|
|
102
|
-
virtualenv = "^21.
|
|
102
|
+
# Pin to fix CVE-2026-22701 and CVE-2026-112940 (transitive via virtualenv/pre-commit)
|
|
103
|
+
filelock = ">=4.2.1"
|
|
104
|
+
# Pin to fix CVE-2026-102925/102930/102937, CVE-2026-113718/113722/113723/113725 (transitive via pre-commit)
|
|
105
|
+
virtualenv = "^21.14.9"
|
|
103
106
|
# Pillow is used directly (MS Teams PNG->JPEG image conversion) and by reportlab.
|
|
104
107
|
# Pin to fix CVE-2026-54058,
|
|
105
108
|
# CVE-2026-54059, CVE-2026-54060, CVE-2026-55379, CVE-2026-55380, CVE-2026-59197,
|
|
106
|
-
# CVE-2026-59199, CVE-2026-59200, CVE-2026-59204, CVE-2026-59205 (High)
|
|
107
|
-
|
|
109
|
+
# CVE-2026-59199, CVE-2026-59200, CVE-2026-59204, CVE-2026-59205 (High) and the
|
|
110
|
+
# CVE-2026-112390..112406, 112892..112902, 96637..96778 batch fixed in 13.0.0
|
|
111
|
+
pillow = "^13.0.0"
|
|
108
112
|
# click is pulled in transitively (flask, typer). Pin to fix CVE-2026-7246 (High):
|
|
109
113
|
# command injection via unsanitized filename in click.edit()
|
|
110
114
|
click = ">=8.3.3"
|
|
@@ -122,6 +126,8 @@ Sphinx = "6.2.1"
|
|
|
122
126
|
sphinx-autobuild = "^2021.3.14"
|
|
123
127
|
sphinx-copybutton = "^0.4.0"
|
|
124
128
|
sphinx-design = "0.5.0"
|
|
129
|
+
# Builds the .md pages in docs/. 3.0.x is the last line that supports Sphinx 6; move with Sphinx.
|
|
130
|
+
myst-parser = "3.0.1"
|
|
125
131
|
witchhazel = "^2018.8.23"
|
|
126
132
|
sphinx-autodoc-typehints = "^1.12.0"
|
|
127
133
|
sphinxcontrib-images = "^0.9.4"
|
|
@@ -137,7 +143,8 @@ sphinx-immaterial = { git = "https://github.com/robusta-dev/robusta-immaterial.g
|
|
|
137
143
|
# As it does not work witn sphynx-immaterial, we need to exclude it from the dev dependencies
|
|
138
144
|
# Please, install it manually if you need to run flake8
|
|
139
145
|
# flake8 = "5.0.4"
|
|
140
|
-
|
|
146
|
+
# CVE-2026-114134 (High)
|
|
147
|
+
black = "26.10.1"
|
|
141
148
|
mypy = "0.991"
|
|
142
149
|
isort = "5.10.1"
|
|
143
150
|
absolufy-imports = "^0.3.1"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# this is updated by .github/workflows/release.yaml
|
|
2
|
-
__version__ = "0.
|
|
2
|
+
__version__ = "0.55.0"
|
|
@@ -270,6 +270,55 @@ class NamespacedResourcesParams(ActionParams):
|
|
|
270
270
|
namespace: str
|
|
271
271
|
|
|
272
272
|
|
|
273
|
+
# Fields a scan job spec may set. They only affect where and how the job's pod is scheduled.
|
|
274
|
+
ALLOWED_JOB_SPEC_FIELDS = frozenset(
|
|
275
|
+
{
|
|
276
|
+
"tolerations",
|
|
277
|
+
"nodeSelector",
|
|
278
|
+
"affinity",
|
|
279
|
+
"priorityClassName",
|
|
280
|
+
"imagePullSecrets",
|
|
281
|
+
"topologySpreadConstraints",
|
|
282
|
+
"schedulerName",
|
|
283
|
+
}
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
def validate_job_spec(job_spec: Optional[Dict[str, Any]]) -> Dict[str, Any]:
|
|
288
|
+
"""Validate the extra pod spec fields of a scan job. Only scheduling fields are accepted."""
|
|
289
|
+
if not job_spec:
|
|
290
|
+
return {}
|
|
291
|
+
unsupported = sorted(set(job_spec) - ALLOWED_JOB_SPEC_FIELDS)
|
|
292
|
+
if unsupported:
|
|
293
|
+
raise ValueError(
|
|
294
|
+
f"Unsupported job spec fields: {', '.join(map(str, unsupported))}. "
|
|
295
|
+
f"Supported fields: {', '.join(sorted(ALLOWED_JOB_SPEC_FIELDS))}"
|
|
296
|
+
)
|
|
297
|
+
return job_spec
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
# Parameters that decide the identity, metadata and command line of pods the runner creates. They are taken
|
|
301
|
+
# from the runner's configuration only, never from the parameters of an individual action request.
|
|
302
|
+
CONFIG_ONLY_PARAMS = frozenset(
|
|
303
|
+
{
|
|
304
|
+
"serviceAccountName",
|
|
305
|
+
"service_account_name",
|
|
306
|
+
"custom_annotations",
|
|
307
|
+
# command line arguments of the KRR and Popeye scan jobs
|
|
308
|
+
"krr_args",
|
|
309
|
+
"popeye_args",
|
|
310
|
+
"args",
|
|
311
|
+
}
|
|
312
|
+
)
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
def drop_config_only_params(action_params: Optional[Dict[str, Any]]) -> Optional[Dict[str, Any]]:
|
|
316
|
+
"""Remove the parameters an action request may not set, so the configured values apply."""
|
|
317
|
+
if not action_params:
|
|
318
|
+
return action_params
|
|
319
|
+
return {name: value for name, value in action_params.items() if name not in CONFIG_ONLY_PARAMS}
|
|
320
|
+
|
|
321
|
+
|
|
273
322
|
class PodRunningParams(ActionParams):
|
|
274
323
|
"""
|
|
275
324
|
:var custom_annotations: custom annotations to be used for the running pod/job
|
|
@@ -321,6 +370,7 @@ class PrometheusParams(ActionParams):
|
|
|
321
370
|
:var prometheus_additional_headers: additional HTTP headers (if defined) to add to every prometheus query
|
|
322
371
|
:var prometheus_additional_labels: A dictionary of additional labels needed for multi-cluster prometheus
|
|
323
372
|
:var add_additional_labels: adds the additional labels (if defined) to the query
|
|
373
|
+
:var namespace: the namespace the queries are about. With PROMETHEUS_TENANT_LABEL set, its label picks the tenant
|
|
324
374
|
|
|
325
375
|
:example prometheus_url: "http://prometheus-k8s.monitoring.svc.cluster.local:9090"
|
|
326
376
|
:example prometheus_auth: Basic YWRtaW46cGFzc3dvcmQ=
|
|
@@ -337,6 +387,7 @@ class PrometheusParams(ActionParams):
|
|
|
337
387
|
prometheus_additional_headers: Optional[Dict[str, str]] = None
|
|
338
388
|
prometheus_additional_labels: Optional[Dict[str, str]] = None
|
|
339
389
|
add_additional_labels: bool = True
|
|
390
|
+
namespace: Optional[str] = None
|
|
340
391
|
prometheus_graphs_overrides: Optional[List[OverrideGraph]] = None
|
|
341
392
|
|
|
342
393
|
@validator("prometheus_url", allow_reuse=True)
|
|
@@ -36,7 +36,6 @@ SUPABASE_LOGIN_RETRY_MAX_BACKOFF_SEC = float(os.environ.get("SUPABASE_LOGIN_RETR
|
|
|
36
36
|
# separately from SUPABASE_TIMEOUT_SECONDS so an unreachable platform fails (and retries)
|
|
37
37
|
# promptly instead of parking every attempt on the full read budget.
|
|
38
38
|
SUPABASE_CONNECT_TIMEOUT_SECONDS = float(os.environ.get("SUPABASE_CONNECT_TIMEOUT_SECONDS", 10))
|
|
39
|
-
GRAFANA_RENDERER_URL = os.environ.get("GRAFANA_RENDERER_URL", "http://127.0.0.1:8281/render")
|
|
40
39
|
RESOURCE_UPDATES_CACHE_TTL_SEC = os.environ.get("RESOURCE_UPDATES_CACHE_TTL_SEC", 120)
|
|
41
40
|
INTERNAL_PLAYBOOKS_ROOT = os.environ.get("INTERNAL_PLAYBOOKS_ROOT", "/app/src/robusta/core/playbooks/internal")
|
|
42
41
|
DEFAULT_TIMEZONE = pytz.timezone(os.environ.get("DEFAULT_TIMEZONE", "UTC"))
|
|
@@ -49,6 +48,10 @@ PROMETHEUS_REQUEST_TIMEOUT_SECONDS = float(os.environ.get("PROMETHEUS_REQUEST_TI
|
|
|
49
48
|
PROMETHEUS_ENABLED = os.environ.get("PROMETHEUS_ENABLED", "false").lower() == "true"
|
|
50
49
|
MANAGED_CONFIGURATION_ENABLED = os.environ.get("MANAGED_CONFIGURATION_ENABLED", "false").lower() == "true"
|
|
51
50
|
PROMETHEUS_SSL_ENABLED = os.environ.get("PROMETHEUS_SSL_ENABLED", "false").lower() == "true"
|
|
51
|
+
# Multi-tenant Prometheus (e.g. Mimir): label on the action's namespace, sent as the tenant header.
|
|
52
|
+
# Env vars, not global_config, so a request from the UI can't override them.
|
|
53
|
+
PROMETHEUS_TENANT_LABEL = os.environ.get("PROMETHEUS_TENANT_LABEL")
|
|
54
|
+
PROMETHEUS_TENANT_HEADER = os.environ.get("PROMETHEUS_TENANT_HEADER", "X-Scope-OrgID")
|
|
52
55
|
|
|
53
56
|
INCOMING_REQUEST_TIME_WINDOW_SECONDS = int(os.environ.get("INCOMING_REQUEST_TIME_WINDOW_SECONDS", 3600))
|
|
54
57
|
|
{robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/playbooks/internal/ai_integration.py
RENAMED
|
@@ -352,9 +352,8 @@ def holmes_chat(event: ExecutionBaseEvent, params: HolmesChatParams):
|
|
|
352
352
|
if tool.tool_name not in GRAPH_TOOLS:
|
|
353
353
|
continue
|
|
354
354
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
r"<<.*?>>", "", holmes_result.analysis
|
|
355
|
+
holmes_result.analysis = strip_embedded_tool_calls(
|
|
356
|
+
holmes_result.analysis
|
|
358
357
|
).strip()
|
|
359
358
|
json_content = json.loads(tool.result["data"])
|
|
360
359
|
contents, name = get_png_from_graph_tool(json_content)
|
|
@@ -432,6 +431,32 @@ def holmes_oauth(event: ExecutionBaseEvent, params: HolmesOAuthParams):
|
|
|
432
431
|
handle_holmes_error(e)
|
|
433
432
|
|
|
434
433
|
|
|
434
|
+
# Embedded tool calls (<< {"type": "promql", ...} >>) are not supported when
|
|
435
|
+
# graphs are rendered as images. Only the marker shape is matched: a bare `<<`
|
|
436
|
+
# (a shell/Terraform heredoc, a C++ operator) must survive untouched, and a
|
|
437
|
+
# match must not run from one marker across another (ROB-1751).
|
|
438
|
+
EMBEDDED_TOOL_CALL_RE = re.compile(r"<<\s*\{(?:(?!<<|>>).)*?\}\s*>>", re.DOTALL)
|
|
439
|
+
ANSWER_TEXT_FIELDS = ("analysis", "content")
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
def strip_embedded_tool_calls(text: str) -> str:
|
|
443
|
+
return EMBEDDED_TOOL_CALL_RE.sub("", text)
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
def strip_embedded_tool_calls_from_answer(
|
|
447
|
+
event_type: str, data_line: str, raw_event: str
|
|
448
|
+
) -> str:
|
|
449
|
+
"""Strip markers from the answer text fields only. Running the regex over
|
|
450
|
+
the raw SSE line also eats conversation_history and breaks the JSON."""
|
|
451
|
+
data = parse_sse_data(data_line)
|
|
452
|
+
if not isinstance(data, dict):
|
|
453
|
+
return raw_event
|
|
454
|
+
for field in ANSWER_TEXT_FIELDS:
|
|
455
|
+
if isinstance(data.get(field), str):
|
|
456
|
+
data[field] = strip_embedded_tool_calls(data[field])
|
|
457
|
+
return create_sse_message(event_type, data)
|
|
458
|
+
|
|
459
|
+
|
|
435
460
|
def stream_and_render_graphs(url, holmes_req, event):
|
|
436
461
|
with requests.post(
|
|
437
462
|
url,
|
|
@@ -451,9 +476,10 @@ def stream_and_render_graphs(url, holmes_req, event):
|
|
|
451
476
|
continue
|
|
452
477
|
|
|
453
478
|
event_type = parse_sse_event_type(event_lines[0])
|
|
454
|
-
# removes all embedded tool calls in this case as its not supported.
|
|
455
479
|
if event_type == StreamEvents.ANSWER_END.value:
|
|
456
|
-
stream_event =
|
|
480
|
+
stream_event = strip_embedded_tool_calls_from_answer(
|
|
481
|
+
event_type, event_lines[1], stream_event
|
|
482
|
+
)
|
|
457
483
|
|
|
458
484
|
if event_type != StreamEvents.TOOL_RESULT.value:
|
|
459
485
|
event.ws(data=stream_event)
|
|
@@ -13,6 +13,7 @@ from robusta.core.model.events import ExecutionBaseEvent
|
|
|
13
13
|
from robusta.core.reporting.blocks import FileBlock, JsonBlock
|
|
14
14
|
from robusta.core.reporting.base import Finding, EnrichmentType
|
|
15
15
|
from robusta.utils.error_codes import ActionException, ErrorCodes
|
|
16
|
+
from pydantic.v1 import validator
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
def run_kubectl_command(command: List[str]) -> str:
|
|
@@ -39,11 +40,37 @@ def run_kubectl_command(command: List[str]) -> str:
|
|
|
39
40
|
raise e
|
|
40
41
|
|
|
41
42
|
|
|
43
|
+
# kind, name and namespace are passed to kubectl as arguments. They must look like Kubernetes names, so that a
|
|
44
|
+
# value can never be read by kubectl as a flag.
|
|
45
|
+
KUBECTL_KIND_PATTERN = re.compile(r"[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?")
|
|
46
|
+
KUBECTL_NAME_PATTERN = re.compile(r"[A-Za-z0-9]([A-Za-z0-9._:-]*[A-Za-z0-9])?")
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def validate_kubectl_argument(value: Optional[str], pattern: re.Pattern, field: str) -> Optional[str]:
|
|
50
|
+
if not value and field == "namespace":
|
|
51
|
+
return None # an empty namespace means a cluster-scoped resource
|
|
52
|
+
if not pattern.fullmatch(value):
|
|
53
|
+
raise ValueError(f"Invalid {field}")
|
|
54
|
+
return value
|
|
55
|
+
|
|
56
|
+
|
|
42
57
|
class ResourceParams(ActionParams):
|
|
43
58
|
kind: str
|
|
44
59
|
name: str
|
|
45
60
|
namespace: Optional[str] = None
|
|
46
61
|
|
|
62
|
+
@validator("kind", allow_reuse=True)
|
|
63
|
+
def validate_kind(cls, kind: str) -> str:
|
|
64
|
+
return validate_kubectl_argument(kind, KUBECTL_KIND_PATTERN, "kind")
|
|
65
|
+
|
|
66
|
+
@validator("name", allow_reuse=True)
|
|
67
|
+
def validate_name(cls, name: str) -> str:
|
|
68
|
+
return validate_kubectl_argument(name, KUBECTL_NAME_PATTERN, "name")
|
|
69
|
+
|
|
70
|
+
@validator("namespace", allow_reuse=True)
|
|
71
|
+
def validate_namespace(cls, namespace: Optional[str]) -> Optional[str]:
|
|
72
|
+
return validate_kubectl_argument(namespace, KUBECTL_NAME_PATTERN, "namespace")
|
|
73
|
+
|
|
47
74
|
@action
|
|
48
75
|
def kubectl_describe(event: ExecutionBaseEvent, params: ResourceParams):
|
|
49
76
|
"""
|
|
@@ -56,9 +83,10 @@ def kubectl_describe(event: ExecutionBaseEvent, params: ResourceParams):
|
|
|
56
83
|
)
|
|
57
84
|
|
|
58
85
|
try:
|
|
59
|
-
cmd = ["kubectl", "describe"
|
|
86
|
+
cmd = ["kubectl", "describe"]
|
|
60
87
|
if params.namespace:
|
|
61
88
|
cmd.extend(["-n", params.namespace])
|
|
89
|
+
cmd.extend(["--", params.kind, params.name])
|
|
62
90
|
|
|
63
91
|
output = run_kubectl_command(cmd)
|
|
64
92
|
|
|
@@ -91,9 +119,10 @@ def fetch_resource_yaml(event: ExecutionBaseEvent, params: ResourceParams):
|
|
|
91
119
|
)
|
|
92
120
|
|
|
93
121
|
try:
|
|
94
|
-
cmd = ["kubectl", "get",
|
|
122
|
+
cmd = ["kubectl", "get", "-o", "yaml"]
|
|
95
123
|
if params.namespace:
|
|
96
124
|
cmd.extend(["-n", params.namespace])
|
|
125
|
+
cmd.extend(["--", params.kind, params.name])
|
|
97
126
|
|
|
98
127
|
output = run_kubectl_command(cmd)
|
|
99
128
|
|
|
@@ -224,6 +253,14 @@ class CRInstancesParams(ActionParams):
|
|
|
224
253
|
namespace: Optional[str] = None
|
|
225
254
|
fields: Optional[List[str]] = None # List of fields to return from each instance
|
|
226
255
|
|
|
256
|
+
@validator("kind", allow_reuse=True)
|
|
257
|
+
def validate_kind(cls, kind: str) -> str:
|
|
258
|
+
return validate_kubectl_argument(kind, KUBECTL_KIND_PATTERN, "kind")
|
|
259
|
+
|
|
260
|
+
@validator("namespace", allow_reuse=True)
|
|
261
|
+
def validate_namespace(cls, namespace: Optional[str]) -> Optional[str]:
|
|
262
|
+
return validate_kubectl_argument(namespace, KUBECTL_NAME_PATTERN, "namespace")
|
|
263
|
+
|
|
227
264
|
@action
|
|
228
265
|
def fetch_cr_instances(event: ExecutionBaseEvent, params: CRInstancesParams):
|
|
229
266
|
"""
|
|
@@ -236,11 +273,12 @@ def fetch_cr_instances(event: ExecutionBaseEvent, params: CRInstancesParams):
|
|
|
236
273
|
)
|
|
237
274
|
|
|
238
275
|
try:
|
|
239
|
-
cmd = ["kubectl", "get",
|
|
276
|
+
cmd = ["kubectl", "get", "-o", "json"]
|
|
240
277
|
if params.namespace:
|
|
241
278
|
cmd.extend(["-n", params.namespace])
|
|
242
279
|
else:
|
|
243
280
|
cmd.append("--all-namespaces")
|
|
281
|
+
cmd.extend(["--", params.kind])
|
|
244
282
|
|
|
245
283
|
output = run_kubectl_command(cmd)
|
|
246
284
|
|
|
@@ -9,6 +9,7 @@ from typing import Any, Dict, List, Optional
|
|
|
9
9
|
import prometheus_client
|
|
10
10
|
from prometrix import PrometheusNotFound
|
|
11
11
|
|
|
12
|
+
from robusta.core.model.base_params import drop_config_only_params
|
|
12
13
|
from robusta.core.model.events import ExecutionBaseEvent, ExecutionContext
|
|
13
14
|
from robusta.core.playbooks.base_trigger import BaseTrigger, TriggerEvent
|
|
14
15
|
from robusta.core.playbooks.playbook_utils import merge_global_params, to_safe_str
|
|
@@ -149,6 +150,7 @@ class PlaybooksEventHandlerImpl(PlaybooksEventHandler):
|
|
|
149
150
|
sync_response: bool = False,
|
|
150
151
|
no_sinks: bool = False,
|
|
151
152
|
) -> Optional[Dict[str, Any]]:
|
|
153
|
+
action_params = drop_config_only_params(action_params)
|
|
152
154
|
action_def = self.registry.get_actions().get_action(action_name)
|
|
153
155
|
if not action_def:
|
|
154
156
|
return self.__error_resp(f"External action not found {action_name}", ErrorCodes.ACTION_NOT_FOUND.value)
|
|
@@ -372,6 +374,7 @@ class PlaybooksEventHandlerImpl(PlaybooksEventHandler):
|
|
|
372
374
|
def run_external_stream_action(
|
|
373
375
|
self, action_name: str, action_params: Optional[dict], ws
|
|
374
376
|
) -> Optional[Dict[str, Any]]:
|
|
377
|
+
action_params = drop_config_only_params(action_params)
|
|
375
378
|
action_def = self.registry.get_actions().get_action(action_name)
|
|
376
379
|
if not action_def:
|
|
377
380
|
return self.__error_resp(f"External action not found {action_name}", ErrorCodes.ACTION_NOT_FOUND.value)
|
|
@@ -16,7 +16,11 @@ from robusta.core.model.base_params import (
|
|
|
16
16
|
ResourceChartItemType,
|
|
17
17
|
ResourceChartResourceType,
|
|
18
18
|
)
|
|
19
|
-
from robusta.core.model.env_vars import
|
|
19
|
+
from robusta.core.model.env_vars import (
|
|
20
|
+
FLOAT_PRECISION_LIMIT,
|
|
21
|
+
PROMETHEUS_REQUEST_TIMEOUT_SECONDS,
|
|
22
|
+
PROMETHEUS_TENANT_LABEL,
|
|
23
|
+
)
|
|
20
24
|
from robusta.core.reporting.blocks import GraphBlock, PrometheusBlock, PrometheusBlockLineData
|
|
21
25
|
from robusta.core.reporting.charts import XYChart
|
|
22
26
|
from robusta.core.reporting.custom_rendering import charts_style
|
|
@@ -61,6 +65,16 @@ def __prepare_promql_query(provided_labels: Dict[Any, Any], promql_query_templat
|
|
|
61
65
|
return promql_query
|
|
62
66
|
|
|
63
67
|
|
|
68
|
+
def with_namespace_tenant(prometheus_params: PrometheusParams, namespace: Optional[str]) -> PrometheusParams:
|
|
69
|
+
"""
|
|
70
|
+
Multi-tenant Prometheus: params whose queries go to the tenant of `namespace`, unless they already name one.
|
|
71
|
+
Returns a copy, since an action reuses its params for several graphs.
|
|
72
|
+
"""
|
|
73
|
+
if not PROMETHEUS_TENANT_LABEL or prometheus_params.namespace or not namespace:
|
|
74
|
+
return prometheus_params
|
|
75
|
+
return prometheus_params.copy(update={"namespace": namespace})
|
|
76
|
+
|
|
77
|
+
|
|
64
78
|
def get_node_internal_ip(node: Node) -> str:
|
|
65
79
|
internal_ip = next(addr.address for addr in node.status.addresses if addr.type == "InternalIP")
|
|
66
80
|
return internal_ip
|
|
@@ -495,6 +509,10 @@ def create_graph_enrichment(
|
|
|
495
509
|
hide_legends: Optional[bool] = False,
|
|
496
510
|
metrics_legends_labels: Optional[List[str]] = None,
|
|
497
511
|
) -> GraphBlock:
|
|
512
|
+
# Only a query that fills in $namespace is about that namespace. Node queries aren't, even when the labels have
|
|
513
|
+
# one (e.g. the exporter's namespace on a node alert), so they keep the default tenant
|
|
514
|
+
if "namespace" in Template(promql_query).get_identifiers():
|
|
515
|
+
prometheus_params = with_namespace_tenant(prometheus_params, labels.get("namespace"))
|
|
498
516
|
promql_query = __prepare_promql_query(labels, promql_query)
|
|
499
517
|
chart, prom_block = create_chart_from_prometheus_query(
|
|
500
518
|
prometheus_params,
|
{robusta_api-0.54.0a0 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/dal/supabase_dal.py
RENAMED
|
@@ -5,6 +5,7 @@ from datetime import datetime
|
|
|
5
5
|
import os
|
|
6
6
|
import threading
|
|
7
7
|
from typing import Any, Dict, List, Optional, Tuple
|
|
8
|
+
from urllib.parse import urlparse
|
|
8
9
|
from uuid import uuid4
|
|
9
10
|
from cachetools import TTLCache
|
|
10
11
|
import httpx
|
|
@@ -89,14 +90,55 @@ KEY_CACHE = TTLCache(maxsize=1, ttl=24 * 60 * 60)
|
|
|
89
90
|
retry=retry_if_exception_type((requests.ConnectionError, requests.Timeout)),
|
|
90
91
|
reraise=True,
|
|
91
92
|
)
|
|
92
|
-
def _request_supabase_api_key(params: dict) -> Optional[str]:
|
|
93
|
-
url = f"{
|
|
93
|
+
def _request_supabase_api_key(api_endpoint: str, params: dict) -> Optional[str]:
|
|
94
|
+
url = f"{api_endpoint}/api/config/supabase-keys"
|
|
94
95
|
response = requests.get(url, params=params, timeout=10)
|
|
95
96
|
response.raise_for_status()
|
|
96
97
|
return response.json().get("api_key")
|
|
97
98
|
|
|
98
99
|
|
|
99
|
-
def
|
|
100
|
+
def _hostname(url: str) -> str:
|
|
101
|
+
try:
|
|
102
|
+
return (urlparse(url).hostname or "").lower().rstrip(".")
|
|
103
|
+
except ValueError:
|
|
104
|
+
return ""
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def _is_robusta_saas_url(url: str) -> bool:
|
|
108
|
+
host = _hostname(url)
|
|
109
|
+
return host == "robusta.dev" or host.endswith((".robusta.dev", ".supabase.co"))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
# Each SaaS store's key is served by its own region's API. Helm values generated before 2026-05 leave
|
|
113
|
+
# ROBUSTA_API_ENDPOINT on the US default even for EU/AP accounts.
|
|
114
|
+
SAAS_STORE_KEY_ENDPOINTS = {
|
|
115
|
+
# each region's custom domain and the Supabase project domain it points to
|
|
116
|
+
"sp.robusta.dev": "https://api.robusta.dev",
|
|
117
|
+
"xvyhpoxfmtpuqqeyqkso.supabase.co": "https://api.robusta.dev",
|
|
118
|
+
"sp.eu.robusta.dev": "https://api.eu.robusta.dev",
|
|
119
|
+
"fdeazqbagpxzlaumbahw.supabase.co": "https://api.eu.robusta.dev",
|
|
120
|
+
"sp.ap.robusta.dev": "https://api.ap.robusta.dev",
|
|
121
|
+
"xvtsnzetsdaiyobgdlic.supabase.co": "https://api.ap.robusta.dev",
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def should_fetch_keys_from_saas(store_url: str) -> bool:
|
|
126
|
+
"""Whether the relay at ROBUSTA_API_ENDPOINT can hand out an api key for this store.
|
|
127
|
+
|
|
128
|
+
Robusta's SaaS relay only holds keys for Robusta's SaaS stores. A self-hosted runner
|
|
129
|
+
whose ROBUSTA_API_ENDPOINT was left on the SaaS default would leave the cluster for a
|
|
130
|
+
key that cannot sign in to its own store, and egress policies alert on that (ROB-1743).
|
|
131
|
+
"""
|
|
132
|
+
return not _is_robusta_saas_url(ROBUSTA_API_ENDPOINT) or _is_robusta_saas_url(store_url)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
def fetch_supabase_api_key(account_id: str, cluster: str, store_url: str) -> Optional[str]:
|
|
136
|
+
if not should_fetch_keys_from_saas(store_url):
|
|
137
|
+
logging.info(
|
|
138
|
+
f"Not fetching the api key from {ROBUSTA_API_ENDPOINT}: it is Robusta SaaS and the store "
|
|
139
|
+
f"host '{_hostname(store_url)}' is not. Using the api key from the Robusta token."
|
|
140
|
+
)
|
|
141
|
+
return None
|
|
100
142
|
params = {
|
|
101
143
|
"account_id": account_id,
|
|
102
144
|
"cluster": cluster,
|
|
@@ -104,7 +146,8 @@ def fetch_supabase_api_key(account_id: str, cluster: str) -> Optional[str]:
|
|
|
104
146
|
"component_version": RUNNER_VERSION,
|
|
105
147
|
}
|
|
106
148
|
try:
|
|
107
|
-
|
|
149
|
+
api_endpoint = SAAS_STORE_KEY_ENDPOINTS.get(_hostname(store_url), ROBUSTA_API_ENDPOINT)
|
|
150
|
+
return _request_supabase_api_key(api_endpoint, params)
|
|
108
151
|
except Exception as e:
|
|
109
152
|
logging.warning(f"Failed to fetch the api key from relay: {e}")
|
|
110
153
|
return None
|
|
@@ -157,7 +200,7 @@ class SupabaseDal(AccountResourceFetcher):
|
|
|
157
200
|
|
|
158
201
|
def __connect(self, options: ClientOptions):
|
|
159
202
|
self.options = options
|
|
160
|
-
relay_key = fetch_supabase_api_key(self.account_id, self.cluster)
|
|
203
|
+
relay_key = fetch_supabase_api_key(self.account_id, self.cluster, self.url)
|
|
161
204
|
for key in filter(None, (KEY_CACHE.pop("key", None), relay_key)):
|
|
162
205
|
try:
|
|
163
206
|
self.__login(key, options)
|
|
@@ -315,14 +315,18 @@ class RobustaSink(SinkBase, EventHandler):
|
|
|
315
315
|
def __get_events_history(self):
|
|
316
316
|
try:
|
|
317
317
|
logging.info("Getting events history")
|
|
318
|
-
|
|
318
|
+
receiver = self.registry.get_receiver()
|
|
319
|
+
if not receiver:
|
|
320
|
+
logging.error("Error running 'event_history'. The action receiver is not initialized.")
|
|
321
|
+
return
|
|
322
|
+
# run in-process: /api/trigger is restricted to KRR scan results
|
|
323
|
+
response = receiver.event_handler.run_external_action(
|
|
319
324
|
action_name="event_history",
|
|
325
|
+
action_params={"annotation": None},
|
|
320
326
|
sinks=[self.sink_name],
|
|
321
|
-
retries=4,
|
|
322
|
-
timeout_delay=30,
|
|
323
327
|
)
|
|
324
|
-
if response
|
|
325
|
-
logging.error("Error running 'event_history'.")
|
|
328
|
+
if not response or not response.get("success"):
|
|
329
|
+
logging.error(f"Error running 'event_history'. {response}")
|
|
326
330
|
else:
|
|
327
331
|
logging.info("Cluster historical data sent.")
|
|
328
332
|
except Exception:
|
|
@@ -815,16 +819,16 @@ class RobustaSink(SinkBase, EventHandler):
|
|
|
815
819
|
def is_holmes_slackbot_connected(self) -> bool:
|
|
816
820
|
if 'status' in _holmes_slackbot_cache:
|
|
817
821
|
return _holmes_slackbot_cache['status']
|
|
818
|
-
session_token = self.dal.get_session_token()
|
|
819
822
|
try:
|
|
820
823
|
message_json = {
|
|
821
|
-
"session_token":
|
|
824
|
+
"session_token": self.dal.get_session_token(),
|
|
822
825
|
"account_id": self.account_id,
|
|
823
826
|
}
|
|
824
827
|
response = requests.post(
|
|
825
828
|
RUNNER_GET_HOLMES_SLACKBOT_INFO,
|
|
826
829
|
json=message_json,
|
|
827
|
-
headers={"Content-Type": "application/json"}
|
|
830
|
+
headers={"Content-Type": "application/json"},
|
|
831
|
+
timeout=10,
|
|
828
832
|
)
|
|
829
833
|
response.raise_for_status()
|
|
830
834
|
is_connected = bool(response.json().get("integrations"))
|
|
@@ -19,8 +19,11 @@ from robusta.core.model.env_vars import (
|
|
|
19
19
|
DISABLE_PROMETHEUS_DISCOVERY,
|
|
20
20
|
HOLMES_DISCOVERY_NAMESPACE,
|
|
21
21
|
PROMETHEUS_SSL_ENABLED,
|
|
22
|
+
PROMETHEUS_TENANT_HEADER,
|
|
23
|
+
PROMETHEUS_TENANT_LABEL,
|
|
22
24
|
SERVICE_CACHE_TTL_SEC,
|
|
23
25
|
)
|
|
26
|
+
from robusta.integrations.kubernetes.api_client_utils import get_namespace_labels
|
|
24
27
|
from robusta.utils.service_discovery import find_service_url
|
|
25
28
|
|
|
26
29
|
AZURE_RESOURCE = os.environ.get("AZURE_RESOURCE", "https://prometheus.monitor.azure.com")
|
|
@@ -39,6 +42,21 @@ AWS_ASSUME_ROLE = os.environ.get("AWS_ASSUME_ROLE")
|
|
|
39
42
|
VICTORIA_METRICS_CONFIGURED = os.environ.get("VICTORIA_METRICS_CONFIGURED", "false").lower() == "true"
|
|
40
43
|
|
|
41
44
|
|
|
45
|
+
def get_namespace_tenant(namespace: str) -> Optional[str]:
|
|
46
|
+
"""
|
|
47
|
+
Multi-tenant Prometheus (e.g. Mimir): the tenant of a namespace, which is the value of its PROMETHEUS_TENANT_LABEL
|
|
48
|
+
label, read from the cached namespace data (NAMESPACE_DATA_TTL). None when the namespace has no such label.
|
|
49
|
+
Call it only with PROMETHEUS_TENANT_LABEL set.
|
|
50
|
+
"""
|
|
51
|
+
try:
|
|
52
|
+
tenant = (get_namespace_labels(namespace) or {}).get(PROMETHEUS_TENANT_LABEL)
|
|
53
|
+
except KeyError: # a namespace created after the last reload, or deleted
|
|
54
|
+
tenant = None
|
|
55
|
+
if not tenant:
|
|
56
|
+
logging.debug(f"No '{PROMETHEUS_TENANT_LABEL}' label on namespace {namespace}, using the default tenant")
|
|
57
|
+
return tenant
|
|
58
|
+
|
|
59
|
+
|
|
42
60
|
def generate_prometheus_config(prometheus_params: PrometheusParams) -> PrometheusConfig:
|
|
43
61
|
is_victoria_metrics = VICTORIA_METRICS_CONFIGURED
|
|
44
62
|
url: Optional[str] = (
|
|
@@ -63,6 +81,12 @@ def generate_prometheus_config(prometheus_params: PrometheusParams) -> Prometheu
|
|
|
63
81
|
if prometheus_params.prometheus_additional_headers:
|
|
64
82
|
baseconfig["headers"] = prometheus_params.prometheus_additional_headers
|
|
65
83
|
|
|
84
|
+
if PROMETHEUS_TENANT_LABEL and prometheus_params.namespace:
|
|
85
|
+
tenant = get_namespace_tenant(prometheus_params.namespace)
|
|
86
|
+
if tenant:
|
|
87
|
+
# A new dict that replaces any tenant header from global_config or the request, leaving theirs unchanged
|
|
88
|
+
baseconfig["headers"] = {**baseconfig.get("headers", {}), PROMETHEUS_TENANT_HEADER: tenant}
|
|
89
|
+
|
|
66
90
|
# aws config
|
|
67
91
|
if AWS_REGION:
|
|
68
92
|
return AWSPrometheusConfig(
|