The identity latch¶
The identity latch is a single immutable record that gives a control plane a permanent identity and freezes the storage decisions it was started with. Activating it is what turns a bootstrap deployment into a finalized one, and it is the point after which several things can no longer be changed.
What the latch holds¶
{
"latch_version": "system.control_plane_identity_latch.contract.v1",
"cp_instance_uuid": "cp-9f2c1d...",
"cp_identity_revision": "1",
"bootstrap_spec_digest": "sha256:...",
"locked_db_backend": "postgres",
"locked_store_profile": "durable",
"updated_by_actor": "..."
}
| Field | Meaning |
|---|---|
cp_instance_uuid |
The control plane's permanent identity, generated at activation as cp- followed by a hex UUID |
cp_identity_revision |
The revision the latch was activated at |
bootstrap_spec_digest |
Digest of the bootstrap spec that produced it, required to be sha256: followed by 64 hex characters |
locked_db_backend |
The backend in force at activation |
locked_store_profile |
The profile in force at activation |
updated_by_actor |
The actor that activated it |
The two locked fields are why storage choices are irreversible: they are copied into the latch from what the store was actually running, and every later start is checked against them. See Storage backends and profiles.
Before and after activation¶
A control plane that has not activated its latch still needs an identity to
report, so it derives a runtime one and persists it in store metadata under
runtime_control_plane.cp_instance_uuid and
runtime_control_plane.cp_identity_revision. These are generated once and
reused, with a bootstrap_spec_digest derived from the identity, revision,
backend and profile rather than from a bootstrap spec.
That runtime identity is stable but not latched. It exists so the control plane can operate during day 0; it does not make the deployment finalized.
flowchart LR
S["Control plane starts"] --> Q{"Active latch?"}
Q -->|no| R["Runtime identity<br/>derived and persisted<br/>bootstrap_finalized = false"]
Q -->|yes| L["Latched identity<br/>returned as recorded<br/>bootstrap_finalized = true"]
R --> A["Activation from bootstrap spec"]
A --> L
L --> C["Every start checked<br/>against latched values"]
Activation is what finalizes the deployment. The presence of an active latch
is what sets bootstrap_finalized, and from that moment the full invariant set
is enforced on startup and readiness. See
Finalization invariants and fail-closed startup.
Activation refuses more than it accepts¶
Activation takes an actor, a revision and a bootstrap spec digest, and rejects anything malformed before it writes:
| Condition | Status | Reason |
|---|---|---|
| Missing actor or revision | 400 |
CONTROL_PLANE_IDENTITY_LATCH_INVALID |
Digest not sha256: plus 64 hex characters |
400 |
CONTROL_PLANE_IDENTITY_LATCH_INVALID |
Backend outside sqlite, postgres |
409 |
CONTROL_PLANE_IDENTITY_LATCH_INVALID |
Profile outside lightweight, standard, durable |
409 |
CONTROL_PLANE_IDENTITY_LATCH_INVALID |
| A latch already exists | CONTROL_PLANE_IDENTITY_LATCH_IMMUTABLE |
|
| Resolving a latch that was never activated | CONTROL_PLANE_IDENTITY_LATCH_NOT_ACTIVATED |
CONTROL_PLANE_IDENTITY_LATCH_IMMUTABLE is the one that matters
operationally. There is no second activation, no rotation of
cp_instance_uuid, and no correction of a latched backend. A control plane
latched against the wrong storage is replaced rather than repaired.
Why nodes care¶
The latch is not only a local record. Node registration carries the control plane identity it believes it is talking to, and the control plane resolves the expected values from the latch and compares them. Runtime credentials are bound to the latch's claims, so a node holding credentials from a different control plane identity is rejected on identity drift rather than quietly accepted.
The latch is immutable because it is the anchor that ties every enrolled node, every issued credential and every stored record to one control plane instance.
What this means on day 0¶
The first start is decisive, and the two things to get right before it are the storage backend and the store profile. Everything else about the deployment can be changed later by rolling out a new version; these cannot.
The check that the latch is active and matches is the same one the readiness endpoint performs, so verifying it needs no special command:
A finalized deployment returns bootstrap_finalized: true with
cp_instance_uuid, cp_identity_revision, locked_db_backend and
locked_store_profile. A deployment still in bootstrap returns
bootstrap_finalized: false and nothing else.
The full list of what stops being changeable is Post-finalization limits.