Skip to content

Commit 9d236c5

Browse files
committed
lastpass: use explicit JSON serialisation in response transform
A Beats regression (elastic/beats#50384) changed response body template values from mapstr.M (whose String method produces JSON) to plain map[string]interface{} (whose String method produces Go map syntax). This breaks the detailed_shared_folder response transform which renders the whole body with value_type: json. Use the toJSON template function to serialise the body explicitly, bypassing the implicit serialisation path. Updates #18754 Updates #19767 Updates #19774
1 parent 5fa62a7 commit 9d236c5

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

packages/lastpass/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: "1.23.1"
3+
changes:
4+
- description: Fix serialisation of detailed_shared_folder data stream response.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/
27
- version: "1.23.0"
38
changes:
49
- description: Use new `release` field for agentless deployment mode to establish as beta.

packages/lastpass/data_stream/detailed_shared_folder/agent/stream/httpjson.yml.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ request.transforms:
3737
response.transforms:
3838
- set:
3939
target: body.data
40-
value: '[[.last_response.body]]'
40+
value: '[[toJSON .last_response.body]]'
4141
value_type: json
4242
response.pagination:
4343
- set:

packages/lastpass/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: "3.3.2"
22
name: lastpass
33
title: LastPass
4-
version: "1.23.0"
4+
version: "1.23.1"
55
description: Collect logs from LastPass with Elastic Agent.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)