VeilNet

Online, Offline and Expired

Your realm credential either renews online with VeilNet or is replaced by hand, and none of its states stops anything inside your tree.

Credential States

The realm credential is your tree's link to VeilNet. It is always in one of three states:

StateWhat it meansWhat you do
OnlineThe credential carries a renewal address and token. The guardian renews it with VeilNet over HTTPS as it nears expiry. A failed renewal is recorded, but it stops nothing.Allow one route out, to the renewal address. Read any recorded error.
OfflineThe credential carries no renewal address or token. The guardian makes no renewal call, and the console shows renewal as offline. This is a normal state, not an error.Note the expiry date. VeilNet hands over a fresh credential before it expires.
ExpiredThe credential has passed its expiry date, or its link to VeilNet has been cut. Your tree is cut off from VeilNet at that one link. Below it, the guardian keeps commissioning, issuing, renewing, revoking and blocking, and machines keep exchanging data.Put a fresh credential in place when you have one. Nothing stops in the meantime.
Fig. 01 — Credential states
OnlineRENEWS ITSELFFailingRECORDED · RETRIEDOfflineNO RENEWAL CALLExpired or cutCUT AT ONE EDGEFAILSRENEWSLAPSESNOT REPLACED IN TIMEREPLACED IN TIMEFRESH CREDENTIAL FROM VEILNET · RESTART THE API SERVERIN EVERY STATE: COMMISSIONING · RENEWAL · REVOCATION · BLOCKS · DATA

An online credential renews itself, and a failed renewal is recorded and retried. The tree is cut off only if renewal keeps failing until the credential lapses. You replace an offline credential by hand before it lapses. If either kind lapses, put a fresh credential from VeilNet in place and restart the API server. In every state, everything inside your tree keeps working.

Reading the State

The Realm credential card on the Overview shows the days left, when the credential last renewed and how it renews. Settings › Realm credential shows the same, with its status, guardian ID, tier and expiry. If renewal is failing, or the tree is cut off from the one above, a banner appears on the Overview, on Protect and on Protect › Realms.

Fig. 02 — The realm credential, as the console shows it01 / 03

Online: the credential renews itself as it nears expiry. Settings › Realm credential shows when it last renewed.

Settings › Realm credential: days left, status, guardian ID, tier, expiry, last renewal and how it renews.

Failing: the Overview's banner and Realm credential card show the error, and the guardian records it. Nothing inside your tree stops.

The Overview with the banner for a realm credential whose renewal is failing, and the Realm credential card showing the last error.

Offline: renewal reads as offline, and VeilNet hands over a fresh credential by hand. This is a normal state, not an error.

The Overview with the Realm credential card showing an offline credential, renewed by replacing it by hand.

Setup shows the same state in its credential line each time it runs. It warns if the credential has expired, but it still accepts it. It also warns when the credential's renewal details disagree with each other, so that you can ask VeilNet to issue it again before a renewal is due.

Renewal Timing

An online guardian renews its realm credential automatically, by default 14 days before it expires. GUARDIAN_RENEWAL_LEAD_DAYS sets this lead time. After each attempt, the guardian checks again on this schedule:

WhenNext check
Nothing is dueEvery 6 hours
A failure that may clear: a timeout, a 429 or a 5xxAfter 1 minute, doubling up to 6 hours. Retry-After is honoured
The credential has just expiredAfter 1 minute
A refusal in the first hour after expiryEvery 5 minutes

The guardian adopts a renewed credential when it changes something: a later end, a different number of levels or set of powers, or a new date on which the link above is severed. It then signs every sub-realm delegation again at once, and the machines pick up the new link when they next renew. A renewal that returns the delegation the guardian already holds changes nothing below it.

Granted Powers

The realm credential decides which powers your tree can use: telemetry, and the block, compartments and networks powers that the console acts with. Check them on Settings › Realm control when the credential is first in place, and again whenever a fresh one arrives.

If the credential withholdsWhat happens
TelemetryEach admin node still runs for control actions. On Protect › Telemetry, Current readings reads In-band withheld, and the console reads the fleet only from what machines export.
Block, compartments or networksThe console refuses that action before anything is signed. Settings › Realm control shows the power as withheld by this guardian's delegation.

When a fresh credential carries a different chain, the guardian signs every sub-realm delegation again under it, with the same roots and depth, so a power it newly grants reaches every sub-realm. If the chain is unchanged, nothing is signed again. No machine is re-commissioned.

Settings › Realm controlGuardian console
Settings › Realm control, with console control on: the admin nodes and each control the console may use.

Each power reads as granted, or as withheld by this guardian's delegation.

Adopting a Fresh Credential

A fresh credential for the same realm, renewed or re-issued, replaces the old one when the API server restarts. For an offline deployment, VeilNet hands it over on hard media. Settings › Realm credential lists these steps under Replace the realm credential. To put it in place:

0 of 3 done
  1. $ cp -f /media/usb/guardian_credential secrets/guardian_credential
  • The Realm credential card on the Overview shows the new expiry date.
  • Sub-realm delegations are kept, and every sub-realm delegation is signed again under the new credential. Every machine stays as it was.

The guardian follows three rules when it adopts a credential:

  • It adopts a fresh credential only if it was issued later than the one it holds.
  • It refuses a credential for another realm, and the realm it already holds keeps running.
  • The realm's key, every sub-realm and every machine stay as they are.

After a Lapse

A lapsed realm credential revokes nothing. Every machine keeps its credential, its address and its realm, and machines in the same realm keep exchanging data.

Inside the tree, the guardian keeps commissioning, renewing, revoking and blocking. Each realm's admin node keeps issuing its commands. Every manifest and every renewal lists your own bootstrap nodes first, so a fleet cut off from VeilNet still bootstraps from them.

With no outbound access at all, the guardian still commissions machines, renews, revokes, blocks and collects telemetry. For the settings this needs, see Air-Gapped Installation.