Skip to content

Commit a0124d4

Browse files
authored
panw_cortex_xdr: Fix CEL type conversion in alerts v2. (elastic#13007)
Fix CEL error: unsupported type conversion from 'int' to string
1 parent 10ed261 commit a0124d4

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

packages/panw_cortex_xdr/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "2.1.1"
3+
changes:
4+
- description: Fix CEL type conversion in alerts v2.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/13007
27
- version: "2.1.0"
38
changes:
49
- description: Update Kibana constraint to support 9.0.0.

packages/panw_cortex_xdr/data_stream/alerts/agent/stream/cel.yml.hbs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ program: |
5454
"auth": (string(state.api_token) + string(t.nonce) + string(t.timestamp)).sha256().hex(),
5555
})).as(h, req.with({
5656
"Header":{
57-
"x-xdr-timestamp": [h.timestamp],
58-
"x-xdr-nonce": [h.nonce],
59-
"Authorization": [h.auth],
60-
"x-xdr-auth-id": [state.token_id],
57+
"x-xdr-timestamp": [string(h.timestamp)],
58+
"x-xdr-nonce": [string(h.nonce)],
59+
"Authorization": [string(h.auth)],
60+
"x-xdr-auth-id": [string(state.token_id)],
6161
}
6262
}))
6363
:
6464
req.with({
6565
"Header":{
66-
"Authorization": [state.api_token],
67-
"x-xdr-auth-id": [state.token_id],
66+
"Authorization": [string(state.api_token)],
67+
"x-xdr-auth-id": [string(state.token_id)],
6868
}
6969
})
7070
).do_request().as(resp, resp.StatusCode == 200 ?

packages/panw_cortex_xdr/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: panw_cortex_xdr
22
title: Palo Alto Cortex XDR
3-
version: "2.1.0"
3+
version: "2.1.1"
44
description: Collect logs from Palo Alto Cortex XDR with Elastic Agent.
55
type: integration
66
format_version: "3.0.2"

0 commit comments

Comments
 (0)