Machine-based authorization
Every password is a secret a person must remember, and therefore a secret an attacker can take. Phishing, password guessing, credential stuffing, social engineering — the entire class of remote credential theft exists because the credential is something a human knows.
Machine-based authorization removes the knowable secret. Access is a cryptographic pairing of two pieces of physical hardware — the pair is the permission. When a device requests access, both ends demonstrate possession of complementary key material; if the pair verifies, the connection forms; if it does not, the machines are mutually invisible. This model is called Geometric Security: access is defined by the topology of active pairings rather than the transmission of shared secrets. A machine that is not paired cannot connect, regardless of what else it knows or presents.
Because authorization binds to hardware rather than to a memorized secret, there is no users table to breach, no login form to phish, and no password to reset. Revocation is physical: the pairing is severed at the machine, and the entire class of remote credential-theft attacks is eliminated by structure rather than by policy.
For a regulated buyer the consequence is concrete. An attack class disappears, and every access event is attributable to specific hardware in the audit ledger. This article covers how pairings work, the four pairing types, the structural advantages over passwords, and the relationship to the Diode and audit layers.
Planned direction — over-the-internet host-native access. os-console is intended to run host-native on the operator's own machine and pair to a remote Totebox Archive over the public internet. The intended transport is mutual TLS to a verified Totebox endpoint, with machine-based authorization unchanged as the access boundary — the pairing remains the permission, a model aligned with device-identity standards including OAuth 2.0 Device Authorization Grant, Tailscale's control and data-plane separation, and SPIFFE workload identity. Planned hardening includes pairing revocation and short-lived device certificates. Honesty note: the current over-the-internet path uses an SSH port-forward tunnel that does not yet verify the remote server's identity, so the end-to-end property — the vendor cannot read operator data in transit — is intended but not yet delivered over that hop; it holds once verified mutual TLS lands. See
BRIEF-os-console-rebuild-2030.mdLayer 1.
Infrastructure and application: two independent layers
MBA operates at the application layer, above and independent of any network infrastructure. This separation is central to the architecture.
The PointSav Private Network — the WireGuard mesh that connects fleet nodes — provides the transport that os-* services run on. Network membership means a machine can reach other machines on the mesh. It does not confer access to what those machines host. A node on the PPN without MBA pairings can reach the network; it cannot open any archive.
Two independent security layers protect a complete os-console → os-totebox connection:
Layer 1 — Network membership (PPN): The connecting machine must be a registered WireGuard peer. Network traffic from unregistered peers is dropped at the network layer.
Layer 2 — Application pairing (MBA): The connecting os-* service must present a registered public-key fingerprint to system-gateway-mba, the application-level gateway component running on the target service. If no pairing record exists for that fingerprint, the connection is refused — even if the network layer allowed the traffic through.
A machine can be on the PPN without any MBA pairings. It can reach the network; it cannot open any doors. This is the sovereignty boundary: the party that owns the network infrastructure does not gain application-layer access to the data that runs on it.
How a pairing works
A pairing is a cryptographic handshake between two machines. The two ends hold complementary public and private key material. When a Command Ledger connects to a Totebox, both sides demonstrate possession of the corresponding key. If the pair verifies, the connection is established. If it does not, the machines are invisible to each other.
service-pairing manages these pairings using the Noise Protocol 1 and WireGuard-style keys 2, derived from hardware attestation where the underlying platform supports it.
| Property | Behaviour |
|---|---|
| Authentication | The pairing key itself — no password is ever transmitted or stored |
| Authorisation | The presence of the pairing; permission is the pair |
| Revocation | The pairing is severed at one or both ends; the machines become mutually invisible |
| Hardware binding | Where possible, the private key is sealed in the host's hardware enclave |
The four pairing types
A Totebox recognises four pairing types, distinguished by the relationship between the pair's endpoints and the data.
| Pairing | Endpoint | Access | Function |
|---|---|---|---|
| ADMIN | Owner's primary machine ↔ Totebox | Absolute | Master key for VM and hardware control, migration, and key management |
| INPUT | Operator's daily machine ↔ Totebox | Read / write | The default state — full agency over personal data, email, and files |
| USER | Restricted-access machine ↔ Totebox | Read-only | Consulting the data without modifying it — auditors, advisors |
| INTERFACE | Orchestration aggregator ↔ Totebox | Metadata only | Fleet visibility without record-level access |
The INPUT pairing is the default and the most powerful type: a Totebox owner has full agency by default, and restrictions are deliberate downgrades rather than default settings.
Why this beats passwords
Three structural advantages follow from replacing passwords with pairings.
No central database to breach. There is no users table anywhere in the architecture. A successful breach of any one component yields no credential material useful elsewhere.
No phishing surface. An operator cannot be tricked into typing a pairing into a fake login form, because a pairing is never typed. It is demonstrated cryptographically by the hardware itself.
Physical revocation. When an operator's access should end, the pairing is severed at the machine level. A retained copy of the software binary is inert without the key material; there is no password to reset.
The boundary discipline
Pairing alone does not grant data access. It grants the ability to attempt access. The Diode Standard governs what flows through an established pair; the audit ledger records every command and every response. The pair is the prerequisite; the Diode and the WORM ledger are the gates.
The combination — pairing as access, Diode as direction, audit as record — makes the system auditable end to end, with no password-rotation policy anywhere in it.
Architecture connections
Machine-based authorization connects to three other architectural layers.
- seL4 microkernel — the kernel enforces that capability tokens cannot be forged by software running at user privilege.
- Capability-based security — the capability manager issues and revokes hardware-bound tokens; the access-control model depends on hardware binding for its security guarantees.
- WORM ledger — every authorization event is logged to the append-only ledger, an externally verifiable record of which hardware reached which resource, and when.
system-gateway-mba— the application-level gateway crate that enforces pairing records at eachos-*service boundary; the component that checks incoming key fingerprints against the pairing registry and refuses connections without a matching record.
Why service-auth was rejected
Early designs considered service-auth, modelled on a traditional directory service, as the identity provider. The decision was reversed: a directory service is structured around users, passwords, and group hierarchies — the exact model PointSav is replacing. service-pairing was created as the deliberate alternative, and service-auth was removed from the architecture before any code was written. See pairing as permission.
See also
- diode-standard — the unidirectional command flow that governs what passes through an established pair
- worm-ledger-design — the append-only audit ledger that records every authorization event
- sel4-microkernel-substrate — the seL4 microkernel that enforces capability-token integrity
- compliance-and-continuous-disclosure — how hardware-bound authorization supports continuous-proof compliance
- deployment-patterns — how MBA pairing applies across the six canonical deployment configurations
- pair-a-new-device — step-by-step guide: register a device and assign a pairing tier
- ppn-mesh-architecture — the WireGuard mesh infrastructure layer the
os-*services run on; MBA operates above and independently of the PPN
-
Perrin, T. 'The Noise Protocol Framework.' noiseprotocol.org, 2016. https://noiseprotocol.org/noise.html ↩
-
Donenfeld, J. A. 'WireGuard: Next Generation Kernel Network Tunnel.' NDSS Symposium, 2017. https://www.ndss-symposium.org/ndss2017/ndss-2017-programme/wireguard-next-generation-kernel-network-tunnel/ ↩