pub struct TrustConfig {
pub schema_version: u32,
pub ci_release_key: KeySlot,
pub cache_keys: Vec<String>,
pub org_root_key: Option<KeySlot>,
pub root_ca_pem: Option<String>,
pub issuance_ca_pems: Vec<String>,
}Expand description
Loaded from /etc/nixfleet/{cp,agent}/trust.json. Restart-only reload.
Fields§
§schema_version: u32§ci_release_key: KeySlot§cache_keys: Vec<String>Forwarded opaquely to nix.settings.trusted-public-keys.
org_root_key: Option<KeySlot>§root_ca_pem: Option<String>PEM-encoded fleet root CA cert. Offline-signed (operator workstation,
file or Yubikey) and embedded in trust.json so verifiers anchor cert
chains at a key the CP never holds at rest. None until the operator
has run nixfleet-trust-bootstrap.
issuance_ca_pems: Vec<String>PEM-encoded issuance CAs the fleet trusts to mint agent certs, each
signed by root_ca_pem. Multiple entries support rotation overlap -
agents accept any cert chain anchored at one of these intermediates.
Implementations§
Source§impl TrustConfig
impl TrustConfig
pub const CURRENT_SCHEMA_VERSION: u32 = 1
Trait Implementations§
Source§impl Clone for TrustConfig
impl Clone for TrustConfig
Source§fn clone(&self) -> TrustConfig
fn clone(&self) -> TrustConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustConfig
impl Debug for TrustConfig
Source§impl<'de> Deserialize<'de> for TrustConfig
impl<'de> Deserialize<'de> for TrustConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TrustConfig
impl RefUnwindSafe for TrustConfig
impl Send for TrustConfig
impl Sync for TrustConfig
impl Unpin for TrustConfig
impl UnwindSafe for TrustConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more