Skip to content

Trust bundle lifecycle

A trust bundle is the set of keys a deployment trusts, published by the control plane as a revision. It is one of the two roots behind every kernel session: SPIFFE proves who a caller is, and the bundle revision proves the caller is operating under the trust the control plane provisioned.

What a bundle declares

bundle_revision             this bundle's revision
root_keys                   the roots trusted under it
intermediate_keys           the intermediates under those roots
valid_from, valid_until     its validity window
signer_set_revision         which signer set produced it
previous_bundle_revision    the revision this one supersedes

Every field is required. A bundle missing one does not resolve, so a deployment cannot end up operating under a partially declared trust set.

The revision chain

flowchart RL
  C[("Revision N+1<br/>in force")]
  B[("Revision N")]
  A[("Revision N-1")]
  C -->|"previous_bundle_revision"| B
  B -->|"previous_bundle_revision"| A

Each record points at the one it replaced, so the chain is read backwards from the bundle in force. A record whose pointer names a revision that does not exist is a visible gap.

Naming the previous revision makes the chain explicit. A bundle is not just the current set of keys; it states what it replaced, so a rollout can be followed and a gap in the chain is visible.

The signer set revision is carried separately, because who may sign a bundle and what a bundle contains change independently.

Resolution is of the active lifecycle

One operation exists: resolving the active trust bundle lifecycle. It reads the active bootstrap.trust.xratu contract, so what is in force comes from the bootstrap spec that was activated rather than from a mutable setting. See Bootstrap profiles and specs.

How the bundle reaches an admission decision

The bundle's digest and revision travel to the node, and the node presents them to a kernel. The kernel refuses a caller whose digest is outside its accepted set.

That is how control-plane authority reaches the kernel's admission decision without the control plane minting any certificates. The key material comes from SPIRE; the statement about which trust revision is in force comes from here. See Establishing the data plane to kernel link.

Acceptance is per request

A kernel re-evaluates trust bundle agreement on every request rather than once per session, alongside identity, protocol compatibility and ownership. A bundle revision that stops being accepted takes effect on the next call rather than when a session ends.

A disagreement is terminal on the node side: trust_bundle_digest mismatch stops the call and the reconnect rather than being retried. See Detecting a kernel link break.

The validity window is part of the contract

valid_from and valid_until mean a bundle expires whether or not anything replaces it. Rollout is therefore a scheduled act rather than an indefinite state, and a deployment that stops rotating discovers it at a known time.