Repository navigation
Conversation
🦋 Changeset detectedLatest commit: a6c51b9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
6dd0e4a to
cf822bb
Compare
ghost
left a comment
There was a problem hiding this comment.
LGTM
No previous suggestions to address. The new implementation and tests are correct — the decryptOnly guard, per-defer Promise.all encryption, and round-trip tests all look solid. CI failures are not caused by this PR: itest > defer ID collision > same checkpoint request is the same pre-existing failure from parent PR #1559 (reproduces on base commit 15968df6); Test examples (framework-elysiajs) failed with an inngest-cli SIGTERM during install (infra runner contention, tracked in insight 01KTM90WWG0T68V5KVDM37R7KB) — re-running CI should clear it.
What this PR does
Adds transformDeferInput to the encryption middleware so that each deferred function's input data is encrypted (respecting the decryptOnly flag) via the existing encryptEventData helper. Includes unit tests for encryption, decryptOnly bypass, and a round-trip through transformFunctionInput, plus an integration test confirming the encode→encrypt→decrypt→decode pipeline end-to-end.
Tag @mendral-app with feedback or questions. View session
cf822bb to
a6c51b9
Compare
Summary
Update the encryption middleware to encrypt deferred function input via
transformDeferInputChecklist
Added a docs PR that references this PRN/A no docs neededRelated
#1559 <- adds the base middleware support
EXE-1815: Add middleware support