pub struct FederatedKeySource { /* private fields */ }Expand description
Key source that combines local cluster trust with federation.
Used by PolicyService to accept tokens from:
- Local cluster (via
ClusterKeySource) - Federated IdPs (via
FederationKeySource)
This enables ID-JAG token exchange for cross-cluster requests.
Implementations§
Source§impl FederatedKeySource
impl FederatedKeySource
Sourcepub fn new(
local: ClusterKeySource,
federation: Arc<dyn FederationKeySource>,
) -> Self
pub fn new( local: ClusterKeySource, federation: Arc<dyn FederationKeySource>, ) -> Self
Create a federated key source.
§Arguments
local- The cluster’s local key sourcefederation- Source for resolving federated issuer keys
Trait Implementations§
Source§impl JwtKeySource for FederatedKeySource
impl JwtKeySource for FederatedKeySource
Source§fn get_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
issuer: &'life1 str,
kid: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<VerifyingKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
issuer: &'life1 str,
kid: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<VerifyingKey>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get the verifying key for a given issuer and optional kid. Read more
Source§fn get_keys<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
issuer: &'life1 str,
kid: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<VerifyingKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_keys<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
issuer: &'life1 str,
kid: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<VerifyingKey>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolve all algorithm-compatible candidates for an issuer/kid pair. Read more
Source§fn is_trusted(&self, issuer: &str) -> bool
fn is_trusted(&self, issuer: &str) -> bool
Check if an issuer is trusted (before attempting key fetch). Read more
Source§fn local_issuers(&self) -> &[String]
fn local_issuers(&self) -> &[String]
List of issuer URLs considered “local” (for subject formatting). Read more
Source§fn ml_dsa_verifying_keys(&self) -> Vec<MlDsaVerifyingKey> ⓘ
fn ml_dsa_verifying_keys(&self) -> Vec<MlDsaVerifyingKey> ⓘ
Get all current ML-DSA-65 verifying keys for PQ-hybrid JWT verification. Read more
Source§fn composite_key_set(&self) -> Arc<CompositeKeySet> ⓘ
fn composite_key_set(&self) -> Arc<CompositeKeySet> ⓘ
Return the authoritative exact-pair composite key ledger.
Source§fn composite_pair(&self, kid: &str) -> Option<CompositeKeyPair>
fn composite_pair(&self, kid: &str) -> Option<CompositeKeyPair>
Resolve the exact composite verification pair for a JOSE
kid. Read moreAuto Trait Implementations§
impl Freeze for FederatedKeySource
impl !RefUnwindSafe for FederatedKeySource
impl Send for FederatedKeySource
impl Sync for FederatedKeySource
impl Unpin for FederatedKeySource
impl UnsafeUnpin for FederatedKeySource
impl !UnwindSafe for FederatedKeySource
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more