pub struct GrantSecret {
pub source: SecretRef,
pub path: PathBuf,
pub mode: u32,
}Expand description
One vault credential a grant admits, as a file inside the workload.
File-target only, on purpose — see the module docs on why env-target secret
delivery is refused rather than admitted. mode is in the signed body
because a secret readable by every uid in the container is a different grant
from one readable by its owner.
Fields§
§source: SecretRefWhere yubaba reads the value from.
path: PathBufAbsolute container path the value is mounted at.
mode: u32File mode, octal.
Implementations§
Source§impl GrantSecret
impl GrantSecret
Sourcepub fn of_mount(mount: &SecretMount) -> Option<Self>
pub fn of_mount(mount: &SecretMount) -> Option<Self>
The grant entry a spec’s mount corresponds to, or None when the mount
is one no grant can admit (an env target).
Sourcepub fn describe(&self) -> String
pub fn describe(&self) -> String
Operator-facing rendering, for refusal messages only. Never parsed —
the wire form is the four records AdmissionGrant::encode writes.
Trait Implementations§
Source§impl Clone for GrantSecret
impl Clone for GrantSecret
Source§fn clone(&self) -> GrantSecret
fn clone(&self) -> GrantSecret
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrantSecret
impl Debug for GrantSecret
impl Eq for GrantSecret
Source§impl PartialEq for GrantSecret
impl PartialEq for GrantSecret
impl StructuralPartialEq for GrantSecret
Auto Trait Implementations§
impl Freeze for GrantSecret
impl RefUnwindSafe for GrantSecret
impl Send for GrantSecret
impl Sync for GrantSecret
impl Unpin for GrantSecret
impl UnsafeUnpin for GrantSecret
impl UnwindSafe for GrantSecret
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.