robusta-api 0.54.0a1__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.
Files changed (317) hide show
  1. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/PKG-INFO +3 -2
  2. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/pyproject.toml +6 -2
  3. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/_version.py +1 -1
  4. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/base_params.py +49 -0
  5. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/internal/ai_integration.py +31 -5
  6. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/internal/crds.py +41 -3
  7. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/playbooks_event_handler_impl.py +3 -0
  8. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/robusta_sink.py +9 -5
  9. robusta_api-0.55.0/src/robusta/runner/scan_callbacks.py +38 -0
  10. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/web.py +22 -9
  11. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/web_api.py +0 -30
  12. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/LICENSE +0 -0
  13. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/__init__.py +0 -0
  14. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/api/__init__.py +0 -0
  15. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/clients/robusta_client.py +0 -0
  16. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/__init__.py +0 -0
  17. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/discovery/__init__.py +0 -0
  18. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/discovery/discovery.py +0 -0
  19. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/discovery/resource_names.py +0 -0
  20. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/discovery/top_service_resolver.py +0 -0
  21. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/discovery/utils.py +0 -0
  22. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/exceptions.py +0 -0
  23. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/__init__.py +0 -0
  24. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/cluster_status.py +0 -0
  25. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/env_vars.py +0 -0
  26. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/events.py +0 -0
  27. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/helm_release.py +0 -0
  28. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/jobs.py +0 -0
  29. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/k8s_operation_type.py +0 -0
  30. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/namespaces.py +0 -0
  31. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/nodes.py +0 -0
  32. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/openshift_group.py +0 -0
  33. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/pods.py +0 -0
  34. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/runner_config.py +0 -0
  35. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/model/services.py +0 -0
  36. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/persistency/__init__.py +0 -0
  37. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/persistency/in_memory.py +0 -0
  38. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/persistency/scheduled_jobs_states_dal.py +0 -0
  39. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/__init__.py +0 -0
  40. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/actions_registry.py +0 -0
  41. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/base_trigger.py +0 -0
  42. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/common.py +0 -0
  43. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/container_playbook_utils.py +0 -0
  44. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/crash_reporter.py +0 -0
  45. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/generation.py +0 -0
  46. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/internal/CRD_API_DOCUMENTATION.md +0 -0
  47. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/internal/__init__.py +0 -0
  48. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/internal/discovery_events.py +0 -0
  49. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/job_utils.py +0 -0
  50. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/node_enrichment_utils.py +0 -0
  51. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/node_playbook_utils.py +0 -0
  52. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/oom_killer_utils.py +0 -0
  53. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/playbook_utils.py +0 -0
  54. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/playbooks_event_handler.py +0 -0
  55. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/pod_utils/crashloop_utils.py +0 -0
  56. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/pod_utils/imagepull_utils.py +0 -0
  57. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/pod_utils/pending_pod_utils.py +0 -0
  58. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/prometheus_enrichment_utils.py +0 -0
  59. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/playbooks/trigger.py +0 -0
  60. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/pubsub/__init__.py +0 -0
  61. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/pubsub/event_emitter.py +0 -0
  62. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/pubsub/event_subscriber.py +0 -0
  63. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/pubsub/events_pubsub.py +0 -0
  64. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/__init__.py +0 -0
  65. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/action_requests.py +0 -0
  66. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/base.py +0 -0
  67. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/blocks.py +0 -0
  68. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/callbacks.py +0 -0
  69. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/charts.py +0 -0
  70. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/consts.py +0 -0
  71. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/custom_rendering.py +0 -0
  72. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/finding_subjects.py +0 -0
  73. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/holmes.py +0 -0
  74. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/url_helpers.py +0 -0
  75. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/reporting/utils.py +0 -0
  76. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/schedule/__init__.py +0 -0
  77. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/schedule/model.py +0 -0
  78. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/schedule/scheduler.py +0 -0
  79. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/__init__.py +0 -0
  80. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/common/__init__.py +0 -0
  81. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/common/channel_transformer.py +0 -0
  82. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/common/destination_override.py +0 -0
  83. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/common/html_tools.py +0 -0
  84. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/datadog/__init__.py +0 -0
  85. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/datadog/datadog_sink.py +0 -0
  86. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/datadog/datadog_sink_params.py +0 -0
  87. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/discord/__init__.py +0 -0
  88. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/discord/discord_sink.py +0 -0
  89. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/discord/discord_sink_params.py +0 -0
  90. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/file/__init__.py +0 -0
  91. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/file/file_sink.py +0 -0
  92. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/file/file_sink_params.py +0 -0
  93. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/file/object_traverser.py +0 -0
  94. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/google_chat/__init__.py +0 -0
  95. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/google_chat/google_chat.py +0 -0
  96. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/google_chat/google_chat_params.py +0 -0
  97. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/incidentio/__init__.py +0 -0
  98. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/incidentio/incidentio_api.py +0 -0
  99. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/incidentio/incidentio_client.py +0 -0
  100. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/incidentio/incidentio_sink.py +0 -0
  101. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/incidentio/incidentio_sink_params.py +0 -0
  102. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/jira/__init__.py +0 -0
  103. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/jira/jira_sink.py +0 -0
  104. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/jira/jira_sink_params.py +0 -0
  105. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/kafka/__init__.py +0 -0
  106. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/kafka/kafka_sink.py +0 -0
  107. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/kafka/kafka_sink_params.py +0 -0
  108. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/mail/__init__.py +0 -0
  109. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/mail/mail_sink.py +0 -0
  110. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/mail/mail_sink_params.py +0 -0
  111. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/mattermost/__init__.py +0 -0
  112. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/mattermost/mattermost_sink.py +0 -0
  113. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/mattermost/mattermost_sink_params.py +0 -0
  114. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams/__init__.py +0 -0
  115. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams/msteams_sink.py +0 -0
  116. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams/msteams_sink_params.py +0 -0
  117. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams/msteams_webhook_tranformer.py +0 -0
  118. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams_graph/__init__.py +0 -0
  119. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams_graph/msteams_graph_sink.py +0 -0
  120. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/msteams_graph/msteams_graph_sink_params.py +0 -0
  121. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/opsgenie/__init__.py +0 -0
  122. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/opsgenie/opsgenie_sink.py +0 -0
  123. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/opsgenie/opsgenie_sink_params.py +0 -0
  124. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/pagerduty/__init__.py +0 -0
  125. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/pagerduty/pagerduty_sink.py +0 -0
  126. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/pagerduty/pagerduty_sink_params.py +0 -0
  127. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/pushover/__init__.py +0 -0
  128. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/pushover/pushover_client.py +0 -0
  129. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/pushover/pushover_sink.py +0 -0
  130. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/pushover/pushover_sink_params.py +0 -0
  131. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/__init__.py +0 -0
  132. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/dal/__init__.py +0 -0
  133. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/dal/model_conversion.py +0 -0
  134. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/dal/supabase_dal.py +0 -0
  135. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/discovery_metrics.py +0 -0
  136. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/prometheus_discovery_utils.py +0 -0
  137. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/robusta_sink_params.py +0 -0
  138. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/__init__.py +0 -0
  139. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/account_resource_fetcher.py +0 -0
  140. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/base_resource_manager.py +0 -0
  141. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/prometheus_alert_resource_manager.py +0 -0
  142. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/rrm.py +0 -0
  143. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/robusta/rrm/types.py +0 -0
  144. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/rocketchat/__init__.py +0 -0
  145. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/rocketchat/rocketchat_sink.py +0 -0
  146. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/rocketchat/rocketchat_sink_params.py +0 -0
  147. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/servicenow/__init__.py +0 -0
  148. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/servicenow/servicenow_sink.py +0 -0
  149. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/servicenow/servicenow_sink_params.py +0 -0
  150. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/sink_base.py +0 -0
  151. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/sink_base_params.py +0 -0
  152. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/sink_config.py +0 -0
  153. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/sink_factory.py +0 -0
  154. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/__init__.py +0 -0
  155. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/preview/slack_sink_preview.py +0 -0
  156. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/preview/slack_sink_preview_params.py +0 -0
  157. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/slack_sink.py +0 -0
  158. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/slack_sink_params.py +0 -0
  159. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/templates/header.j2 +0 -0
  160. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/slack/templates/template_loader.py +0 -0
  161. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/telegram/__init__.py +0 -0
  162. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/telegram/telegram_client.py +0 -0
  163. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/telegram/telegram_sink.py +0 -0
  164. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/telegram/telegram_sink_params.py +0 -0
  165. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/timing.py +0 -0
  166. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/transformer.py +0 -0
  167. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/victorops/__init__.py +0 -0
  168. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/victorops/victorops_sink.py +0 -0
  169. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/victorops/victorops_sink_params.py +0 -0
  170. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/webex/__init__.py +0 -0
  171. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/webex/webex_sink.py +0 -0
  172. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/webex/webex_sink_params.py +0 -0
  173. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/webhook/__init__.py +0 -0
  174. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/webhook/webhook_sink.py +0 -0
  175. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/webhook/webhook_sink_params.py +0 -0
  176. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/yamessenger/__init__.py +0 -0
  177. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/yamessenger/yamessenger_client.py +0 -0
  178. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/yamessenger/yamessenger_sink.py +0 -0
  179. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/yamessenger/yamessenger_sink_params.py +0 -0
  180. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/zulip/__init__.py +0 -0
  181. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/zulip/zulip_sink.py +0 -0
  182. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/sinks/zulip/zulip_sink_params.py +0 -0
  183. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/stream/utils.py +0 -0
  184. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/container_oom_killed_trigger.py +0 -0
  185. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/custom_triggers.py +0 -0
  186. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/deployment_rollout_trigger.py +0 -0
  187. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/error_event_trigger.py +0 -0
  188. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/helm_releases_triggers.py +0 -0
  189. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/job_failed_trigger.py +0 -0
  190. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/multi_resources_trigger.py +0 -0
  191. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/oom_killed_trigger_base.py +0 -0
  192. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/pod_crash_loop_trigger.py +0 -0
  193. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/pod_evicted_trigger.py +0 -0
  194. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/pod_image_pull_backoff.py +0 -0
  195. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/core/triggers/pod_oom_killed_trigger.py +0 -0
  196. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/__init__.py +0 -0
  197. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/argocd/argocd_client.py +0 -0
  198. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/common/__init__.py +0 -0
  199. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/common/requests.py +0 -0
  200. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/discord/__init__.py +0 -0
  201. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/discord/sender.py +0 -0
  202. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/git/__init__.py +0 -0
  203. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/git/git_repo.py +0 -0
  204. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/git/well_known_hosts.py +0 -0
  205. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/google_chat/__init__.py +0 -0
  206. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/google_chat/sender.py +0 -0
  207. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/grafana.py +0 -0
  208. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/helper.py +0 -0
  209. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/jira/__init__.py +0 -0
  210. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/jira/client.py +0 -0
  211. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/jira/sender.py +0 -0
  212. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/__init__.py +0 -0
  213. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/api_client_utils.py +0 -0
  214. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/__init__.py +0 -0
  215. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/events.py +0 -0
  216. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/models.py +0 -0
  217. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/triggers.py +0 -0
  218. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/v1/__init__.py +0 -0
  219. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/autogenerated/v1/models.py +0 -0
  220. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/base_event.py +0 -0
  221. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/base_triggers.py +0 -0
  222. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/custom_crds.py +0 -0
  223. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/custom_models.py +0 -0
  224. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/model_not_found_exception.py +0 -0
  225. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/process_utils.py +0 -0
  226. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/kubernetes/templates.py +0 -0
  227. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/mail/__init__.py +0 -0
  228. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/mail/sender.py +0 -0
  229. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/mattermost/__init__.py +0 -0
  230. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/mattermost/client.py +0 -0
  231. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/mattermost/sender.py +0 -0
  232. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/__init__.py +0 -0
  233. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/graph/__init__.py +0 -0
  234. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/graph/graph_client.py +0 -0
  235. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/graph/graph_msg.py +0 -0
  236. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/graph/sender.py +0 -0
  237. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_adaptive_card_files.py +0 -0
  238. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_adaptive_card_files_image.py +0 -0
  239. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_adaptive_card_files_text.py +0 -0
  240. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/__init__.py +0 -0
  241. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_action.py +0 -0
  242. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_base.py +0 -0
  243. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_card.py +0 -0
  244. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_column.py +0 -0
  245. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_container.py +0 -0
  246. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_images.py +0 -0
  247. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_table.py +0 -0
  248. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_elements/msteams_text_block.py +0 -0
  249. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_mark_down_fix_url.py +0 -0
  250. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/msteams_msg.py +0 -0
  251. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/msteams/sender.py +0 -0
  252. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/openshift/__init__.py +0 -0
  253. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/openshift/token.py +0 -0
  254. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/prometheus/__init__.py +0 -0
  255. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/prometheus/models.py +0 -0
  256. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/prometheus/trigger.py +0 -0
  257. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/prometheus/utils.py +0 -0
  258. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/receiver.py +0 -0
  259. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/resource_analysis/__init__.py +0 -0
  260. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/resource_analysis/cpu_analyzer.py +0 -0
  261. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/resource_analysis/memory_analyzer.py +0 -0
  262. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/resource_analysis/node_cpu_analyzer.py +0 -0
  263. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/resource_analysis/prometheus_analyzer.py +0 -0
  264. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/rocketchat/__init__.py +0 -0
  265. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/rocketchat/sender.py +0 -0
  266. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/__init__.py +0 -0
  267. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/event.py +0 -0
  268. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/models.py +0 -0
  269. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/playbook_scheduler.py +0 -0
  270. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/playbook_scheduler_manager.py +0 -0
  271. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/playbook_scheduler_manager_impl.py +0 -0
  272. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/scheduled/trigger.py +0 -0
  273. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/servicenow/__init__.py +0 -0
  274. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/servicenow/sender.py +0 -0
  275. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/slack/__init__.py +0 -0
  276. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/slack/sender.py +0 -0
  277. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/webex/__init__.py +0 -0
  278. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/webex/sender.py +0 -0
  279. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/zulip/__init__.py +0 -0
  280. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/integrations/zulip/sender.py +0 -0
  281. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/model/alert_relabel_config.py +0 -0
  282. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/model/config.py +0 -0
  283. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/model/playbook_action.py +0 -0
  284. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/model/playbook_definition.py +0 -0
  285. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/patch/patch.py +0 -0
  286. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/__init__.py +0 -0
  287. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/config_loader.py +0 -0
  288. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/log_init.py +0 -0
  289. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/main.py +0 -0
  290. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/not_found_exception.py +0 -0
  291. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/object_updater.py +0 -0
  292. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/process_setup.py +0 -0
  293. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/ssl_utils.py +0 -0
  294. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/telemetry.py +0 -0
  295. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/runner/telemetry_service.py +0 -0
  296. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/__init__.py +0 -0
  297. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/archive.py +0 -0
  298. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/auth_provider.py +0 -0
  299. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/base64_utils.py +0 -0
  300. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/cluster_provider_discovery.py +0 -0
  301. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/common.py +0 -0
  302. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/decorators.py +0 -0
  303. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/docs.py +0 -0
  304. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/documented_pydantic.py +0 -0
  305. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/error_codes.py +0 -0
  306. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/file_system_watcher.py +0 -0
  307. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/function_hashes.py +0 -0
  308. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/json_schema.py +0 -0
  309. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/parsing.py +0 -0
  310. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/rate_limiter.py +0 -0
  311. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/scope.py +0 -0
  312. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/server_start.py +0 -0
  313. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/service_discovery.py +0 -0
  314. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/silence_utils.py +0 -0
  315. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/stack_tracer.py +0 -0
  316. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/task_queue.py +0 -0
  317. {robusta_api-0.54.0a1 → robusta_api-0.55.0}/src/robusta/utils/time_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robusta-api
