Concepts
Security model
This page describes the mechanisms that decide who may connect to a machine and how each party is identified: the keys, what is signed, what a lease token contains, what the gate checks and in which order. It is for readers who want to verify the design or debug a refused connection. The summary of what is and is not guaranteed is on the Security page; this page does not repeat it, it shows the procedure behind it.
Which identities and keys exist?
| Credential | Held by | Lifetime | Used for |
|---|---|---|---|
| Enroll code | The owner, briefly | 30 minutes, single use | Ties a new device key to the owner's account. The platform stores only its hash. |
| Device key (Ed25519) | The node, in identity.json | Until the node is enrolled again | Signs every request NVTO Node makes. The private key is generated on the machine and never leaves it. |
| Platform lease-token key (Ed25519) | The platform; the public half is pinned by each node at enrollment | The pinned copy stays until the node is enrolled again | Signs lease tokens. NVTO Node checks tokens only against its pinned copy. |
| Session token | The renter's browser or Connect, in session.json | 30 days | Authenticates the account to the platform API. The platform stores only its hash. |
| Overlay join key | NVTO Node or Connect, at the moment of joining | 10 minutes, single use | Admits one device to the overlay network. |
| Lease token | Connect, in memory | 10 minutes, never past the end of the lease | Presented to the node's gate with every connection. |
How does a node prove a request is its own?
Every request from NVTO Node carries two headers, X-NVTO-Timestamp (Unix seconds) and X-NVTO-Signature (base64). The signature is Ed25519 over these five lines:
NVTO-V1
<method>
<path>
<timestamp>
<hex SHA-256 of the request body>- The platform looks up the node named in the path, verifies the signature against that node's enrolled public key, and rejects a timestamp more than 5 minutes from its own clock. That bounds how long a captured request could be replayed.
- The enrollment request itself is signed with the new key, which proves that NVTO Node holds the private half of the public key it registers.
- A failure of any of these checks is answered with
invalid_signature. A node whose clock is more than 5 minutes off will fail every request for this reason.
What is in a lease token?
A lease token is a JSON payload and an Ed25519 signature by the platform, both base64url-encoded and joined by a dot. The payload names:
- `lease_id`
- The lease the token was issued for.
- `node_id`
- The node it may be presented to. A token is refused by any other node.
- `services`
- What it grants:
sshandvnc. - `iat`, `exp`
- Issue and expiry times. Expiry is 10 minutes after issue, or the end of the lease if that is sooner.
The platform issues a token only to the signed-in renter of a lease that is active and not past its end. Connect asks for a new one when the cached token has less than a minute left. A leaked token is therefore useful for minutes at most, and only on one node, and only while that lease is current.
What does the gate check, and in what order?
The gate is the part of NVTO Node that listens on the overlay (port 7422). The overlay's access rules let Connect clients reach nodes on that port and nothing else. Each connection starts with one line from the client and one from NVTO Node, before any SSH or VNC data flows:
C: NVTO1 <service> <token>
S: OK
# or
S: ERR <reason>Read the line
The line must arrive within 10 seconds, be at most 2,048 bytes and have exactly three fields. Otherwise the answer is
ERR protocol. At most 32 connections may be in the handshake at once; further ones are closed.Verify the token
The signature must verify against the pinned platform key, the token must not be expired, it must name this node, and it must grant the requested service. An expired token is answered with
ERR token-expired; any other failure withERR unauthorized.Match the current lease
The token's lease must be the one the platform named in its last heartbeat reply, that lease's end time (plus a 90-second margin for clock differences and last-minute renewals) must not have passed, and the gate must not be suspended. Otherwise:
ERR no-active-lease.Forward
Only now does NVTO Node connect to the machine's own service, by default
127.0.0.1:22forsshand127.0.0.1:5900forvnc, and copy bytes both ways. The NVTO Node app sendssshto the lease's own virtual machine instead, andvncto the virtual machine's display, which NVTO Node serves on the owner's Mac on the loopback interface only; neither reaches the owner's macOS. The connection is recorded against the lease so that it can be cut.
The reason sent to the client is deliberately coarse. NVTO Node's own log has the detail.
When is access cut off?
| Event | What NVTO Node does | How fast |
|---|---|---|
| The lease ends or is ended early | The next heartbeat reply no longer names the lease; every connection carried for it is closed. With the NVTO Node app, the lease's virtual machine is also cut off and its disk deleted. | Within one heartbeat interval, 15 seconds |
| The lease's known end time passes with no word of a renewal | Connections are closed locally, without needing the platform. | 90 seconds after the end time |
| NVTO Node cannot reach the platform at all | The gate is suspended and every connection is closed until contact returns. With the NVTO Node app, the lease's virtual machine is paused with its network cut, and powered off, its disk kept, after 30 minutes paused. | After 3 minutes without contact |
| The platform answers, but with errors | The gate stays open, and the lease NVTO Node knows about is served until its end time. With the NVTO Node app, though, an error does not confirm the lease: after 3 minutes the lease's virtual machine is paused with its network cut, as in the row above, and resumes where it was once the platform confirms the lease again. | Gate: no interruption. Virtual machine: after 3 minutes without confirmation |
The third rule exists because the platform stops charging the renter once it records a node as offline. A machine that could not be seen by the platform but stayed usable could be used for free by blocking only the platform's address. The fourth rule keeps a brief platform fault from cutting off a paying renter; during a longer one the machine is paused, not erased.
How is traffic protected in transit?
- Renter and node are joined by a WireGuard-based overlay network. The coordination server (Headscale) is run by NVTO. Traffic between the two ends is encrypted end to end by WireGuard.
- Where both networks allow it, the two ends connect peer to peer. Where they do not, traffic falls back to a relay, which forwards ciphertext it cannot read.
- Only approved nodes are given a key to join the overlay. A pending or quarantined node is refused.
- A node needs no port forwarding and no open inbound port on the owner's router.
- Connect reports to the platform every 30 seconds whether the path is direct or relayed and its latency. Nothing about what is sent over the connection is reported.
What does the platform store?
- Accounts. Email address and a password hash. Session tokens and enroll codes are stored as hashes only.
- Nodes. The device public key, the reported hardware, the latest heartbeat status, measured link speeds, the quality score, and where the node connects from: country, city and network provider. The node's IP address is stored encrypted.
- Leases. Class, term, price, start and end, outages, and the connection reports (direct or relayed, latency).
- Money. The ledger, deposit orders, on-chain transfers into the deposit address, withdrawals and payout addresses.
The platform does not record session content: no keystrokes, no screen, no files. Its servers hold no private keys that can move funds; withdrawals are sent by the operator from a wallet that is not on them.
Who has to trust whom?
- Renter → node owner
- On a node running the NVTO Node app, the renter works in a virtual machine of its own, not in the owner's macOS, and
~/Privatein it is encrypted with a passphrase only the renter's computer holds. The owner can still reach a running machine: NVTO Node holds a key to a hidden administrator account inside it, and the owner controls the host. The machine logs in torenterby itself, so the owner can also recover the account's password and open its login keychain. Do not put on a rented machine anything the owner must not see. - Node owner → renter
- A renter has an administrator account in a virtual machine on the owner's Mac, and uses its line. The machine cannot reach the owner's local network or the owner's Mac, and its traffic is limited, but use a dedicated Mac, new or freshly erased, with nothing of your own on it, and keep it apart from devices you care about on your network.
- Both → platform
- The platform decides who holds a lease, signs the tokens and keeps the ledger. A node accepts whatever the pinned platform key has signed.
- Platform → node
- Hardware specifications are self-reported at enrollment. Link speed, uptime and outages are measured or observed by the platform and are what the score and the price tier rest on.
What does the model not cover?
On nodes running the NVTO Node app: a fresh virtual machine per lease, deleted when the lease ends; the renter's account and SSH key set up automatically; an encrypted private folder; rules on what the machine can reach and a limit on its bandwidth; an app for owners that updates itself. The Security page describes them, and states the limits in plain language further down.