First contact · identity before token

Scan a code. Let the managing computer establish trust.

A new VMBook OS or headless server shows a short-lived enrollment offer. A phone can scan it, but the phone never receives the computer token: the managing VMBook reaches the node itself, verifies its pinned TLS identity and retrieves the token over that connection.

Follow the enrollment path Read remote trust

ABCD-EFGH-JKLM-NPQR-STUV-WXYZOne use · ten minutes · certificate-bound

One offer, two devices, one trusted path

The scanner carries an introduction—not authority.

  1. NEW NODEShow an offerThe server presents its name, addresses, port, certificate fingerprint and a random one-time code.
  2. PHONE OR BROWSERScan locallyThe camera reads the QR in the page. Its pictures do not leave the browser.
  3. MANAGING VMBOOKReach and verifyThe center tries the offered addresses and accepts only the service whose TLS key matches the offer.
  4. PINNED CONNECTIONClaim onceThe center submits the short code and receives the node token directly. The offer is then gone.

Where the secret travels

The token never passes through the QR code or camera device.

New server

Owns its API token and TLS private key. It exposes only a temporary enrollment offer.

→
Managing VMBook

Matches the certificate, submits the one-use code and stores the returned token.

→
Fleet record

Keeps address, port, pinned fingerprint and credential for later defined API calls.

Ten-minute lifetime

An enrollment code expires after ten minutes. Asking for a new code replaces the former one.

One successful use

A correct code is consumed immediately. A saved photograph cannot enroll the node again afterward.

Five wrong attempts

Five failed guesses destroy the waiting code. A code that has already been guessed at is not shown again.

Certificate-bound

A scanned offer carries the full SHA-256 public-key pin. Manual entry carries a compact certificate check.

Local first display

An unclaimed server exposes its offer page only to its own networks; VMBook OS also prints it on tty1 and serial.

Stops after claim

Once the token is used, the code is taken or a local user is created, the server no longer presents itself as unclaimed.

No camera required

Type the address and the letters under the code.

The typed form combines the 12-letter one-use code with 12 letters derived from the certificate fingerprint. That lets the managing VMBook reject a different certificate before it says the code.

Address  192.168.20.15
Port     3333
Code     ABCD-EFGH-JKLM-
         NPQR-STUV-WXYZ

Implemented surface

The same enrollment contract is available at the console, window and API.

Entry pointCurrent behavior
vmbook-server --qrDraws the offer in a terminal; VMBook OS repeats it on the local and serial consoles until claimed.
Unclaimed sign-in pageShows the offer only during the server’s first unmanaged state and only to a caller on its own networks.
Add a computerScans with the browser’s QR reader or locally loaded jsQR, with typed entry as the fallback.
POST /v1/fleet/enrollThe managing VMBook verifies the target and completes enrollment as a fleet-authorized operation.

Verified in source and tests

Code lifecycle and trust checks

The current test suite covers one-use and expiry behavior, lockout after wrong attempts, unclaimed-to-managed state, offer parsing, QR generation and rejected enrollment input. The complete Rust library suite passes 239 tests.

Not claimed

Universal network reach

The managing VMBook must be able to reach the new node on its advertised API port. A phone seeing the QR does not create a route across NAT, VLANs or firewalls, and QR enrollment does not replace network policy or Team authorization.

Put the new identity into an operating model.

After enrollment, assign the computer to its site, verify provider and storage inventory, check health, and test loss and recovery of the management path.

Continue to fleet management Review VMBook OS