3
- Version: 0.54.0a1
3
+ Version: 0.55.0
4
4
  Summary:
5
5
  Author: Arik Alon
6
6
  Author-email: arikalon1@users.noreply.github.com
@@ -35,13 +35,14 @@ Requires-Dist: jinja2 (>=3.1.5)
35
35
  Requires-Dist: kafka-python (>=2.3.2,<3.0.0) ; extra == "all"
36
36
  Requires-Dist: kubernetes (>=26.1.0,<27.0.0)
37
37
  Requires-Dist: markdown2 (==2.4.13)
38
+ Requires-Dist: oauthlib (>=4.0.1)
38
39
  Requires-Dist: opsgenie-sdk (>=2.1.5,<3.0.0)
39
40
  Requires-Dist: pillow (>=13.0.0,<14.0.0)
40
41
  Requires-Dist: poetry-core (==1.1.0a7) ; extra == "all"
41
42
  Requires-Dist: prometheus-api-client (>=0.7.0,<0.8.0) ; extra == "all"
42
43
  Requires-Dist: prometheus-client (>=0.12.0,<0.13.0)
43
44
  Requires-Dist: prometrix (==0.2.12)
44
- Requires-Dist: pyasn1 (>=0.6.4)
45
+ Requires-Dist: pyasn1 (>=0.6.5)
45
46
  Requires-Dist: pydantic (>=2.11.7,<3.0.0)
