Skip to main content

Module trust_store

Module trust_store 

Source
Expand description

Key-centric trust store for service identity verification.

The trust store holds verified Ed25519 pubkeys and their attestations. Keys ARE identity — service names are authorization scopes.

§Bootstrap

PolicyService’s verifying key is the root trust anchor, loaded from:

  • Inproc: generated in memory during generate_independent_service_keys
  • IPC: loaded from ca-pubkey credential file

§Runtime

Services register their pubkeys via registerServiceKey RPC. Clients verify peer keys via is_authorized(key, scope).

§Multi-instance

Multiple services with the same scope (e.g., two “model” instances) each have their own key. The trust store holds all of them. A client connecting to any endpoint verifies the response signer is authorized for the requested scope.

Structs§

Attestation
An attestation binding a key to authorization scopes.
PublishedServiceKey
A named, currently published service verification key.
TrustStore
Key-centric trust store. Thread-safe, lock-free reads.

Functions§

global_trust_store
Get the global trust store.
service_key_id
Canonical public identifier for an Ed25519 service verification key.