Skip to content

🔧 chore(release): prepare v1.4.4 security patch - #141

Merged
scttbnsn merged 4 commits into
mainfrom
codex/security-alert-remediation-main
Jul 28, 2026
Merged

scttbnsn merged 4 commits into
mainfrom
codex/security-alert-remediation-main

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • release the complete CodeQL, Grype, and OpenSSF remediation set as v1.4.4
  • sanitize untrusted structured-log fields and fail closed on malformed plugin configuration
  • upgrade vulnerable Go and Node dependency graphs
  • stamp the changelog, website, roadmap, and Helm metadata for the stable patch
  • preserve the strengthened two-review CODEOWNERS-backed main-branch policy

Release validation

  • changelog extraction for v1.4.4 passed
  • release version automation computes the expected patch version 1.4.4
  • GoReleaser snapshot produced 1.4.4-dev artifacts
  • full race-enabled Go suite, fuzz smoke, golangci-lint, and govulncheck passed
  • npm tests, dependency checks, Biome, Knip, Helm lint/render, and production builds passed
  • Grype, OSV Scanner, and npm audit report no actionable vulnerabilities

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.

@vercel

vercel Bot commented Jul 28, 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, Comment Jul 28, 2026 1:57pm

@coderabbitai

coderabbitai Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

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

Next review available in: 10 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

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: d5cf0528-1206-4b4a-a79e-89db880b5db7

📥 Commits

Reviewing files that changed from the base of the PR and between fd801e3 and d8ac99c.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (9)
  • README.md
  • app/internal/filter/plugin.go
  • app/internal/filter/plugin_test.go
  • app/internal/proxy/hijack.go
  • app/internal/proxy/hijack_test.go
  • chart/sockguard/Chart.yaml
  • website/src/app/page-data.test.mjs
  • website/src/lib/site-config.ts
  • website/src/lib/site-content.ts
📝 Walkthrough

Walkthrough

Adds CR/LF escaping for untrusted structured-log values through SafeString, applies it across access logging and multiple middleware paths, and centralizes filter request-error logging with logRequestError. Updates tests for escaped log fields, adds vulnerability suppressions, refreshes Go and JavaScript dependencies, and documents review requirements and logging behavior.

Possibly related PRs

  • CodesWhat/sockguard#130: Modifies the same container-create policy inspection path with namespace-sharing and ownership checks.
🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/security-alert-remediation-main

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 lift

Deny 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 return plugin create denied: plugin config could not be inspected instead 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 win

Use stable event names instead of concatenating stream.direction.

Both changed calls build log messages dynamically. Keep the message literal and emit direction as 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

📥 Commits

Reviewing files that changed from the base of the PR and between 623590c and fd801e3.

⛔ Files ignored due to path filters (3)
  • CHANGELOG.md is excluded by !CHANGELOG.md
  • app/go.sum is excluded by !**/*.sum
  • package-lock.json is excluded by !**/package-lock.json, !**/package-lock.json
📒 Files selected for processing (29)
  • .github/CODEOWNERS
  • .grype.yaml
  • README.md
  • app/go.mod
  • app/internal/filter/container_create.go
  • app/internal/filter/container_update.go
  • app/internal/filter/container_update_test.go
  • app/internal/filter/driver_create.go
  • app/internal/filter/exec.go
  • app/internal/filter/middleware.go
  • app/internal/filter/network.go
  • app/internal/filter/node.go
  • app/internal/filter/plugin.go
  • app/internal/filter/service.go
  • app/internal/filter/swarm.go
  • app/internal/filter/volume.go
  • app/internal/imagefetch/imagefetch.go
  • app/internal/imagetrust/imagetrust.go
  • app/internal/logging/access.go
  • app/internal/logging/access_test.go
  • app/internal/logging/logger.go
  • app/internal/ownership/middleware.go
  • app/internal/proxy/hijack.go
  • app/internal/proxy/proxy.go
  • app/internal/visibility/middleware.go
  • app/osv-scanner.toml
  • docs/package.json
  • package.json
  • website/package.json

@scttbnsn

Copy link
Copy Markdown
Contributor Author

Addressed both review findings in 99ab563:

  • plugin create now fails closed when config.json cannot be decoded, with regression coverage for both direct inspection and middleware policy flow
  • hijack copy logs now use stable event names and emit direction as a sanitized structured field

The full local pre-push pipeline passed after the changes. The v1.5 follow-up is #143.

@scttbnsn scttbnsn changed the title 🔒 security(scanning): remediate outstanding alerts 🔧 chore(release): prepare v1.4.4 security patch Jul 28, 2026
@scttbnsn

Copy link
Copy Markdown
Contributor Author

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 biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the complete v1.4.4 security remediation and release preparation. Required CI and security checks are green.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the v1.4.4 security patch, dependency remediation, fail-closed plugin handling, roadmap, and release metadata. Approved for protected main.

@scttbnsn
scttbnsn merged commit 7502aa9 into main Jul 28, 2026
46 checks passed
@scttbnsn
scttbnsn deleted the codex/security-alert-remediation-main branch August 4, 2026 18:32

This branch was successfully deployed

1 active deployment
Preview — d8ac99c4 Deployed Jul 28, 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.

3 participants