pub struct PendingIntake {
pub id: String,
pub created_unix: u64,
pub coordinate: String,
pub sensitivity: Sensitivity,
pub environment: String,
pub origin: Origin,
pub requesting_process: Option<String>,
pub description: Option<Untrusted>,
}Expand description
A pending agent-initiated secret-creation request, persisted for the
human-summoned fulfillment surface (CLI kovra intake list, the menu-bar app).
Carries only the authoritative address/metadata the agent named — never a
value (I11/I12/I14). There is no value field by construction; the value is
supplied out-of-band at fulfillment and goes straight to the vault.
Fields§
§id: StringThe operator-typable intake id (<unix>-<pid>-<n>, same scheme as the
approval broker).
created_unix: u64Seconds since the Unix epoch when the intake was created.
coordinate: StringThe coordinate the value will be sealed under (an address, not a value).
sensitivity: SensitivitySensitivity the secret will be born with (a prod secret is born high,
I5 — enforced at the seal, recorded here for the fulfillment prompt).
environment: StringEnvironment (prod is highlighted by the renderer).
origin: OriginWho initiated the intake — weighs into the human’s decision.
requesting_process: Option<String>The requesting process / caller identity, a trusted, observed fact set by the FFI/CLI boundary (never from requester text). Carries no value.
description: Option<Untrusted>Optional requester free-text, segregated as untrusted (I16) — the agent’s “why”, never the authoritative line.
Implementations§
Source§impl PendingIntake
impl PendingIntake
Sourcepub fn new(
coordinate: impl Into<String>,
sensitivity: Sensitivity,
environment: impl Into<String>,
origin: Origin,
) -> Self
pub fn new( coordinate: impl Into<String>, sensitivity: Sensitivity, environment: impl Into<String>, origin: Origin, ) -> Self
Build an intake request from the authoritative fields. id/created_unix
are placeholders until IntakeBroker::create stamps them.
Sourcepub fn with_requesting_process(self, s: impl Into<String>) -> Self
pub fn with_requesting_process(self, s: impl Into<String>) -> Self
Attach the trusted, observed requesting-process identity (mirrors
crate::confirm::ConfirmRequest::with_requesting_process).
Sourcepub fn with_description(self, text: impl Into<String>) -> Self
pub fn with_description(self, text: impl Into<String>) -> Self
Attach segregated, untrusted requester free-text.
Trait Implementations§
Source§impl Clone for PendingIntake
impl Clone for PendingIntake
Source§fn clone(&self) -> PendingIntake
fn clone(&self) -> PendingIntake
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 PendingIntake
impl Debug for PendingIntake
Source§impl<'de> Deserialize<'de> for PendingIntake
impl<'de> Deserialize<'de> for PendingIntake
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>,
impl Eq for PendingIntake
Source§impl PartialEq for PendingIntake
impl PartialEq for PendingIntake
Source§fn eq(&self, other: &PendingIntake) -> bool
fn eq(&self, other: &PendingIntake) -> bool
self and other values to be equal, and is used by ==.