46
47
  Requires-Dist: pydash (==8.0.0)
47
48
  Requires-Dist: pyjwt (>=2.14.0,<3.0.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "robusta-api"
3
- version = "0.54.0-alpha.1"
3
+ version = "0.55.0"
4
4
  description = ""
5
5
  authors = ["Arik Alon <arikalon1@users.noreply.github.com>"]
6
6
  packages = [
@@ -94,7 +94,9 @@ websockets = ">=13"
94
94
  h2 = "^4.4.1"
95
95
  # Pin to fix CVE-2026-30922 (transitive via google-auth)
96
96
  # Bump to fix CVE-2026-59885, CVE-2026-59886 (High)
97
- pyasn1 = ">=0.6.4"
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"
98
100
  # Pin to fix CVE-2026-63374 (Critical) + CVE-2026-64847 (Medium) (transitive via httpx)
99
101
  anyio = "^4.14.2"
100
102
  # Pin to fix CVE-2026-22701 and CVE-2026-112940 (transitive via virtualenv/pre-commit)
@@ -124,6 +126,8 @@ Sphinx = "6.2.1"
124
126
  sphinx-autobuild = "^2021.3.14"
125
127
  sphinx-copybutton = "^0.4.0"
126
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"
127
131
  witchhazel = "^2018.8.23"
128
132
  sphinx-autodoc-typehints = "^1.12.0"
129
133
  sphinxcontrib-images = "^0.9.4"
@@ -1,2 +1,2 @@
1
1
  # this is updated by .github/workflows/release.yaml
2
- __version__ = "0.54.0-alpha.1"
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
@@ -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
- # removes all embedded tool calls in this case as its not supported.
356
- holmes_result.analysis = re.sub(
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 = re.sub(r"<<.*?>>", "", 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", params.kind, params.name]
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", params.kind, params.name, "-o", "yaml"]
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", params.kind, "-o", "json"]
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)
@@ -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
- response = WebApi.run_manual_action(
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 != 200:
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:
@@ -0,0 +1,38 @@
1
+ import hmac
2
+ import secrets
3
+ import threading
4
+
5
+ from cachetools import TTLCache
6
+
7
+ SCAN_CALLBACK_TTL_SECONDS = 24 * 60 * 60
8
+ SCAN_CALLBACK_MAX_PENDING = 1000
9
+ # query parameter that carries the token on the URL handed to the scan job
10
+ SCAN_TOKEN_QUERY_PARAM = "scan_token"
11
+
12
+
13
+ class ScanCallbackTokens:
14
+ """
15
+ Tokens that let a scan job this runner started post its result back.
16
+
17
+ The trigger endpoint accepts a result only for a scan the runner itself started, and only with the
18
+ random token it handed to that scan's job.
19
+ Tokens are held in memory: a scan that reports back after a runner restart is rejected.
20
+ """
21
+
22
+ _tokens: TTLCache = TTLCache(maxsize=SCAN_CALLBACK_MAX_PENDING, ttl=SCAN_CALLBACK_TTL_SECONDS)
23
+ _lock = threading.Lock()
24
+
25
+ @classmethod
26
+ def issue(cls, scan_id: str) -> str:
27
+ token = secrets.token_urlsafe(32)
28
+ with cls._lock:
29
+ cls._tokens[scan_id] = token
30
+ return token
31
+
32
+ @classmethod
33
+ def is_valid(cls, scan_id: str, token: str) -> bool:
34
+ with cls._lock:
35
+ expected = cls._tokens.get(scan_id)
36
+ if not expected or not token:
37
+ return False
38
+ return hmac.compare_digest(expected.encode(), token.encode())
@@ -19,11 +19,15 @@ from robusta.integrations.prometheus.models import AlertManagerEvent, Prometheus
19
19
  from robusta.integrations.prometheus.trigger import PrometheusTriggerEvent
20
20
  from robusta.model.alert_relabel_config import AlertRelabelOp
21
21
  from robusta.runner.config_loader import ConfigLoader
22
+ from robusta.runner.scan_callbacks import SCAN_TOKEN_QUERY_PARAM, ScanCallbackTokens
22
23
  from robusta.utils.task_queue import QueueMetrics, TaskQueue
23
24
 
24
25
  app = Flask(__name__)
25
26
  app.wsgi_app = DispatcherMiddleware(app.wsgi_app, {"/metrics": make_wsgi_app()})
26
27
 
28
+ # the only action the trigger endpoint runs
29
+ SCAN_RESULT_ACTION = "process_scan"
30
+
27
31
 
28
32
  class Web:
29
33
  api_server_queue: TaskQueue
@@ -141,20 +145,29 @@ class Web:
141
145
  @staticmethod
142
146
  @app.route("/api/trigger", methods=["POST"])
143
147
  def handle_manual_trigger():
148
+ """
149
+ Receives the result of a KRR scan job this runner started.
150
+
151
+ This endpoint is restricted to KRR scan results: it runs only process_scan, and only for a scan
152
+ whose token the runner issued when it created the job.
153
+ """
144
154
  data = request.get_json()
145
- Web._trace_incoming("trigger", data)
146
- if not data.get("action_name", None):
147
- msg = f"Illegal trigger request {data}"
148
- logging.error(msg)
149
- return {"success": False, "msg": msg}
155
+ action_params = data.get("action_params")
156
+ if data.get("action_name") != SCAN_RESULT_ACTION or not isinstance(action_params, dict):
157
+ logging.warning(f"Rejected trigger request. Only {SCAN_RESULT_ACTION} is accepted on this endpoint.")
158
+ return abort(403)
159
+
160
+ scan_id = action_params.get("scan_id")
161
+ token = request.args.get(SCAN_TOKEN_QUERY_PARAM, "")
162
+ if not isinstance(scan_id, str) or not ScanCallbackTokens.is_valid(scan_id, token):
163
+ logging.warning(f"Rejected scan result with an unknown scan id or token. scan_id: {scan_id}")
164
+ return abort(403)
150
165
 
151
166
  return jsonify(
152
167
  Web.event_handler.run_external_action(
153
- action_name=data["action_name"],
154
- action_params=data.get("action_params", None),
168
+ action_name=SCAN_RESULT_ACTION,
169
+ action_params=action_params,
155
170
  sinks=data.get("sinks", None),
156
- sync_response=data.get("sync_response", False),
157
- no_sinks=data.get("no_sinks", False),
158
171
  )
159
172
  )
160
173
 
@@ -29,36 +29,6 @@ class WebApi:
29
29
 
30
30
  return response
31
31
 
32
- @staticmethod
33
- def run_manual_action(action_name: str, action_params=None, sinks=None, retries=1, timeout_delay=1):
34
- if sinks is None:
35
- sinks = []
36
- if action_params is None:
37
- action_params = {"annotation": None}
38
- status_code = -1
39
-
40
- manual_action_url = f"http://127.0.0.1:{PORT}/api/trigger"
41
- data = {
42
- "action_name": action_name,
43
- "action_params": action_params,
44
- "sinks": sinks,
45
- }
46
-
47
- try:
48
- response = WebApi.__post(url=manual_action_url, data=data, retries=retries, timeout_delay=timeout_delay)
49
- status_code = response.status_code
50
- except HTTPError as e:
51
- status_code = e.status
52
-
53
- logging.error(
54
- f"Failed to run manual action \naction_name:{action_name}\n"
55
- f"Reason: {e.reason}\nStatus Code{status_code}"
56
- )
57
- except Exception:
58
- logging.error("Error sending manual action request", exc_info=True)
59
-
60
- return status_code
61
-
62
32
  @staticmethod
63
33
  def send_helm_release_events(release_data: List[HelmRelease], retries=1, timeout_delay=1):
64
34
  status_code = -1
File without changes