Skip to main content

Crate alien_signing

Crate alien_signing 

Source
Expand description

Signed statements for installs that run only what the vendor signed.

The crate has no network code. Enforcers hand it bytes they received, the signing settings their setup wrote, the install id they derived and the install’s ledger, and get back either a verified statement or the reason it was refused:

  • envelope: the one envelope every statement uses;
  • signer_list: the vendor’s signer list and its chain of versions;
  • settings: what setup pins, how enforcers find it, and the install id;
  • ledger: what an install already accepted, shared by its enforcers;
  • verify: the checks every enforcer runs on every statement;
  • release: release/v2 and building a workload from it;
  • config: the config/v1 body;
  • binding: binding values computed from the install, not the control plane;
  • session: session/v1 and the encrypted session channel;
  • recovery: the recovery code and the key it derives.

Re-exports§

pub use binding::binding_env;
pub use binding::binding_env_name;
pub use binding::binding_env_with;
pub use binding::check_own_binding;
pub use binding::resolve_bindings;
pub use binding::BindingContext;
pub use binding::Bindings;
pub use binding::OwnBindingFacts;
pub use config::ConfigBody;
pub use envelope::Envelope;
pub use envelope::Kind;
pub use envelope::Opened;
pub use envelope::Role;
pub use envelope::Signature;
pub use envelope::SignedStatement;
pub use error::ErrorData;
pub use error::Result;
pub use key::PublicKey;
pub use key::SecretKey;
pub use key::PUBLIC_KEY_PREFIX;
pub use ledger::Entry;
pub use ledger::Ledger;
pub use recovery::RecoveryCode;
pub use release::build_workload;
pub use release::BuiltWorkload;
pub use release::LocalValues;
pub use release::ReleaseBody;
pub use release::SetupTemplate;
pub use release::Workload;
pub use release::WorkloadRequest;
pub use settings::candidate_prefixes;
pub use settings::discover;
pub use settings::InstallId;
pub use settings::Lookup;
pub use settings::SigningSettings;
pub use signer_list::display_fingerprint;
pub use signer_list::fingerprint;
pub use signer_list::release_deny_entry;
pub use signer_list::Keep;
pub use signer_list::KeptKind;
pub use signer_list::Signer;
pub use signer_list::SignerChain;
pub use signer_list::SignerKind;
pub use signer_list::SignerListBody;
pub use signer_list::TrustedList;
pub use signer_list::MAX_KEEP;
pub use verify::Trust;
pub use verify::Verified;

Modules§

binding
Binding values an enforcer computes from its own install.
config
config/v1: developer config for one install.
envelope
The one envelope every statement uses.
error
key
ECDSA P-256 keys in the text forms statements and signer lists carry.
ledger
What an install has already accepted.
recovery
The recovery code and the key it derives.
release
release/v2: what a release may run, workload by workload, and how an enforcer builds a workload from it.
session
The channel of a signed exec session, without any network code.
settings
What setup pins for a protected install, how an enforcer finds it, and the install id every enforcer derives from its own identity.
signer_list
The developer’s signer list and its chain of versions.
verify
The checks every enforcer runs on every statement.