pub enum SecretDelivery {
VaultPointer,
NativeProjection,
}Expand description
The mechanism by which Secret-typed env vars are delivered to a workload.
Variants§
VaultPointer
Inject the ALIEN_SECRETS vault-load pointer (the secret keys plus a
values hash). At startup the workload loads the actual values from the
“secrets” vault through the Worker runtime wrapper. Worker-only:
runtime-less workloads have nothing that could consume the pointer.
NativeProjection
The hosting layer delivers each applicable secret natively before the
process starts — Kubernetes valueFrom.secretKeyRef, the local
supervisor’s resolved plain env, or the cloud container host’s native
secret projection — so no
vault-load pointer is ever injected.
Implementations§
Source§impl SecretDelivery
impl SecretDelivery
Sourcepub fn resolve(platform: Platform, kind: ComputeKind) -> Self
pub fn resolve(platform: Platform, kind: ComputeKind) -> Self
Resolves how a compute kind’s secrets are delivered.
- Kubernetes and Machines hosting layers project Worker secrets before process start. Other Worker hosts use the runtime vault pointer.
- Containers and Daemons are runtime-less on every platform: nothing in the workload can load a vault pointer, so the hosting layer projects secrets natively before process start (Kubernetes secretKeyRef, local supervisor plain env, or native cloud container secret injection) and the pointer must never be minted for them.
The match is exhaustive over both enums so a new platform or compute kind forces an explicit delivery choice here.
Sourcepub fn is_native_projection(self) -> bool
pub fn is_native_projection(self) -> bool
Whether the platform projects this kind’s secrets natively (no pointer).
Trait Implementations§
Source§impl Clone for SecretDelivery
impl Clone for SecretDelivery
Source§fn clone(&self) -> SecretDelivery
fn clone(&self) -> SecretDelivery
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SecretDelivery
Source§impl Debug for SecretDelivery
impl Debug for SecretDelivery
impl Eq for SecretDelivery
Source§impl PartialEq for SecretDelivery
impl PartialEq for SecretDelivery
impl StructuralPartialEq for SecretDelivery
Auto Trait Implementations§
impl Freeze for SecretDelivery
impl RefUnwindSafe for SecretDelivery
impl Send for SecretDelivery
impl Sync for SecretDelivery
impl Unpin for SecretDelivery
impl UnsafeUnpin for SecretDelivery
impl UnwindSafe for SecretDelivery
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.