pub struct ProvenanceConfig {
pub enabled: bool,
pub algorithm: String,
pub key_id: Option<String>,
pub secret_key: Option<String>,
pub signed_fields: Vec<String>,
pub sequence_path: Option<String>,
pub attestation: AttestationConfig,
pub batch_signing: BatchSigningConfig,
}Expand description
Provenance (signing) configuration.
Fields§
§enabled: boolEnable event signing.
algorithm: StringSigning algorithm.
key_id: Option<String>Key ID.
secret_key: Option<String>Secret key (base64-encoded for HMAC).
signed_fields: Vec<String>No longer supported and must be left empty: signatures always cover the whole event. Kept so that configs that still set it fail with a clear error instead of having the list silently ignored.
sequence_path: Option<String>State file that keeps provenance sequence numbers increasing across restarts. Unset: an in-memory counter that restarts from 1, for development only.
attestation: AttestationConfigDevice attestation in each event’s provenance (issue #453).
batch_signing: BatchSigningConfigMerkle batch signing (issue #392).
Trait Implementations§
Source§impl Clone for ProvenanceConfig
impl Clone for ProvenanceConfig
Source§impl Debug for ProvenanceConfig
impl Debug for ProvenanceConfig
Source§impl Default for ProvenanceConfig
impl Default for ProvenanceConfig
Source§impl<'de> Deserialize<'de> for ProvenanceConfig
impl<'de> Deserialize<'de> for ProvenanceConfig
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 ProvenanceConfig
impl RefUnwindSafe for ProvenanceConfig
impl Send for ProvenanceConfig
impl Sync for ProvenanceConfig
impl Unpin for ProvenanceConfig
impl UnsafeUnpin for ProvenanceConfig
impl UnwindSafe for ProvenanceConfig
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