Repository navigation
✨ feat(examples): add tri-tool edge+exec compose variant - #156
Conversation
- 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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 49 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 selected for processing (1)
📝 WalkthroughWalkthroughAdds 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
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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.
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
📒 Files selected for processing (4)
app/internal/config/compose_example_sync_test.goexamples/compose/tri-tool/README.mdexamples/compose/tri-tool/docker-compose.edge-exec.ymlexamples/compose/tri-tool/sockguard-with-exec.yaml
From the portwing↔sockguard fit audit: the tri-tool bundle only exercised portwing Standard Mode with the no-exec
portwing.yamlpreset — 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.docker-compose.edge-exec.yml: same three-service topology, sockguard onportwing-with-exec.yaml, portwing in Edge Mode (DRYDOCK_URL/PRIVATE_KEY_FILE/AGENT_NAME+ key secret), drydock withDD_PORTWING_AUTHORIZED_KEYS(+DD_EXPERIMENTAL_PORTWING=truefor the pinned 1.5.2, no-op on 1.6+).sockguard-with-exec.yamlbundle copy, pinned against the canonicalapp/configs/portwing-with-exec.yamlby a new leg incompose_example_sync_test.go— same drift-guard treatment as the existing preset copy.go build/vet/test ./...green including the new sync-test leg.Changelog
✨ Added
🔧 Changed
🔒 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.