pub struct SecretConsumer {
pub workload: String,
pub tenant: TenantId,
pub namespace: NamespaceId,
}Expand description
The identity a cluster-secret access rule is evaluated against: the requesting workload, as yubaba knows it at mount time.
Built from a WorkloadSpec via SecretConsumer::of. These three fields
are the whole vocabulary because they are the whole identity available at the
enforcement point — yubaba resolves secrets while holding a spec, with no
cheers principal and no spec→principal mapping in reach.
Fields§
§workload: StringWorkloadSpec::name — the DNS-friendly workload name.
tenant: TenantIdWorkloadSpec::tenant — the isolation axis (W206).
namespace: NamespaceIdWorkloadSpec::namespace — the routing/naming axis (W206).
Implementations§
Trait Implementations§
Source§impl Clone for SecretConsumer
impl Clone for SecretConsumer
Source§fn clone(&self) -> SecretConsumer
fn clone(&self) -> SecretConsumer
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 SecretConsumer
impl Debug for SecretConsumer
Source§impl<'de> Deserialize<'de> for SecretConsumer
impl<'de> Deserialize<'de> for SecretConsumer
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
impl Eq for SecretConsumer
Source§impl PartialEq for SecretConsumer
impl PartialEq for SecretConsumer
Source§impl Serialize for SecretConsumer
impl Serialize for SecretConsumer
impl StructuralPartialEq for SecretConsumer
Auto Trait Implementations§
impl Freeze for SecretConsumer
impl RefUnwindSafe for SecretConsumer
impl Send for SecretConsumer
impl Sync for SecretConsumer
impl Unpin for SecretConsumer
impl UnsafeUnpin for SecretConsumer
impl UnwindSafe for SecretConsumer
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,
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
Compare self to
key and return true if they are equal.