Skip to content

✨ feat(examples): add tri-tool edge+exec compose variant - #156

Merged
scttbnsn merged 2 commits into
mainfrom
feat/tri-tool-edge-exec
Jul 28, 2026
Merged

scttbnsn merged 2 commits into
mainfrom
feat/tri-tool-edge-exec

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

From the portwing↔sockguard fit audit: the tri-tool bundle only exercised portwing Standard Mode with the no-exec portwing.yaml preset — the README disclosed that Edge Mode + portwing-with-exec.yaml (the pairing drydock v1.6's default-on edge needs for exec) was never covered.

  • New docker-compose.edge-exec.yml: same three-service topology, sockguard on portwing-with-exec.yaml, portwing in Edge Mode (DRYDOCK_URL/PRIVATE_KEY_FILE/AGENT_NAME + key secret), drydock with DD_PORTWING_AUTHORIZED_KEYS (+ DD_EXPERIMENTAL_PORTWING=true for the pinned 1.5.2, no-op on 1.6+).
  • sockguard-with-exec.yaml bundle copy, pinned against the canonical app/configs/portwing-with-exec.yaml by a new leg in compose_example_sync_test.go — same drift-guard treatment as the existing preset copy.
  • README: variant comparison table + per-mode usage; notes that exec-denial reasons surface in drydock controller errors as of portwing's next release (🐛 fix(docker): surface proxy/daemon error bodies in exec errors portwing#77).

go build/vet/test ./... green including the new sync-test leg.

Changelog

✨ Added

  • Edge Mode + exec Docker Compose variant with Sockguard, Portwing, and Drydock.
  • Exec-enabled Sockguard configuration and synchronization drift test.
  • Edge Mode documentation, setup instructions, authentication guidance, and variant comparison.

🔧 Changed

  • Configured Portwing for Drydock WebSocket connectivity with Ed25519 authentication.
  • Enabled Drydock authorized keys and experimental Portwing behavior for version 1.5.2.

🔒 Security

  • Hardened services with read-only filesystems, non-root Portwing, loopback-only Drydock exposure, and deny-by-default Sockguard rules.

  • Documented exec-session denial and bind-mount allowlisting behavior.

  • Verify the pinned Portwing experimental setting remains compatible with the deployed version.

  • Confirm Ed25519 secret mounting and authorized-key configuration work in the documented startup flow.

  • Validate that the exec-enabled Sockguard allowlist matches all required Portwing endpoints.

- Add docker-compose.edge-exec.yml: same sockguard->Portwing->drydock
  topology as the default bundle, but Portwing runs in Edge Mode
  (DRYDOCK_URL + PRIVATE_KEY_FILE dial-out, Ed25519 auth, no inbound
  port) and sockguard runs the exec-enabled preset instead of Standard
  Mode's no-exec setup.
- Add sockguard-with-exec.yaml: self-contained copy of
  app/configs/portwing-with-exec.yaml for the new variant, mirroring
  how sockguard.yaml already copies app/configs/portwing.yaml.
- Extend compose_example_sync_test.go with a "tri-tool
  (portwing-with-exec leg)" case so the new copy is drift-guarded the
  same way as the existing one.
- Rewrite README.md's Standard-Mode-only disclaimer into a
  variant-comparison table plus matching Usage sections, and note that
  exec-denial reasons will surface in drydock's controller errors as
  of Portwing's next release.
@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 11:16pm

@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: 49 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: 53159d8d-3b17-4d81-ad04-cc3eaded5829

📥 Commits

Reviewing files that changed from the base of the PR and between d53f6f8 and 2e23b96.

📒 Files selected for processing (1)
  • examples/compose/tri-tool/README.md
📝 Walkthrough

Walkthrough

Adds an Edge Mode Docker Compose variant for the tri-tool stack, using Portwing WebSocket dial-out, Ed25519 authentication, loopback-bound Drydock, and hardened containers. Adds an exec-enabled Sockguard configuration with explicit Docker and exec routes plus a catch-all deny rule. Documents Standard and Edge Mode behavior and setup, and extends compose example sync tests to cover the new configuration.

Possibly related PRs

  • CodesWhat/sockguard#145: Extends the same compose-example drift synchronization tests for tri-tool Portwing configurations.
🚥 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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/tri-tool-edge-exec

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.

Actionable comments posted: 1

🤖 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.

Inline comments:
In `@examples/compose/tri-tool/README.md`:
- Around line 92-95: Update the portwing_authorized_keys command in the README
to append the final public-key line produced by portwing keygen unchanged.
Remove the hardcoded “ed25519” prefix and instruct the user to paste only the
generated authorized_keys-format line.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ca803656-4dc0-40c1-b1fd-c775551a774c

📥 Commits

Reviewing files that changed from the base of the PR and between 2f2417f and d53f6f8.

📒 Files selected for processing (4)
  • app/internal/config/compose_example_sync_test.go
  • examples/compose/tri-tool/README.md
  • examples/compose/tri-tool/docker-compose.edge-exec.yml
  • examples/compose/tri-tool/sockguard-with-exec.yaml

Comment thread examples/compose/tri-tool/README.md Resolved

@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.

LGTM

@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.

LGTM

This branch was successfully deployed

1 active deployment
Preview — 2e23b960 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