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§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
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FleetSecretRef
impl PartialEq for FleetSecretRef
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 Forget for FleetSecretRef
impl Freeze for FleetSecretRef
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.