From 098708ae5023ef5a19f1742b4b381566eaf92335 Mon Sep 17 00:00:00 2001 From: mmahacek Date: Tue, 9 Sep 2025 12:06:38 -0700 Subject: [PATCH 1/4] Update Kibana v9 REST endpoints --- src/main/resources/kibana-rest.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/resources/kibana-rest.yml b/src/main/resources/kibana-rest.yml index 993b4220..0e934546 100644 --- a/src/main/resources/kibana-rest.yml +++ b/src/main/resources/kibana-rest.yml @@ -22,6 +22,7 @@ kibana_actions: versions: ">= 7.0.0": "/api/actions" + ">= 9.0.0": "/api/actions/connectors" kibana_alerts: versions: @@ -29,6 +30,10 @@ kibana_alerts: url: "/api/alerts/_find" spaceaware: true paginate: per_page + ">= 9.0.0": + url: "/api/alerting/rules/_find" + spaceaware: true + paginate: per_page kibana_alerts_health: versions: @@ -45,6 +50,7 @@ kibana_data_views: kibana_detection_engine_health_cluster: versions: ">= 8.8.2": "/internal/detection_engine/health/_cluster" + ">= 9.0.0": "" # Calculates health of Detection Engine and returns a health snapshot. # Scope: all detection rules in the current/default Kibana space. @@ -52,6 +58,7 @@ kibana_detection_engine_health_cluster: kibana_detection_engine_health_space: versions: ">= 8.8.2": "/internal/detection_engine/health/_space" + ">= 9.0.0": "" kibana_detection_engine_privileges: versions: @@ -72,6 +79,7 @@ kibana_detection_engine_rules_prebuilt_status: ">= 7.10.0 < 7.15.0": "/api/detection_engine/prepackaged" ">= 7.15.0 < 8.9.0": "/api/detection_engine/rules/prepackaged/_status" ">= 8.9.0": "/internal/detection_engine/prebuilt_rules/status" + ">= 9.0.0": "" kibana_fleet_agents: versions: @@ -88,6 +96,7 @@ kibana_fleet_agent_policies: kibana_fleet_packages: versions: ">= 7.11.0": "/api/fleet/epm/packages?experimental=true" + ">= 9.0.0": "/api/fleet/epm/packages?withPackagePoliciesCount=true" kibana_fleet_agent_status: versions: @@ -109,6 +118,7 @@ kibana_fleet_settings: kibana_reporting_diagnose_browser: versions: ">= 8.16.0": "/internal/reporting/diagnose/browser" + ">= 9.0.0": "" kibana_roles: versions: @@ -155,6 +165,7 @@ kibana_security_exception_list: kibana_security_packages: versions: ">= 7.10.0": "/api/fleet/epm/packages?experimental=true&category=security" + ">= 9.0.0": "/api/fleet/epm/packages?withPackagePoliciesCount=true&category=security" kibana_settings: versions: @@ -180,6 +191,7 @@ kibana_status: kibana_synthetics_monitor_filters: versions: ">= 8.12.0": "/internal/synthetics/monitor/filters" + ">= 9.0.0": "" # Disabled pending review #kibana_synthetics_monitors: @@ -208,7 +220,9 @@ kibana_user: versions: ">= 7.6.0": "/internal/security/me" ">= 5.0.0 < 7.6.0": "/api/security/v1/me" + ">= 9.0.0": "" kibana_stack_monitoring_health: versions: ">= 8.3.1": "/api/monitoring/v1/_health" + ">= 9.0.0": "" From 4d9d263c24b30fd072b6cb38542f56d22a999f1f Mon Sep 17 00:00:00 2001 From: mmahacek Date: Tue, 9 Sep 2025 13:17:01 -0700 Subject: [PATCH 2/4] Notate Kibana REST calls that are blocked on v9 --- src/main/resources/kibana-rest.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/resources/kibana-rest.yml b/src/main/resources/kibana-rest.yml index 0e934546..71cfc3a8 100644 --- a/src/main/resources/kibana-rest.yml +++ b/src/main/resources/kibana-rest.yml @@ -50,7 +50,7 @@ kibana_data_views: kibana_detection_engine_health_cluster: versions: ">= 8.8.2": "/internal/detection_engine/health/_cluster" - ">= 9.0.0": "" + # ">= 9.0.0": "uri [/internal/detection_engine/health/_cluster] with method [get] exists but is not available with the current configuration" # Calculates health of Detection Engine and returns a health snapshot. # Scope: all detection rules in the current/default Kibana space. @@ -58,7 +58,7 @@ kibana_detection_engine_health_cluster: kibana_detection_engine_health_space: versions: ">= 8.8.2": "/internal/detection_engine/health/_space" - ">= 9.0.0": "" + # ">= 9.0.0": "uri [/internal/detection_engine/health/_space] with method [get] exists but is not available with the current configuration" kibana_detection_engine_privileges: versions: @@ -79,7 +79,7 @@ kibana_detection_engine_rules_prebuilt_status: ">= 7.10.0 < 7.15.0": "/api/detection_engine/prepackaged" ">= 7.15.0 < 8.9.0": "/api/detection_engine/rules/prepackaged/_status" ">= 8.9.0": "/internal/detection_engine/prebuilt_rules/status" - ">= 9.0.0": "" + # ">= 9.0.0": "uri [/internal/detection_engine/prebuilt_rules/status] with method [get] exists but is not available with the current configuration" kibana_fleet_agents: versions: @@ -118,7 +118,7 @@ kibana_fleet_settings: kibana_reporting_diagnose_browser: versions: ">= 8.16.0": "/internal/reporting/diagnose/browser" - ">= 9.0.0": "" + # ">= 9.0.0": "uri [/internal/reporting/diagnose/browser] with method [get] exists but is not available with the current configuration" kibana_roles: versions: @@ -191,7 +191,7 @@ kibana_status: kibana_synthetics_monitor_filters: versions: ">= 8.12.0": "/internal/synthetics/monitor/filters" - ">= 9.0.0": "" + # ">= 9.0.0": "uri [/internal/synthetics/monitor/filters] with method [get] exists but is not available with the current configuration" # Disabled pending review #kibana_synthetics_monitors: @@ -220,9 +220,9 @@ kibana_user: versions: ">= 7.6.0": "/internal/security/me" ">= 5.0.0 < 7.6.0": "/api/security/v1/me" - ">= 9.0.0": "" + # ">= 9.0.0": "uri [/internal/security/me] with method [get] exists but is not available with the current configuration" kibana_stack_monitoring_health: versions: ">= 8.3.1": "/api/monitoring/v1/_health" - ">= 9.0.0": "" + # ">= 9.0.0": "uri [/api/monitoring/v1/_health] with method [get] exists but is not available with the current configuration" From e2fe64ceb88f1eafaadc91a1acfcb69f885326c6 Mon Sep 17 00:00:00 2001 From: mmahacek Date: Tue, 9 Sep 2025 13:23:59 -0700 Subject: [PATCH 3/4] Fix version check for v8 deprecated endpoints --- src/main/resources/kibana-rest.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/kibana-rest.yml b/src/main/resources/kibana-rest.yml index 71cfc3a8..a368f501 100644 --- a/src/main/resources/kibana-rest.yml +++ b/src/main/resources/kibana-rest.yml @@ -21,12 +21,12 @@ kibana_actions: versions: - ">= 7.0.0": "/api/actions" + ">= 7.0.0 < 9.0.0": "/api/actions" ">= 9.0.0": "/api/actions/connectors" kibana_alerts: versions: - ">= 7.9.0": + ">= 7.9.0 < 9.0.0": url: "/api/alerts/_find" spaceaware: true paginate: per_page @@ -95,7 +95,7 @@ kibana_fleet_agent_policies: kibana_fleet_packages: versions: - ">= 7.11.0": "/api/fleet/epm/packages?experimental=true" + ">= 7.11.0 < 9.0.0": "/api/fleet/epm/packages?experimental=true" ">= 9.0.0": "/api/fleet/epm/packages?withPackagePoliciesCount=true" kibana_fleet_agent_status: @@ -164,7 +164,7 @@ kibana_security_exception_list: kibana_security_packages: versions: - ">= 7.10.0": "/api/fleet/epm/packages?experimental=true&category=security" + ">= 7.10.0 < 9.0.0": "/api/fleet/epm/packages?experimental=true&category=security" ">= 9.0.0": "/api/fleet/epm/packages?withPackagePoliciesCount=true&category=security" kibana_settings: From c335dca494469b57683e19fee66cde2e12b93fb6 Mon Sep 17 00:00:00 2001 From: mmahacek Date: Tue, 9 Sep 2025 13:42:18 -0700 Subject: [PATCH 4/4] Clear Kibana-rest comments for protected v9 endpoints --- src/main/resources/kibana-rest.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/resources/kibana-rest.yml b/src/main/resources/kibana-rest.yml index a368f501..1616b3b0 100644 --- a/src/main/resources/kibana-rest.yml +++ b/src/main/resources/kibana-rest.yml @@ -50,7 +50,6 @@ kibana_data_views: kibana_detection_engine_health_cluster: versions: ">= 8.8.2": "/internal/detection_engine/health/_cluster" - # ">= 9.0.0": "uri [/internal/detection_engine/health/_cluster] with method [get] exists but is not available with the current configuration" # Calculates health of Detection Engine and returns a health snapshot. # Scope: all detection rules in the current/default Kibana space. @@ -58,7 +57,6 @@ kibana_detection_engine_health_cluster: kibana_detection_engine_health_space: versions: ">= 8.8.2": "/internal/detection_engine/health/_space" - # ">= 9.0.0": "uri [/internal/detection_engine/health/_space] with method [get] exists but is not available with the current configuration" kibana_detection_engine_privileges: versions: @@ -79,7 +77,6 @@ kibana_detection_engine_rules_prebuilt_status: ">= 7.10.0 < 7.15.0": "/api/detection_engine/prepackaged" ">= 7.15.0 < 8.9.0": "/api/detection_engine/rules/prepackaged/_status" ">= 8.9.0": "/internal/detection_engine/prebuilt_rules/status" - # ">= 9.0.0": "uri [/internal/detection_engine/prebuilt_rules/status] with method [get] exists but is not available with the current configuration" kibana_fleet_agents: versions: @@ -118,7 +115,6 @@ kibana_fleet_settings: kibana_reporting_diagnose_browser: versions: ">= 8.16.0": "/internal/reporting/diagnose/browser" - # ">= 9.0.0": "uri [/internal/reporting/diagnose/browser] with method [get] exists but is not available with the current configuration" kibana_roles: versions: @@ -191,7 +187,6 @@ kibana_status: kibana_synthetics_monitor_filters: versions: ">= 8.12.0": "/internal/synthetics/monitor/filters" - # ">= 9.0.0": "uri [/internal/synthetics/monitor/filters] with method [get] exists but is not available with the current configuration" # Disabled pending review #kibana_synthetics_monitors: @@ -220,9 +215,7 @@ kibana_user: versions: ">= 7.6.0": "/internal/security/me" ">= 5.0.0 < 7.6.0": "/api/security/v1/me" - # ">= 9.0.0": "uri [/internal/security/me] with method [get] exists but is not available with the current configuration" kibana_stack_monitoring_health: versions: ">= 8.3.1": "/api/monitoring/v1/_health" - # ">= 9.0.0": "uri [/api/monitoring/v1/_health] with method [get] exists but is not available with the current configuration"