Expand description
Instance lease and the Cloud signing key set.
GET /v1/keys→CloudKeySetV1, signed by the Cloud root key that is compiled into the engine (self-host:[cloud] root_key).- The lease arrives in enrollment and from
lease/renewasCloudLeaseEnvelopeV1, signed by a key of the key set. - Cloud-Protocol 2.1: an enrollment of a 2.1+ engine carries key set v3
(
CloudKeySetV3, C0 2.xkeyset.schema.json) instead of v1; the leasekidthen names the v3 key of purposepolicy(EnrollmentKeySet).
A lease is Valid until expires_at, Grace until grace_until, then
Lapsed. Local tools never depend on the lease; only Cloud traffic does.
Structs§
- Cloud
KeySet V1 GET /v1/keys. The signature covers the object withoutsignature. Engines keep the raw JSON (keys.json) and verify it withCloudKeySetV1::signing_input_raw.- Cloud
KeySet V3 - Key set v3 as an enrollment of Cloud-Protocol 2.1+ carries it. The
engine verifies
signaturesagainst its trusted roots; the legacy singlesignatureis for pre-3.12 engines. - Cloud
KeyV1 - One Cloud signing key.
- Cloud
KeyV3 - One key of a key set v3. Purposes stay strings here: the set’s root signature covers them, and the engine checks each use against them.
- Cloud
Lease Envelope V1 - Lease as it travels: the raw lease object plus its signature.
- Cloud
Lease V1 - The signed lease statement.
- Cloud
OrgSettings V1 - Organization-wide switches the lease carries (1.4). They only narrow:
an engine uploads only what both its own
[cloud]setting and these allow, and receipts still need thereceipts.uploadright. - Cloud
Root Signature V3 - One root signature of a key set v3.
Enums§
- Cloud
Plan - Plan of the organization.
- Cloud
Right - A right granted to this instance. Unknown rights decode as
Unknownand grant nothing. - Enrollment
KeySet - The key set of an enrollment: v1 for an engine below Cloud-Protocol 2.1,
v3 from 2.1 (told apart by
schema). Either way the leasekidnames a key of this set, and the engine verifies the set as it verifies that version everywhere else. - Lease
State - Where a lease stands at a given (offset-corrected) time.
Constants§
- KEYSET_
SCHEMA - KEYSET_
V3_ SCHEMA - Key set v3 (C0 2.x E13), in enrollments of Cloud-Protocol 2.1+.
- LEASE_
ENVELOPE_ SCHEMA - LEASE_
KEY_ PURPOSE - The v3 purpose of the keys that sign leases (and policy bundles).
- LEASE_
RENEW_ BEFORE_ HOURS - The engine renews when less than this remains before
expires_at. - LEASE_
SCHEMA - MAX_
LEASE_ FUTURE_ SKEW_ MINUTES - A lease issued further than this in the future (after offset correction) is refused.
- MAX_
LEASE_ GRACE_ DAYS - Longest
grace_until - expires_at. - MAX_
LEASE_ VALIDITY_ HOURS - Longest
expires_at - issued_at.