GeezerVison is showing github.com — fix(cold-store-reaper): check the bundle job body before acting on it (#7983 item 6) by dezren39 · Pull Request #15366 · developing-today/code
Conversation
dezren39
commented
Nov 26, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Before: the cold-store rehydrator's BundleFlight took whatever JSON body it was sent and went straight to the Google token exchange and the Drive fetch. A body with a missing or malformed sha256, bundle id, Drive file id, offset or frame length failed later with a confusing upstream error, after spending a token exchange.
After: the body is checked first. A bad job gets a 400 that names the field ("invalid job body: ..."), and nothing is fetched.
How: a new exported parseJob checks the body is an object, sha256 is 64 hex characters, bundle_id is a non-empty string, drive_file_id is a Drive id, offset is a non-negative safe integer and frame_length is a positive safe integer. size is still checked by rehydrate. test/job-body.test.mjs sends 14 bad bodies and asserts a 400 with no fetch, plus a good job that reaches the token exchange; it runs as part of npm test.
Refs #7983 (item 6)
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…#7983 item 6)
BundleFlight now parses the job body with parseJob before any token
exchange or Drive fetch, and answers 400 for a body that is not an
object, has a bad sha256, bundle_id, drive_file_id, offset or
frame_length.
Refs #7983
Co-Authored-By: Claude Opus 5.5 <[email protected]>
coderabbitai
Bot
commented
Nov 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 40 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
360ed8fa-2a6e-47c4-a3f3-283341fed87f
Commits
-
Reviewing files that changed from the base of the PR and between 31fbdff and 3d2730c.
Files selected for processing: 3
-
pkgs/cold-store-reaper/worker/package.json
pkgs/cold-store-reaper/worker/src/index.js
pkgs/cold-store-reaper/worker/test/job-body.test.mjs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|