pub struct FleetSecretRef {
pub key: String,
pub source: Option<String>,
}Expand description
A reference to a secret that should be resolved at runtime, never serialized as a plaintext value.
Secret refs appear in task specs, alert configs, and worker definitions. The actual secret value is resolved by the fleet manager from the secrets backend (OS keyring, environment, or file store) just before the worker starts.
Fields§
§key: StringThe secret key name (e.g. "CODEWHALE_API_KEY", "GH_TOKEN").
source: Option<String>Optional source hint for resolution order.
"env"— resolve from environment variable"keyring"— resolve from OS keyring"file"— resolve from~/.codewhale/secrets/- absent / null — try all sources in default order
Implementations§
Trait Implementations§
Source§impl Clone for FleetSecretRef
impl Clone for FleetSecretRef
Source§fn clone(&self) -> FleetSecretRef
fn clone(&self) -> FleetSecretRef
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 FleetSecretRef
impl Debug for FleetSecretRef
Source§impl<'de> Deserialize<'de> for FleetSecretRef
impl<'de> Deserialize<'de> for FleetSecretRef
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
Source§impl Display for FleetSecretRef
impl Display for FleetSecretRef
impl Eq for FleetSecretRef
Source§impl From<&str> for FleetSecretRef
impl From<&str> for FleetSecretRef
Source§impl From<String> for FleetSecretRef
impl From<String> for FleetSecretRef
Source§impl Hash for FleetSecretRef
impl Hash for FleetSecretRef
Source§impl Ord for FleetSecretRef
impl Ord for FleetSecretRef
Source§fn cmp(&self, other: &FleetSecretRef) -> Ordering
fn cmp(&self, other: &FleetSecretRef) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FleetSecretRef
impl PartialEq for FleetSecretRef
Source§fn eq(&self, other: &FleetSecretRef) -> bool
fn eq(&self, other: &FleetSecretRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FleetSecretRef
impl PartialOrd for FleetSecretRef
Source§impl Serialize for FleetSecretRef
impl Serialize for FleetSecretRef
impl StructuralPartialEq for FleetSecretRef
Auto Trait Implementations§
impl Freeze for FleetSecretRef
impl RefUnwindSafe for FleetSecretRef
impl Send for FleetSecretRef
impl Sync for FleetSecretRef
impl Unpin for FleetSecretRef
impl UnsafeUnpin for FleetSecretRef
impl UnwindSafe for FleetSecretRef
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