pub enum FleetWorkerAuth {
None,
SshKey {
identity: PathBuf,
known_hosts: Option<PathBuf>,
host_key_fingerprint: Option<String>,
user: Option<String>,
},
Token {
token_ref: FleetSecretRef,
},
Mtls {
cert_path: PathBuf,
key_ref: FleetSecretRef,
},
}Expand description
How a worker authenticates to the fleet manager.
Variants§
None
No authentication (local workers share the same uid).
SshKey
SSH key-based authentication with host-key verification.
Fields
§
identity: PathBufPath to the SSH identity file (may be a FleetSecretRef in JSON
as {"key": "...", "source": "file"}).
Token
Token-based authentication for remote workers behind a fleet proxy.
Fields
§
token_ref: FleetSecretRefReference to the token secret.
Mtls
mTLS certificate-based authentication.
Fields
§
key_ref: FleetSecretRefReference to the private key secret.
Trait Implementations§
Source§impl Clone for FleetWorkerAuth
impl Clone for FleetWorkerAuth
Source§impl Debug for FleetWorkerAuth
impl Debug for FleetWorkerAuth
Source§impl<'de> Deserialize<'de> for FleetWorkerAuth
impl<'de> Deserialize<'de> for FleetWorkerAuth
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 FleetWorkerAuth
Source§impl PartialEq for FleetWorkerAuth
impl PartialEq for FleetWorkerAuth
Source§impl Serialize for FleetWorkerAuth
impl Serialize for FleetWorkerAuth
impl StructuralPartialEq for FleetWorkerAuth
Auto Trait Implementations§
impl Forget for FleetWorkerAuth
impl Freeze for FleetWorkerAuth
impl Move for FleetWorkerAuth
impl RefUnwindSafe for FleetWorkerAuth
impl Send for FleetWorkerAuth
impl Sync for FleetWorkerAuth
impl Unpin for FleetWorkerAuth
impl UnsafeUnpin for FleetWorkerAuth
impl UnwindSafe for FleetWorkerAuth
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.