Repository navigation
🔧 chore(release): prepare v1.4.4 security patch - #141
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 10 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (9)
📝 WalkthroughWalkthroughAdds CR/LF escaping for untrusted structured-log values through Possibly related PRs
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
app/internal/filter/plugin.go (1)
273-279: 🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy liftDeny when plugin config inspection fails.
At Line 275, the decode error is only logged; execution then rewinds and forwards the archive, skipping
denyReasonForCreateConfig. A plugin config that Docker accepts but Sockguard cannot inspect can bypass bind, device, and environment policy checks. Close the spool and returnplugin create denied: plugin config could not be inspectedinstead of forwarding it.As per path instructions,
app/internal/**filtering must retain a default-deny posture.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@app/internal/filter/plugin.go` around lines 273 - 279, The decode failure branch in the plugin create inspection flow must default-deny: update the error path around decodePolicySubsetJSON and denyReasonForCreateConfig to closeAndRemove the spool and return “plugin create denied: plugin config could not be inspected” instead of continuing to archive forwarding; preserve the existing policy-denial handling for successfully decoded configs.Source: Path instructions
🧹 Nitpick comments (1)
app/internal/proxy/hijack.go (1)
446-455: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse stable event names instead of concatenating
stream.direction.Both changed calls build log messages dynamically. Keep the message literal and emit
directionas a sanitized field; this removes the CWE-117 analyzer finding and preserves structured logs.Proposed fix
- logger.Error(logging.SafeString("hijack: panic in "+stream.direction+" copy"), "panic", logging.SafeString(fmt.Sprint(v)), "path", logging.SafeString(reqPath)) + logger.Error("hijack: copy panic", "direction", logging.SafeString(stream.direction), "panic", logging.SafeString(fmt.Sprint(v)), "path", logging.SafeString(reqPath)) - logger.Debug(logging.SafeString("hijack: "+stream.direction+" copy ended"), "error", logging.SafeString(err.Error()), "path", logging.SafeString(reqPath)) + logger.Debug("hijack: copy ended", "direction", logging.SafeString(stream.direction), "error", logging.SafeString(err.Error()), "path", logging.SafeString(reqPath))🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@app/internal/proxy/hijack.go` around lines 446 - 455, The panic and copy-completion logs in the stream-copy handler dynamically concatenate stream.direction into their event messages. Replace both messages with stable literals, and add stream.direction as a sanitized structured “direction” field alongside the existing panic/error and path fields.Source: Linters/SAST tools
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@app/internal/filter/plugin.go`:
- Around line 273-279: The decode failure branch in the plugin create inspection
flow must default-deny: update the error path around decodePolicySubsetJSON and
denyReasonForCreateConfig to closeAndRemove the spool and return “plugin create
denied: plugin config could not be inspected” instead of continuing to archive
forwarding; preserve the existing policy-denial handling for successfully
decoded configs.
---
Nitpick comments:
In `@app/internal/proxy/hijack.go`:
- Around line 446-455: The panic and copy-completion logs in the stream-copy
handler dynamically concatenate stream.direction into their event messages.
Replace both messages with stable literals, and add stream.direction as a
sanitized structured “direction” field alongside the existing panic/error and
path fields.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 0344369f-2ef3-497a-8903-9a6a22ccc100
⛔ Files ignored due to path filters (3)
CHANGELOG.mdis excluded by!CHANGELOG.mdapp/go.sumis excluded by!**/*.sumpackage-lock.jsonis excluded by!**/package-lock.json,!**/package-lock.json
📒 Files selected for processing (29)
.github/CODEOWNERS.grype.yamlREADME.mdapp/go.modapp/internal/filter/container_create.goapp/internal/filter/container_update.goapp/internal/filter/container_update_test.goapp/internal/filter/driver_create.goapp/internal/filter/exec.goapp/internal/filter/middleware.goapp/internal/filter/network.goapp/internal/filter/node.goapp/internal/filter/plugin.goapp/internal/filter/service.goapp/internal/filter/swarm.goapp/internal/filter/volume.goapp/internal/imagefetch/imagefetch.goapp/internal/imagetrust/imagetrust.goapp/internal/logging/access.goapp/internal/logging/access_test.goapp/internal/logging/logger.goapp/internal/ownership/middleware.goapp/internal/proxy/hijack.goapp/internal/proxy/proxy.goapp/internal/visibility/middleware.goapp/osv-scanner.tomldocs/package.jsonpackage.jsonwebsite/package.json
|
Addressed both review findings in 99ab563:
The full local pre-push pipeline passed after the changes. The v1.5 follow-up is #143. |
|
Release readiness update: every required and advisory check is green on d8ac99c, including CodeQL, Grype, govulncheck, gosec, the full fuzz matrix, race-enabled Go tests, real-dockerd integration, builds, and 96% coverage. The v1.4.4 changelog, website/chart metadata, and v1.5.0-rc.3 roadmap are included. @ALARGECOMPANY @biggest-littlest — the PR is ready for the two protected-main approvals; after approval I will merge, cut v1.4.4, verify the published artifacts and alert closure, then forward-merge to dev/v1.5. |
biggest-littlest
left a comment
There was a problem hiding this comment.
Reviewed the complete v1.4.4 security remediation and release preparation. Required CI and security checks are green.
ALARGECOMPANY
left a comment
There was a problem hiding this comment.
Reviewed the v1.4.4 security patch, dependency remediation, fail-closed plugin handling, roadmap, and release metadata. Approved for protected main.
Summary
Release validation
Promotion path
After protected-main approval and merge, run Release: Cut on main for v1.4.4, verify all published artifacts, then forward-merge the patch into dev/v1.5 and cut v1.5.0-rc.3. Stable v1.5.0 remains in soak per RELEASING.md.