Skip to main content
Version: 0.17.0

A routable channel

A channel bound on a routable address carries TLS 1.3 and a credential establishing the caller, and both are required. The transport authenticates the server to the client and encrypts what passes; the caller is established above it, by signing in. Read this page before declaring a channel reachable from off the machine. A description cannot weaken either requirement, and a routable channel without both may not be declared. The page gives the transport, where its certificate and key come from, and what a client verifies.

channels:
remote:
transport: http+ws
clients: multiple
address:
class: routable
host: 192.0.2.10
port: "8443"
security: { transport: encrypted, caller: authenticated }

TLS 1.3, and nothing below it​

versionTLS 1.3, minimum and maximum. A client offering less is refused at the handshake
cipher suitesthe ones TLS 1.3 defines; there is nothing to select and nothing to weaken
renegotiation, compression, session tickets across restartsnone, and none to turn on
ALPNh2 for local, which is gRPC; http/1.1 for http+ws, the WebSocket upgrade being an HTTP/1.1 mechanism
client certificatesnone requested, on any channel, in either projection

Nothing about the transport is declarable. A description says that a channel is encrypted and against what; it does not choose a version or a cipher, and a deployment able to choose one would be able to choose a weaker one.

On the wire, nothing else changes with the address. The operations, their answers, the correlation and the error codes are the channel's:

ProjectionOn a routable address
localgRPC over TLS 1.3, ALPN h2, the same service and frames as on a local socket
http+wsHTTPS for the control shape and WSS for the live shape, ALPN http/1.1, over one origin

Where the material comes from​

The Core reads a certificate chain and a private key from a path derived from the instance and the channel. Yoke provisions none of it.

where, for an instance<instance state>/tls/<channel>.crt and <instance state>/tls/<channel>.key
where, in the service form/var/lib/yoke/tls/<channel>.crt and .key
mode0600, owned by the account the Core runs as, in a 0700 directory
who writes itwhoever provisions the device: an image build, configuration management, a person at the machine
who reads itthe Core, once, when it binds the channel at start
  • Nothing is generated. There is no certificate signing request, no enrolment, no renewal client and no self-signed certificate made on first start: a certificate generated silently would make a channel look protected while it authenticates nothing.
  • The path is derived, so no document names it. One bundle installed on a hundred devices has each device present its own certificate.
  • A missing or unreadable pair refuses the start with channel.tls.missing, naming the channel, before anything runs, rather than failing when the first client connects.
  • It is read once. A replacement placed on disk takes effect at the next start of the instance.
  • Nothing checks an expiry, and nothing checks the names. The Core presents what it was given; whether a certificate is still valid, and what it is verified against, is the client's to decide, by what whoever provisioned both ends arranged.

What a client does​

A client verifies the server against the roots it was given for it, and no others, then signs in before anything else is answered. Trusting the system's roots instead would accept any certificate a public authority issued for that address.

ClientHow it verifies, and signs in
a browserthe page is served over HTTPS from the same origin as the channel; signing in sets a cookie the page cannot read
the Go interface libraryiface.TLS(roots, name) dials TLS 1.3 and verifies the Core against those roots alone, offering no client certificate; iface.Password or iface.Token is sent as the attachment's first frame
the reference web clientits front reaches the channel with --channel https://… and --roots, and serves the browser over HTTPS with --cert and --key