pub struct DeclaredDispatchPep { /* private fields */ }Expand description
The production dispatch PEP over the declared table.
Decision procedure (every missing input denies; no permissive mode):
- Activation-selected context — the coverage-gated operator control
(
FloorOnly⇒ anonymous floor;IdentityAware⇒ the verified Claims × VerifiedKeyMaterial derivation).None⇒NoClearance. The activation gate and the narrow-to-floor kill-switch are unchanged: a narrowed process still evaluates every dispatch, and only floor-labeled (bootstrap-critical) rows remain reachable. - Deliberate service subject clearance — the verified subject must be
a
service:{name}identity with a real authenticated envelope signer key AND a declared clearance in the table. The declared clearance is composed with the crypto-derived assurance (SecurityContext:: from_clearanceclamps down, never up). No declaration ⇒NoClearance— an anonymous or undeclared caller can never ride the activation floor into a declared row. - Typed object identity — an exact declared
(service, leaf)row.None⇒UnlabeledObject. - Dominance — BOTH the activation-selected context and the deliberate
declared-service context must dominate the declared object label
(
can_access). OtherwiseFloorDeny.
Like the genesis PEP it replaces at the install seam, this PEP performs no permit caching and holds no permissive state.
Implementations§
Source§impl DeclaredDispatchPep
impl DeclaredDispatchPep
Sourcepub fn new(table: &'static DeclaredDispatchTable) -> Self
pub fn new(table: &'static DeclaredDispatchTable) -> Self
Construct over a declared table.
Direct unit-test and embedding constructors keep the historical
identity-aware behavior (the verified context is used as-is);
production installs with Self::with_activation_control.
Sourcepub fn with_activation_control(self) -> Self
pub fn with_activation_control(self) -> Self
Select subject contexts through the process-global coverage gate. Production’s install path opts in explicitly.
Sourcepub fn table(&self) -> &'static DeclaredDispatchTable
pub fn table(&self) -> &'static DeclaredDispatchTable
The declared table this PEP evaluates.
Trait Implementations§
Source§impl MacDispatchPep for DeclaredDispatchPep
impl MacDispatchPep for DeclaredDispatchPep
Source§fn check(
&self,
ctx: &EnvelopeContext,
service_domain: &str,
method: Option<&[u16]>,
) -> MacDecision
fn check( &self, ctx: &EnvelopeContext, service_domain: &str, method: Option<&[u16]>, ) -> MacDecision
Check mandatory MAC access before handler dispatch. Read more
Auto Trait Implementations§
impl Freeze for DeclaredDispatchPep
impl RefUnwindSafe for DeclaredDispatchPep
impl Send for DeclaredDispatchPep
impl Sync for DeclaredDispatchPep
impl Unpin for DeclaredDispatchPep
impl UnsafeUnpin for DeclaredDispatchPep
impl UnwindSafe for DeclaredDispatchPep
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
Mutably borrows from an owned value. Read more
§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>
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 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>
Wrap the input message
T in a tonic::Request§impl<T> JaggedSlice<T> for T
impl<T> JaggedSlice<T> for T
§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