Skip to content

dx: auto-passphrase, review fixes, docs sidebar, content precision - #14

Merged
YairEtzion merged 5 commits into
mainfrom
dx/auto-passphrase-detection-verbosity
Apr 4, 2026
Merged

dx: auto-passphrase, review fixes, docs sidebar, content precision#14
YairEtzion merged 5 commits into
mainfrom
dx/auto-passphrase-detection-verbosity

Conversation

@YairEtzion

@YairEtzion YairEtzion commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Auto-generate passphrase: Drop --passphrase flag. Encrypted-file backend auto-generates a 256-bit random passphrase stored in identity.json
  • Detection verbosity: amesh init shows backend detection progress
  • Identity info in amesh list: "This device" section at top
  • Code consolidation: BACKEND_LABELS, generatePassphrase(), Identity exported from @authmesh/keystore; 6 duplicated interfaces removed
  • Security hardening: Passphrase stripped from memory after KeyStore creation; atomic write in bootstrap.ts; stale error messages fixed
  • Content precision: Fixed overclaims ("nothing to leak", "first no shared secrets", SOC2, Signal comparison, non-existent Docker image)
  • Docs sidebar: New DocsSidebar.svelte + /docs/+layout.svelte — persistent left nav for all doc pages
  • Use cases nav: Remote Shell added to index; "Use Cases" navbar link; docs hub cross-link replaces grid

Changes

keystoreBACKEND_LABELS, generatePassphrase() exported; stale error fixed; warning improved

cli + agent — Removed 4x BACKEND_LABELS; removed inline Identity interfaces; passphrase stripped from memory; role-neutral messaging

sdk — Passphrase stripped from cached identity; atomic write in bootstrap.ts

docs — 28 stale references updated; guide.md precision fixes; ADR-010 (passphrase colocation)

landing page — Docs sidebar, comparison table fixes, SOC2 → "per-device audit trail", Remote Shell in use cases index, navbar link, content precision across 8 files

Test plan

  • bun run build — all 7 packages pass
  • bun run test — 182 tests pass (84 core + 38 keystore + 10 relay + 20 sdk + 15 agent + 15 cli)
  • bun run lint — clean
  • bun run format:check — clean
  • amesh init -n test shows detection progress and auto-generated passphrase
  • amesh list shows "This device" section
  • Docs sidebar visible on /docs/integration, /docs/self-hosting, /docs/remote-shell
  • /use-cases shows all 5 use cases including Remote Shell
  • Navbar "Use Cases" text links to /use-cases

🤖 Generated with Claude Code

- Drop --passphrase flag entirely; encrypted-file backend auto-generates
  a 256-bit random passphrase stored in identity.json (0o600)
- detectAndCreate() shows progress via onProgress callback: each tier
  reports its result so users see why a backend was chosen
- amesh list now shows "This device" section with device ID, name,
  backend, and created date
- Thread identity.passphrase through all runtime paths (context.ts,
  agent.ts, shell-client.ts, amesh.ts, bootstrap.ts)
- Add keyAlias? and passphrase? to Identity interface, remove type casts
- AUTH_MESH_PASSPHRASE env var kept as silent backward-compat fallback
- Export BACKEND_LABELS, generatePassphrase from @authmesh/keystore
- Remove duplicated Identity interfaces from agent.ts, shell-client.ts, sdk
- Strip passphrase from memory after KeyStore creation (6 call sites)
- Atomic write for identity.json in bootstrap.ts
- Fix stale --passphrase error message in detect.ts
- DX: role-neutral next steps, --force in warning, fix 0-device message
- Update 28 stale doc references (--passphrase, init/list output samples)
- ADR-010: passphrase colocation security decision
@YairEtzion YairEtzion changed the title dx: auto-passphrase, detection verbosity, identity info dx: auto-passphrase, detection verbosity, identity info, review fixes Apr 4, 2026
Content precision:
- Fix "first that requires no shared secrets" (mTLS predates amesh)
- Fix "Nothing to leak" → "One device" blast radius in comparison table
- Qualify "Secrets on disk" for encrypted-file backend
- Fix "Same as Signal and Bluetooth" → "similar to Bluetooth pairing"
- Replace SOC2 claims with "per-device audit trail"
- Fix non-existent ghcr.io Docker image reference
- Fix Node.js REPL → Bun REPL in guide.md
- Remove sales copy from technical docs (integration guide, docs hub)

Docs sidebar:
- New DocsSidebar.svelte (guides, reference, packages sections)
- New /docs/+layout.svelte (sidebar + content flex layout)
- Desktop: persistent left sidebar. Mobile: collapsible dropdown.

Use cases nav:
- Add Remote Shell to /use-cases index (was missing)
- Make "Use Cases" navbar text a clickable link to /use-cases
- Replace docs hub "Use Cases" grid with single cross-link
@YairEtzion YairEtzion changed the title dx: auto-passphrase, detection verbosity, identity info, review fixes dx: auto-passphrase, review fixes, docs sidebar, content precision Apr 4, 2026
- Relay: add runtime check with install instructions when run without Bun
- Encrypted-file backend: warning now says "SOFTWARE-PROTECTED only" and
  "not bound to hardware" (on both auto-detect and explicit --backend)
- amesh list: backend line shows "(software-only — not hardware-bound)"
  when using encrypted-file, so users always know their security posture
@YairEtzion
YairEtzion merged commit d199907 into main Apr 4, 2026
1 check passed
@YairEtzion
YairEtzion deleted the dx/auto-passphrase-detection-verbosity branch April 4, 2026 07:28
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