pub trait BoxSecretMaterializer: Send + Sync {
// Required methods
fn materialize<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 SecretReference,
) -> Pin<Box<dyn Future<Output = Result<BoxSecretMaterial, BoxSecretMaterializationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn materialize_registry_credential<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
reference: &'life1 SecretReference,
registry: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<BoxRegistryCredential, BoxSecretMaterializationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Provider-neutral Secret resolver supplied by the authenticated caller.
Box deliberately accepts the shared Runtime SecretReference rather than
a Cloud type. The caller owns authorization and remote transport; Box owns
only transient node-local materialization and cleanup. A reference must
resolve to the same bytes for the lifetime of one Runtime specification;
rotation uses a new reference and therefore a new specification digest.
Required Methods§
fn materialize<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 SecretReference,
) -> Pin<Box<dyn Future<Output = Result<BoxSecretMaterial, BoxSecretMaterializationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn materialize_registry_credential<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
reference: &'life1 SecretReference,
registry: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<BoxRegistryCredential, BoxSecretMaterializationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn materialize_registry_credential<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
reference: &'life1 SecretReference,
registry: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<BoxRegistryCredential, BoxSecretMaterializationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolve one registry credential immediately before an uncached pull.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".