pub struct AttestConfig {
pub default_algorithm: String,
pub signer: String,
pub external_signer_path: String,
pub external_signer_args: Vec<String>,
pub external_signer_timeout_secs: Option<u64>,
pub secp256k1_key_path: String,
pub p256_key_path: String,
}Expand description
[attest] section. All fields optional with documented defaults; a
fresh repo’s config file has none of them set.
Fields§
§default_algorithm: StringOne of "ed25519", "secp256k1", "p256". Empty = "ed25519".
signer: StringOne of "repo-key", "external", "keystore". Empty = "repo-key".
external_signer_path: StringAbsolute path to the external signer binary. Required when
signer = "external". User-scoped only.
external_signer_args: Vec<String>Extra argv tokens to pass to the external signer subprocess.
Each Vec entry is one argv entry — the stored list maps 1:1
to std::process::Command::args. On disk, encoded as a
pipe-separated string: attest.external_signer_args = sign|--tag|demo.
User-scoped only.
external_signer_timeout_secs: Option<u64>Wall-clock budget (in seconds) for the entire external-signer
conversation: spawn → request-write → response-read →
stderr-drain → child-exit. On expiry mkit kills and reaps the
child. Empty / 0 = use the crate default (120s, generous for
hardware touch/PIN/biometric). User-scoped only — see
REPO_FORBIDDEN_KEYS (a hostile repo must not be able to set a
0s “deny” timeout or a multi-hour hang).
secp256k1_key_path: StringPer-algorithm repo-key paths for non-ed25519 signing.
User-scoped only — see REPO_FORBIDDEN_KEYS.
p256_key_path: StringImplementations§
Source§impl AttestConfig
impl AttestConfig
pub fn default_algorithm_or_fallback(&self) -> &str
pub fn signer_or_fallback(&self) -> &str
pub fn secp256k1_key_path_or_default(&self) -> &str
pub fn p256_key_path_or_default(&self) -> &str
Trait Implementations§
Source§impl Clone for AttestConfig
impl Clone for AttestConfig
Source§fn clone(&self) -> AttestConfig
fn clone(&self) -> AttestConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AttestConfig
impl Debug for AttestConfig
Source§impl Default for AttestConfig
impl Default for AttestConfig
Source§fn default() -> AttestConfig
fn default() -> AttestConfig
impl Eq for AttestConfig
Source§impl PartialEq for AttestConfig
impl PartialEq for AttestConfig
Source§fn eq(&self, other: &AttestConfig) -> bool
fn eq(&self, other: &AttestConfig) -> bool
self and other values to be equal, and is used by ==.