Skip to content

add mtls remote access for the daemon#70

Merged
jbj338033 merged 5 commits into
mainfrom
worktree-remote
Jun 17, 2026
Merged

add mtls remote access for the daemon#70
jbj338033 merged 5 commits into
mainfrom
worktree-remote

Conversation

@jbj338033

Copy link
Copy Markdown
Collaborator

Summary

Lets a personal device reach this machine's daemon over the network via mTLS-authenticated WebSocket, with the same trust as the local client. Adds a goat-remote crate (tiny rcgen CA, one-time pairing over /pair, device certs verified per-handshake against a live registry so revocation works), wires it into the daemon behind a transport-neutral connection driver and a ClientOrigin policy (only pairing issuance and StopDaemon stay local-only), and adds goat remote pair|devices|revoke. The remote listener self-gates on paired-device/pending-code presence, so there is no enable flag.

Verification

  • cargo fmt --all --check — passed
  • cargo clippy --workspace --all-targets -- -D warnings — passed
  • cargo test --workspace — passed (incl. end-to-end mTLS pair + open-session and revoked-device-refused tests)

@jbj338033 jbj338033 merged commit bb0de6f into main Jun 17, 2026
5 checks passed
@jbj338033 jbj338033 deleted the worktree-remote branch June 17, 2026 11:11
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