From 8305f52ad7abfcb1a91dd5e23d08119c4f4bec8b Mon Sep 17 00:00:00 2001 From: Andrew Kroh Date: Fri, 20 Mar 2026 11:46:10 -0400 Subject: [PATCH] fix(qualys_vmdr): use join for ID_SET in KB response error path The CEL expression at line 244 calls string() on the result of ID_SET.orValue([]) which is a list. When the knowledge base API response is missing expected ID values, this path triggers string(list) which has no overload. Replace string() with join(" ") to properly convert the list to a string for the error message. --- packages/qualys_vmdr/changelog.yml | 7 ++++++- .../asset_host_detection/agent/stream/input.yml.hbs | 2 +- packages/qualys_vmdr/manifest.yml | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/qualys_vmdr/changelog.yml b/packages/qualys_vmdr/changelog.yml index be0bcf8fbe3..22866db328b 100644 --- a/packages/qualys_vmdr/changelog.yml +++ b/packages/qualys_vmdr/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "6.17.1" + changes: + - description: Fix intermittent evaluation error in asset_host_detection when the knowledge base API response is missing expected ID values. + type: bugfix + link: https://github.com/elastic/integrations/pull/17932 - version: "6.17.0" changes: - description: Add navigation links across all dashboards. @@ -24,7 +29,7 @@ link: https://github.com/elastic/integrations/pull/16727 - version: "6.14.1" changes: - - description: Update XSD schema name to match Host Detection API v5.0 response. + - description: Update XSD schema name to match Host Detection API v5.0 response. type: enhancement link: https://github.com/elastic/integrations/pull/16623 - version: "6.14.0" diff --git a/packages/qualys_vmdr/data_stream/asset_host_detection/agent/stream/input.yml.hbs b/packages/qualys_vmdr/data_stream/asset_host_detection/agent/stream/input.yml.hbs index d03f5d876d3..41634aa57c9 100644 --- a/packages/qualys_vmdr/data_stream/asset_host_detection/agent/stream/input.yml.hbs +++ b/packages/qualys_vmdr/data_stream/asset_host_detection/agent/stream/input.yml.hbs @@ -241,7 +241,7 @@ program: | "events": [{ "message": { "KNOWLEDGE_BASE": { - "response_error": "response IDs values are missing: " + string(kb_body.?doc.KNOWLEDGE_BASE_VULN_LIST_OUTPUT.RESPONSE.ID_SET.orValue([])), + "response_error": "response IDs values are missing: " + kb_body.?doc.KNOWLEDGE_BASE_VULN_LIST_OUTPUT.RESPONSE.ID_SET.orValue([]).join(" "), }, "interval_start": state.interval.start, "interval_id": state.interval.id, diff --git a/packages/qualys_vmdr/manifest.yml b/packages/qualys_vmdr/manifest.yml index 259eaa32f67..05df233fd0d 100644 --- a/packages/qualys_vmdr/manifest.yml +++ b/packages/qualys_vmdr/manifest.yml @@ -1,7 +1,7 @@ format_version: "3.4.0" name: qualys_vmdr title: Qualys VMDR -version: "6.17.0" +version: "6.17.1" description: Collect data from Qualys VMDR platform with Elastic Agent. type: integration categories: