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
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§fn clone(&self) -> FleetWorkerAuth
fn clone(&self) -> FleetWorkerAuth
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 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§fn eq(&self, other: &FleetWorkerAuth) -> bool
fn eq(&self, other: &FleetWorkerAuth) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FleetWorkerAuth
impl Serialize for FleetWorkerAuth
impl StructuralPartialEq for FleetWorkerAuth
Auto Trait Implementations§
impl Freeze 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