Repository navigation
Conversation
SilanHe
force-pushed
the
fix/filesystem-serdes-path-trust
branch
from
December 1, 2026 23:44
a9c9da0 to
81f0fca
Compare
SilanHe
force-pushed
the
fix/filesystem-serdes-path-trust
branch
from
December 2, 2026 16:21
81f0fca to
b5d5714
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1006.
deserializeread whatever path the{"file": path}envelope held, with no check againstbase_path, the execution, or the entity. For a callback result, that envelope is written by the external system callingSendDurableExecutionCallbackSuccess, not by this SDK's ownserialize, so a forged path could read another execution's checkpoint file on the same shared mount.serializebuilds the path frombase_path, the execution ARN, the operation ID, and the path encoding. All four stay the same on replay.deserializenow rebuilds the same path and reads that file, ignoring the envelope'sfilevalue entirely. Ports the JS fix: aws/aws-durable-execution-sdk-js#1219Behavior change.
serializeis never called for a callback result, so no file exists at the pathdeserializenow insists on. A callback orwait_for_callbackwhose config setsFileSystemSerDes, where the external responder previously sent back a{"file": "<path>"}envelope, now fails withFileNotFoundErrorwrapped asSerDesError. The responder should send{"data": "<JSON>"}instead;CallbackConfig.serdes's docstring now says so.Tests added: round-trip of what
serializewrote, an envelope pointing at another execution's file, another entity's file, and a path outsidebase_path, each under bothURIandHASHencoding. 2224 tests pass.🤖 AI-assisted comment