pub enum ApproveOnUse {
Never,
Session,
PerCall,
}Expand description
How the secret is rotated.
Manual is the only method that ships in the first release;
ProviderUi and ProviderApi are reserved for future ADRs (see
Per-path policy for AI-agent secret USE (not provision).
Controls whether the framework demands an interactive user
approval each time an agent’s high-level provider tool resolves
a @secret:<path> alias backed by this entry. Designed for the
case where the user wants to provision once but still wants
fine-grained control over which agent calls “spend” sensitive
credentials. See ADR-023 §3.7 (P25 phase) for the protocol.
Default — Never — preserves the existing zero-prompt
resolve path so most paths stay frictionless.
Variants§
Never
No approval required — alias resolves silently. The default for every existing manifest.
Session
First use this session opens an approval dialog; once the user clicks “Allow always (this session)” further uses skip the prompt for the remainder of the session.
PerCall
Every use opens an approval dialog. Right for high- stakes paths (prod DB password, signing keys).
Trait Implementations§
Source§impl Clone for ApproveOnUse
impl Clone for ApproveOnUse
Source§fn clone(&self) -> ApproveOnUse
fn clone(&self) -> ApproveOnUse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ApproveOnUse
Source§impl Debug for ApproveOnUse
impl Debug for ApproveOnUse
Source§impl Default for ApproveOnUse
impl Default for ApproveOnUse
Source§fn default() -> ApproveOnUse
fn default() -> ApproveOnUse
Source§impl<'de> Deserialize<'de> for ApproveOnUse
impl<'de> Deserialize<'de> for ApproveOnUse
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 ApproveOnUse
Source§impl From<ApproveOnUse> for ApproveOnUsePolicy
impl From<ApproveOnUse> for ApproveOnUsePolicy
Source§fn from(v: ApproveOnUse) -> Self
fn from(v: ApproveOnUse) -> Self
Source§impl PartialEq for ApproveOnUse
impl PartialEq for ApproveOnUse
Source§fn eq(&self, other: &ApproveOnUse) -> bool
fn eq(&self, other: &ApproveOnUse) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ApproveOnUse
impl Serialize for ApproveOnUse
impl StructuralPartialEq for ApproveOnUse
Auto Trait Implementations§
impl Freeze for ApproveOnUse
impl RefUnwindSafe for ApproveOnUse
impl Send for ApproveOnUse
impl Sync for ApproveOnUse
impl Unpin for ApproveOnUse
impl UnsafeUnpin for ApproveOnUse
impl UnwindSafe for ApproveOnUse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.