Repository navigation
π docs(sync): correct edge-mode setup and sync docs + site to v0.6.0 - #58
Conversation
A correctness + completeness audit over the current version, docs, and website surfaced 21 verified doc/copy drifts and zero code bugs. This fixes them in one pass so the foundation is accurate before the next round of work. - π docs(edge): the README and Watchtower-migration edge-mode compose examples showed a token-only credential plus a bogus "falls back to Standard mode" note. PRIVATE_KEY_FILE has been mandatory for edge mode since v0.5.0 (config load errors when DRYDOCK_URL is set without it), so both examples now generate and mount an Ed25519 key and state that a missing key is a fatal startup error. - π docs(security): corrected the SECURITY.md signed-request body cap to 1 MB (was 64 MB) and bumped its supported-versions table to 0.6.x; reworded the security-model.md Control 11 tokenHash "fallback" (unreachable given the edge config gate), added the 1 MB signed-request row to the resource-caps table, and scoped the control list against the docs site's fuller, independently numbered set. - π docs(spec): moved the edge hello-reject classification under Β§13.1 Edge Mode Reconnection where it belongs, and documented GET /api/watchers/:type/:name, GET /api/log/entries, the optional exec_start tty field, and the RuntimeDetails wire shape including the 0.6.0 env field. - π docs(site): refreshed stale v0.5.x/alpha badges and cosign verification examples across the docs site, dropped the "(pre-release)" Drydock 1.5 qualifier, and added the terminal-reject fatal-exit behavior to the connection-modes reconnection section. - π docs(website): bumped the hero version to 0.6.0, marked 0.6.0 released on the roadmap with a new "Toward v1.0" milestone, flipped the Hardened Runtime card to non-root by default, and updated the FAQ and comparison pages off v0.5.x. - π docs: fixed the CONTRIBUTING.md script name (drydock-compat-check.sh) and noted the lapsed v0.4.0 TOKEN-deprecation plan in ed25519-auth.md as a historical artifact.
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: π Files selected for processing (1)
β Files skipped from review due to trivial changes (1)
π WalkthroughWalkthroughUpdated protocol documentation with Drydock-compatible endpoints, Edge exec TTY semantics, container runtime details, and reconnection rules. Revised Edge mode guidance to require Ed25519 credentials with π₯ Pre-merge checks | β 2β Passed checks (2 passed)
β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
π€ 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 `@docs/design/ed25519-auth.md`:
- Around line 329-330: Update the migration-plan content in the Ed25519
authentication documentation: move the obsolete claims around current Edge
validation, Phase 0, and Edge hello fields into the existing historical section,
or rewrite them to match the v0.6 behavior documented in docs/security-model.md.
Ensure the page no longer presents raw TOKEN requirements or simultaneous
tokenHash/signature exchange as current behavior.
In `@docs/migrating-from-watchtower.md`:
- Around line 157-161: The migration documentation incorrectly presents TOKEN as
a legacy fallback for Edge agents. Update the Edge-mode requirements in the
relevant section to state that TOKEN is only applicable to non-Edge/HTTP
authentication and cannot recover or replace the Ed25519-signed handshake;
ensure the wording matches the actual Edge startup and authentication behavior.
In `@SPEC.md`:
- Around line 366-407: BuildRuntimeDetails currently publishes all Docker
Config.Env values unchanged, potentially exposing secrets across the Portwing
boundary. Update BuildRuntimeDetails to redact or allowlist sensitive
environment values before populating RuntimeDetails.Env, or change EnvVar
handling to expose only safe metadata; ensure no raw secret values are emitted.
πͺ 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: ff70648c-f760-4bc0-80e8-09b5bfb384c2
β Files ignored due to path filters (1)
CHANGELOG.mdis excluded by!CHANGELOG.md
π Files selected for processing (20)
CONTRIBUTING.mdREADME.mdSECURITY.mdSPEC.mddocs/content/docs/audit-logging.mdxdocs/content/docs/connection-modes.mdxdocs/content/docs/index.mdxdocs/content/docs/mcp-server.mdxdocs/content/docs/security-model.mdxdocs/content/docs/verification.mdxdocs/design/ed25519-auth.mddocs/migrating-from-watchtower.mddocs/security-model.mdwebsite/src/app/data/faq.tswebsite/src/app/data/features.tswebsite/src/app/data/roadmap.tswebsite/src/lib/comparison-route-data/hawser.tsxwebsite/src/lib/comparison-route-data/komodo.tsxwebsite/src/lib/comparison-route-data/portainer.tsxwebsite/src/lib/site-config.ts
β¦TOKEN wording Address CodeRabbit on #58: - ed25519-auth.md: the Β§5.2 migration plan still described Phase 0 token-only behavior and a dual tokenHash+signature edge hello as current. Moved the historical banner to the top of the section, relabeled "Phase 0 (original state)", and reworded the Β§5.1 present-tense config claim so v0.6.0's Ed25519-only edge mode isn't contradicted. - migrating-from-watchtower.md: TOKEN was described as a legacy fallback alongside the edge key; it plays no part in the edge handshake, so scoped it to standard/HTTP-mode auth only.
β¦arkdownlint MD049
biggest-littlest
left a comment
There was a problem hiding this comment.
Reviewed the docs/site sync. Findings are accurate against the code, the edge-mode PRIVATE_KEY_FILE fixes and SPEC gaps check out, and CodeRabbit's points are resolved. LGTM.
ALARGECOMPANY
left a comment
There was a problem hiding this comment.
Second approval. Docs now match v0.6.0 behavior end to end; the broken edge configs are fixed and the SPEC/security-model corrections are sound.
What
A correctness + completeness audit over the current version (v0.6.0), the docs, and the not-yet-launched marketing site surfaced 21 verified doc/copy drifts and zero code bugs. The code matches SPEC everywhere it was checked; the drift is entirely in documentation, and it clustered around two root causes:
PRIVATE_KEY_FILEmandatory for edge mode never fully propagated, so three copy-pasteable edge configs in the repo failed at startup.This lands all of them in one pass so the foundation is accurate before the next round of work.
Fixes by area
Critical / high β configs that failed to start, wrong security claims
README.md+docs/migrating-from-watchtower.md: edge-mode compose examples showed a token-only credential and a bogus "falls back to Standard mode" note. Both now generate/mount an Ed25519 key (matchingexamples/docker-compose.edge.yml) and state that a missing key is a fatal startup error. README decision table corrected to makePRIVATE_KEY_FILEmandatory.SECURITY.md: signed-request body cap corrected to 1 MB (was 64 MB; actual ismiddleware.go1<<20); supported-versions table bumped to 0.6.x.docs/security-model.md: Control 11 tokenHash "fallback" reworded (unreachable given the edge config gate), 1 MB signed-request row added to the resource-caps table, control list scoped against the docs site's fuller, independently numbered set.website/.../features.ts: "Hardened Runtime" card flipped to non-root-by-default (it described the pre-0.6.0 root behavior);roadmap.tsmarks 0.6.0 released with a new "Toward v1.0" milestone;site-config.tshero version β 0.6.0.Medium / SPEC gaps
SPEC.md: moved the edge hello-reject classification under Β§13.1 Edge Mode Reconnection (it was filed under the local Docker-events reconnect section); documentedGET /api/watchers/:type/:name,GET /api/log/entries, the optionalexec_startttyfield, and theRuntimeDetailswire shape (incl. the 0.6.0envfield).docs/content/docs/connection-modes.mdx: added the terminal-reject fatal-exit behavior to the reconnection section; dropped the "(pre-release)" Drydock 1.5 qualifier (it's GA).Version staleness + low
cosignexamples acrossindex/mcp-server/audit-logging/verification/security-modeldocs-site pages and the FAQ + comparison pages.CONTRIBUTING.mdscript name fixed (drydock-compat-check.sh);ed25519-auth.mdlapsed v0.4.0 TOKEN-deprecation plan flagged as a historical artifact.Verification
docs(fumadocs) andwebsite(Next.js) bothnpm run buildclean.file:lineevidence before fixing; the two invented-looking specifics (portwing keygen -comment,POST /api/v1/portwing/keys) were confirmed againstcmd/portwing/main.goand the canonicalexamples/docker-compose.edge.yml.Follow-up (not in this PR)
The completeness critic flagged surfaces this pass didn't diff field-by-field β worth a dedicated round before building more:
api/openapi.yamlvs the generic adapter, k8s/compose examples vs config + RBAC, audit/metrics schemas vs their.mdxpages, MCP tool param tables vsinternal/mcp, Dockerfile vs hardening docs, and release workflows vsRELEASING.md.Changelog
SPEC.mdSPEC.md(optionaltty?field;exec_start.ttydefaults totrue)SPEC.mdwith per-container runtime fields from Docker inspect data + env parsing + sensitive-redaction responsibility noteSPEC.mdDRYDOCK_URL+PRIVATE_KEY_FILE; mounting the missing key is documented as a fatal startup errorDRYDOCK_URLis configured, token/AUTHORIZED_KEYS-only agents are documented as rejected (Edge requires key+mount)SECURITY.mdsupported security-fix version line to0.6.x(unsupported:< 0.6) and reduced signed-request body cap from64 MBto1 MBPRIVATE_KEY_FILEand clarified the token-hash hello path presence vs running-edge reachabilityv0.6.x-accurate documentation/site copy across docs + website (audit logging, connection modes, index callouts, MCP server callouts, security/verification examples, Hardened Runtime feature copy, and marketing comparison hero copy)CONTRIBUTING.mdto reference./scripts/drydock-compat-check.sh(was./scripts/drydock-compat.sh)v0.5.x/alpha references; marked token-deprecation plan as historical in the Ed25519 auth design docSITE_CONFIG.version->0.6.0and refreshedroadmapmilestones/items (v0.6.0 non-root/cross-repo parity released; added v0.7 toward v1.0 next)Concerns / issues to address
TOKEN/portwing_tokenorAUTHORIZED_KEYS-only setups whenDRYDOCK_URLis configuredtokenHashhello path is unreachable for a running Edge agent matches current implementationSECURITY.mdβ1 MB signed-request body capβ terminology/definition matches the actual limit enforced by the codeSPEC.mdreconnection text relocation and β13.1β references align with the final rendered document structure0.6.xalpha/supported-version messaging (especially verification/tag and security-model examples)