Transport and pairing
Pair device identities
The client pins the verified iroh host ID. The host loads an allowlist of verified client IDs at startup. QUIC/TLS proves key possession. The host admits only authorized IDs, and the client waits for Ready before sending a job.
To revoke access, restart the host with the updated allowlist and its existing key. After a key change, verify and exchange the new public ID.
Choose a path
| Mode | Configuration | Evidence |
|---|---|---|
| Direct LAN | Bind both peers to local addresses. The client uses the host’s exact socket address. Relay, external address discovery and port mapping are disabled. | Direct echo exercised by the source smoke test. |
| Relay-only | Both peers explicitly configure the same approved iroh HTTPS relay with a valid public-CA certificate for field use. The relay must admit both IDs. Keep the same host pin and allowlist. | Controlled relay fixture and separate app-level fixture tests. Off-home behavior remains a field test. |
For the CLI relay-only trial, use the --relay option on both peers in place of the LAN address arguments. The relay forwards the authenticated QUIC exchange and can observe connection metadata, traffic sizes and timing.
Bound each exchange
Each request and result is capped at 1 MiB. Send one request at a time per ordered stream. The host limits active sessions and applies handler and idle timeouts. A failed or cancelled exchange can have an unknown outcome. Open a new session and let the app decide whether to retry.
The wire ALPN remains koel-connect/1 for compatibility with the tested proof of concept. The package and import names are koel-relay and koel_relay.