Skip to content

✨ feat(examples): add tri-tool compose bundle (sockguard → portwing → drydock) - #124

Merged
scttbnsn merged 1 commit into
dev/v1.5from
feat/tri-stack-compose-example
Jul 4, 2026
Merged

scttbnsn merged 1 commit into
dev/v1.5from
feat/tri-stack-compose-example

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

What

PICKUP item 5: one ready-to-run examples/compose/tri-tool/ bundle wiring all three tools together — sockguard filters /var/run/docker.sock, portwing reads sockguard's proxied unix socket (plain preset, no exec), drydock connects to portwing over HTTP in Standard Mode with zero direct Docker access (DD_LOCAL_WATCHER=false).

Details

  • ✨ feat(config): tri-repo integration — compose presets, conformance suite, example fixes #122 hardening pattern on sockguard + portwing: group_add with ${DOCKER_SOCK_GID:?}, read_only, cap_drop: ALL, no-new-privileges, UID 65532. drydock matches its existing example (root entrypoint provisions /store, then drops via su-exec).
  • portwing↔drydock shared secret is a Docker secret mounted into both containers, not a plaintext env var.
  • README documents the security-tradeoff table, points at portwing-with-exec.yaml / drydock Edge Mode as the variants this deliberately doesn't ship, and notes the real caveat that portwing Standard Mode returns 501 on POST /api/triggers/* (no remote-update push yet).
  • Directory named tri-tool to match the repo's existing term for this topology; linked from the root README examples list; CHANGELOG entry added.
  • drydock env vars verified against dev/v1.6 source ref-only (DD_LOCAL_WATCHER semantics confirmed at app/configuration/index.ts:192).

Verification

docker compose config validates with required env set; reviewed against the hardening checklist (proxied socket only — portwing never sees the raw socket); pre-commit biome/format hooks clean.

…ndle

Full three-tool topology in examples/compose/tri-tool/: sockguard filters
the Docker socket, Portwing reads sockguard's proxied socket instead of
mounting /var/run/docker.sock, and drydock connects to Portwing over HTTP
in Standard Mode (DD_AGENT_PORTWING_*, DD_LOCAL_WATCHER=false) rather than
touching Docker directly at all. Shared Portwing<->drydock secret is a
single Docker secret mounted into both containers. Defaults to no exec;
README points at the portwing-with-exec.yaml preset and drydock's Edge
Mode as the variants this bundle deliberately doesn't ship, and calls out
that Portwing's Standard Mode agent doesn't implement remote update
triggers yet (POST /api/triggers/* returns 501).

Fixes: PICKUP item 5
@vercel

vercel Bot commented Jul 4, 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 4, 2026 2:02pm

@scttbnsn
scttbnsn merged commit 9aa7b90 into dev/v1.5 Jul 4, 2026
37 checks passed
@scttbnsn
scttbnsn deleted the feat/tri-stack-compose-example branch July 4, 2026 14:09

This branch was successfully deployed

1 active deployment
Preview — 43d4d3a2 Deployed Jul 4, 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