fix(network): bound chunked relay memory - #3537
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
This comment has been minimized.
This comment has been minimized.
|
Label |
pimlock
left a comment
There was a problem hiding this comment.
gator-agent
PR Review Status
This focused change bounds memory in the raw HTTP/1 chunked relay without introducing a blocking correctness or security issue. The required current-head checks, including the E2E suite, are green; maintainer approval is the remaining gate.
Blocking findings:
- No blocking findings remain
Carried findings:
- None
Non-blocking suggestions:
- Narrow the new egress-framing limits row to the raw pass-through relay, or align the credential-inspected streaming relay with the same chunk-line and trailer limits; that alternate path currently has different bounds.
Gator metadata
- Validation: Focused network-relay security fix with a clear threat, bounded implementation, regression coverage, and architecture documentation.
- Docs: Architecture limits documentation updated; no direct user-facing CLI, API, policy, or workflow change requires Fern docs.
- Checks: Required current-head checks are green, including Branch Checks, Helm Lint, and Trivy Changes.
- E2E:
test:e2eis applied andOpenShell / E2Esucceeded. - Head SHA:
e03c6ddb0b8638866c98fa3242fe65a9e935d45f - Base SHA:
99ed6a9df09a70981accfd39fe234fa1a648a93c - Merge base SHA:
99ed6a9df09a70981accfd39fe234fa1a648a93c - Patch ID:
ad535699805c7edce43f39934716fea42f1cd0cd - Gator payload:
9 - Review mode:
initial - Previous reviewed SHA: none
- Review budget exhausted: no
- Maintainer decision required: no
- Next state:
gator:approval-needed
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
e03c6dd to
971f27f
Compare
pimlock
left a comment
There was a problem hiding this comment.
gator-agent
PR Review Status
The follow-up review checked the author-only delta after the rebase, including the revised bounded relay and pipeline-boundary tests, and found no blocking issues. Required Branch Checks and E2E are running on the current head.
Blocking findings:
- No blocking findings remain
Carried findings:
- None
Gator metadata
- Validation: Focused network-relay security fix with a clear threat, bounded implementation, regression coverage, and architecture documentation.
- Docs: Architecture limits documentation updated; no direct user-facing CLI, API, policy, or workflow change requires Fern docs.
- Checks: Current-head Branch Checks and E2E are in progress; Helm Lint and Trivy Changes are green.
- E2E:
test:e2eis applied and the current-head workflow is running. - Head SHA:
971f27fab32b8c9cb9720294de2655d92b472265 - Base SHA:
e367d47394e84e199908e8d426c71781aa1394ae - Merge base SHA:
4b1c09de28eb012a8d83476dddf92c0fc69bd03c - Patch ID:
b61971d20ffce6e513cc5bdcf6ef9f194eca6368 - Gator payload:
9 - Review mode:
follow_up - Previous reviewed SHA:
e03c6ddb0b8638866c98fa3242fe65a9e935d45f - Review budget exhausted: no
- Maintainer decision required: no
- Next state:
gator:watch-pipeline
Monitoring CompleteMonitoring is complete because this PR has merged. Final status: the focused network-relay security fix completed Gator review, required checks passed, and maintainer approval was present before merge. I removed the active Gator metadata
|
Summary
Bound memory used while relaying HTTP/1 chunked bodies. Chunk payloads now pass through a fixed 8 KiB buffer, while chunk framing and trailers have explicit limits.
Related Issue
No public issue. This change addresses a privately tracked security finding under the repository security-reporting policy.
Changes
Testing
mise run pre-commitpassescargo test -p openshell-supervisor-network --libmise run test(blocked by missing hostmke2fsormkfs.ext4in five unrelated VM-driver tests)Checklist