pub struct DelegationEdge<'a> {
pub actor_service: &'a str,
pub actor_tenant: &'a str,
pub source_audience: Option<&'a str>,
pub originator: &'a str,
pub target_audience: &'a str,
pub target_method_id: Option<&'a str>,
}Expand description
The authenticated delegation edge presented to a DelegationEdgeAuthorizer.
Every field is AUTHORITY-DERIVED, never caller-asserted: the actor is the
verified RPC envelope subject/tenant, the source audience is the verified
source credential’s aud, and the target is the validated requested
audience. It carries no clearance, scope, or key — only the identity edge.
Fields§
§actor_service: &'a strBare terminal-actor service name (e.g. "mcp"), from the verified envelope.
actor_tenant: &'a strThe terminal actor’s verified tenant/Casbin domain.
source_audience: Option<&'a str>The verified source credential’s aud — the resource the source was
minted FOR. The authorizer proves this names the CURRENT terminal actor
(the confused-deputy control): a source credential minted for service A
cannot be rebound to service B, even with B’s valid enrollment/scope.
originator: &'a strThe verified originator subject (the source credential’s sub).
target_audience: &'a strThe requested derived-call target audience (validated non-empty).
target_method_id: Option<&'a str>The generated target method id, when the typed dispatch call carries one
(WS-E populates it from the reviewed inventory). None until then.
Auto Trait Implementations§
impl<'a> Freeze for DelegationEdge<'a>
impl<'a> RefUnwindSafe for DelegationEdge<'a>
impl<'a> Send for DelegationEdge<'a>
impl<'a> Sync for DelegationEdge<'a>
impl<'a> Unpin for DelegationEdge<'a>
impl<'a> UnsafeUnpin for DelegationEdge<'a>
impl<'a> UnwindSafe for DelegationEdge<'a>
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request