Skip to content

🔒 security(filter): bound exec-inspect response decode - #208

Merged
scttbnsn merged 1 commit into
dev/v1.6from
fix/188-bound-exec-inspect
Aug 9, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.6from
fix/188-bound-exec-inspect

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Closes #188.

newHTTPExecInspector was the last daemon-response decode without a size bound. It now reads via the shared readBoundedResponseBody helper (MaxResponseBodyBytes, 8 MiB, limit+1-then-check semantics), matching the exact call convention resource_limit_guard.go already uses. Regression test covers over-limit rejection and normal-size decode.

gofmt, golangci-lint (0 issues), and the full go test ./... suite pass.

newHTTPExecInspector decoded GET /exec/{id}/json responses via
json.NewDecoder(resp.Body) with no size bound, the last unbounded
daemon-response decode in the codebase. Reuses readBoundedResponseBody
(MaxResponseBodyBytes, already shared by resource_limit_guard.go) to
cap the read and reject oversized payloads instead of risking
unbounded memory use.

Closes #188
@vercel

vercel Bot commented Aug 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sockguard-website Ready Ready Preview Aug 9, 2026 12:46am

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@scttbnsn, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: cf868c9e-7637-42f3-b8c2-bd748a090a4d

📥 Commits

Reviewing files that changed from the base of the PR and between db8c738 and 924542f.

📒 Files selected for processing (2)
  • app/internal/filter/exec.go
  • app/internal/filter/exec_test.go

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

Comment @coderabbitai help to get the list of available commands.

@scttbnsn
scttbnsn merged commit e0f7104 into dev/v1.6 Aug 9, 2026
49 checks passed
@scttbnsn
scttbnsn deleted the fix/188-bound-exec-inspect branch August 9, 2026 01:08
scttbnsn added a commit that referenced this pull request Aug 9, 2026
Single sync commit on top of main carrying the dev/v1.6 tip tree (9d8ea57):
🔒 security(exec): bounded exec-inspect response decode (#208)
🧪 test(integration): portwing/drydock preset conformance suites (#210)
🧪 test(ci): weekly engine-matrix integration workflow (#209)
🔧 config(ci): fuzz deadline-flake retry (#207)
🔧 chore(conformance): mktemp scratch dir + live /events + trigger contracts (#206, #212)
🔧 chore(release): GA promotion — changelog, README, chart, website (#213)
scttbnsn added a commit that referenced this pull request Aug 9, 2026
Single sync commit on top of main carrying the dev/v1.6 tip tree (de8015b):
🔒 security(exec): bounded exec-inspect response decode (#208)
🧪 test(integration): portwing/drydock preset conformance suites (#210)
🧪 test(ci): weekly engine-matrix integration workflow (#209)
🔧 config(ci): fuzz deadline-flake retry + exit-status propagation (#207, #215)
🔧 chore(conformance): mktemp scratch dir + live /events + trigger contracts (#206, #212)
🔧 chore(release): GA promotion — changelog, README, chart, website (#213, #215)
scttbnsn added a commit that referenced this pull request Aug 9, 2026
Single sync commit on top of main carrying the dev/v1.6 tip tree (de8015b):
🔒 security(exec): bounded exec-inspect response decode (#208)
🧪 test(integration): portwing/drydock preset conformance suites (#210)
🧪 test(ci): weekly engine-matrix integration workflow (#209)
🔧 config(ci): fuzz deadline-flake retry + exit-status propagation (#207, #215)
🔧 chore(conformance): mktemp scratch dir + live /events + trigger contracts (#206, #212)
🔧 chore(release): GA promotion — changelog, README, chart, website (#213, #215)

This branch was successfully deployed

1 active deployment
Preview — 924542f9 Deployed Aug 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant