Skip to content

πŸ“ docs(sync): correct edge-mode setup and sync docs + site to v0.6.0 - #58

Merged
scttbnsn merged 3 commits into
mainfrom
docs/sync-v0.6.0
Jul 11, 2026
Merged

scttbnsn merged 3 commits into
mainfrom
docs/sync-v0.6.0

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

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:

  1. The v0.5.0 breaking change that made PRIVATE_KEY_FILE mandatory for edge mode never fully propagated, so three copy-pasteable edge configs in the repo failed at startup.
  2. The docs site and marketing website were frozen at v0.5.x language despite 0.5.1 and 0.6.0 shipping since.

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 (matching examples/docker-compose.edge.yml) and state that a missing key is a fatal startup error. README decision table corrected to make PRIVATE_KEY_FILE mandatory.
  • SECURITY.md: signed-request body cap corrected to 1 MB (was 64 MB; actual is middleware.go 1<<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.ts marks 0.6.0 released with a new "Toward v1.0" milestone; site-config.ts hero 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); documented GET /api/watchers/:type/:name, GET /api/log/entries, the optional exec_start tty field, and the RuntimeDetails wire shape (incl. the 0.6.0 env field).
  • 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

  • Refreshed v0.5.x/alpha badges and cosign examples across index/mcp-server/audit-logging/verification/security-model docs-site pages and the FAQ + comparison pages.
  • CONTRIBUTING.md script name fixed (drydock-compat-check.sh); ed25519-auth.md lapsed v0.4.0 TOKEN-deprecation plan flagged as a historical artifact.

Verification

  • docs (fumadocs) and website (Next.js) both npm run build clean.
  • Go pre-push suite green (test/lint/vet/fuzz/govulncheck) β€” no code changed.
  • Every finding was adversarially verified against file:line evidence before fixing; the two invented-looking specifics (portwing keygen -comment, POST /api/v1/portwing/keys) were confirmed against cmd/portwing/main.go and the canonical examples/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.yaml vs the generic adapter, k8s/compose examples vs config + RBAC, audit/metrics schemas vs their .mdx pages, MCP tool param tables vs internal/mcp, Dockerfile vs hardening docs, and release workflows vs RELEASING.md.

Changelog

  • ✨ Added Standard Mode Drydock-compatible watcher and log-entry API endpoint documentation in SPEC.md
  • ✨ Added detailed Edge exec protocol documentation in SPEC.md (optional tty? field; exec_start.tty defaults to true)
  • ✨ Expanded Container Model β€œDetails” in SPEC.md with per-container runtime fields from Docker inspect data + env parsing + sensitive-redaction responsibility note
  • πŸ”§ Changed Connection Modes docs to classify Edge Mode β€œhello rejection” codes as terminal vs retryable and updated fatal-vs-backoff behavior
  • πŸ”§ Moved Edge Mode reconnection policy text into the dedicated Edge Mode Reconnection section (13.1) in SPEC.md
  • πŸ”§ Updated Edge Mode docs/examples to be Ed25519-only and require DRYDOCK_URL + PRIVATE_KEY_FILE; mounting the missing key is documented as a fatal startup error
  • ⚠️ Breaking: when DRYDOCK_URL is configured, token/AUTHORIZED_KEYS-only agents are documented as rejected (Edge requires key+mount)
  • πŸ”’ Security: updated SECURITY.md supported security-fix version line to 0.6.x (unsupported: < 0.6) and reduced signed-request body cap from 64 MB to 1 MB
  • πŸ”’ Security: updated edge/WebSocket signed hello documentation to require PRIVATE_KEY_FILE and clarified the token-hash hello path presence vs running-edge reachability
  • πŸ”§ Refreshed v0.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)
  • πŸ› Fixed CONTRIBUTING.md to reference ./scripts/drydock-compat-check.sh (was ./scripts/drydock-compat.sh)
  • πŸ—‘οΈ Removed outdated Drydock prerelease wording and refreshed stale v0.5.x/alpha references; marked token-deprecation plan as historical in the Ed25519 auth design doc
  • πŸ”§ Updated website config/positioning: SITE_CONFIG.version -> 0.6.0 and refreshed roadmap milestones/items (v0.6.0 non-root/cross-repo parity released; added v0.7 toward v1.0 next)

Concerns / issues to address

  • Ensure there are no remaining Edge Mode instructions using TOKEN/portwing_token or AUTHORIZED_KEYS-only setups when DRYDOCK_URL is configured
  • Confirm the doc claim that the tokenHash hello path is unreachable for a running Edge agent matches current implementation
  • Verify SECURITY.md β€œ1 MB signed-request body cap” terminology/definition matches the actual limit enforced by the code
  • Check SPEC.md reconnection text relocation and β€œ13.1” references align with the final rendered document structure
  • Validate cross-file consistency of 0.6.x alpha/supported-version messaging (especially verification/tag and security-model examples)

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

coderabbitai Bot commented Jul 11, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. πŸŽ‰

ℹ️ Recent review info
βš™οΈ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 8ec37578-fe4f-489c-9a36-5fba8f561f40

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 98475ff and 11d0261.

πŸ“’ Files selected for processing (1)
  • docs/security-model.md
βœ… Files skipped from review due to trivial changes (1)
  • docs/security-model.md

πŸ“ Walkthrough

Walkthrough

Updated 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 DRYDOCK_URL. Updated security support and request-size limits. Refreshed v0.6.x references, verification examples, runtime descriptions, roadmap data, and the contributor compatibility-check command.

πŸš₯ 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 docs/sync-v0.6.0

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: 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

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 369d898 and 4589b76.

β›” Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
πŸ“’ Files selected for processing (20)
  • CONTRIBUTING.md
  • README.md
  • SECURITY.md
  • SPEC.md
  • docs/content/docs/audit-logging.mdx
  • docs/content/docs/connection-modes.mdx
  • docs/content/docs/index.mdx
  • docs/content/docs/mcp-server.mdx
  • docs/content/docs/security-model.mdx
  • docs/content/docs/verification.mdx
  • docs/design/ed25519-auth.md
  • docs/migrating-from-watchtower.md
  • docs/security-model.md
  • website/src/app/data/faq.ts
  • website/src/app/data/features.ts
  • website/src/app/data/roadmap.ts
  • website/src/lib/comparison-route-data/hawser.tsx
  • website/src/lib/comparison-route-data/komodo.tsx
  • website/src/lib/comparison-route-data/portainer.tsx
  • website/src/lib/site-config.ts

Comment thread docs/design/ed25519-auth.md Resolved
Comment thread docs/migrating-from-watchtower.md Resolved
Comment thread SPEC.md Resolved
scttbnsn added 2 commits July 10, 2026 20:40
…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.

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

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.

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