Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.7.9 (March 18, 2026)

* Updated `lodash` to `4.17.23` to address prototype pollution vulnerability (CVE-2025-13465)
* Updated `@elastic.io/maester-client` to `6.0.1-dev.2.1`
* Added more informative logging for lightweight errors

## 2.7.8 (February 4, 2026)

* Ensure connection before ack/nack of the message
Expand Down
24 changes: 20 additions & 4 deletions lib/sailor.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,13 +393,29 @@ class Sailor {
[bodyId, ...passthroughIds] = await Promise.all([
that.uploadMessageBody(bodyBuf),
...passthroughBufs.map(async ({ stepId, body, id }) => {
const bodyId = id || await that.uploadMessageBody(body);
return { stepId, bodyId };
const newBodyId = id || await that.uploadMessageBody(body);
return { stepId, bodyId: newBodyId };
})
]);
} catch (e) {
logger.error(e, 'Error during message/passthrough body upload');
return onError(new Error('Lightweight message/passthrough body upload error'));
logger.error(
{
errName: e && e.name,
errMessage: e && e.message,
errCode: e && e.code,
bodySize: bodyBuf.length,
passthroughCount: passthroughBufs.length,
passthroughInfo: passthroughBufs.map(({ stepId, id }) => ({
stepId,
hasExistingId: Boolean(id)
}))
},
'Error during message/passthrough body upload'
);
const details = e && e.message ? `: ${e.message}` : '';
return onError(
new Error(`Lightweight message/passthrough body upload error \n${details}`)
);
}

logger.info('Message body uploaded', { id: bodyId });
Expand Down
Loading