pub struct DeclaredDispatchTable { /* private fields */ }Expand description
The declared dispatch table: a closed, deny-by-default set of typed
(service, leaf/method) object labels plus the deliberate per-service
subject clearances. Consumed by DeclaredDispatchPep; replaceable by
#1507’s generated inventory without changing the PEP contract.
Implementations§
Source§impl DeclaredDispatchTable
impl DeclaredDispatchTable
Sourcepub fn production() -> &'static Self
pub fn production() -> &'static Self
The production staging-bootstrap declarations (#1499).
Object rows cover the fresh-state
service start --services event,policy,discovery,registry,model,oai,oauth boot
graph plus the PolicyService authority’s local policy-control-plane
commands. The production wrapper further restricts those local commands
to the verified, tokenless service:policy authority. Subject rows
declare the deliberate caller clearance for all seven bootstrap services.
Sourcepub const fn from_rows(
methods: &'static [DispatchMethodPolicy],
clearances: &'static [ServiceSubjectClearance],
) -> Self
pub const fn from_rows( methods: &'static [DispatchMethodPolicy], clearances: &'static [ServiceSubjectClearance], ) -> Self
Construct a table from explicit rows (test fixtures). Production uses
Self::production.
Sourcepub fn methods(&self) -> &'static [DispatchMethodPolicy]
pub fn methods(&self) -> &'static [DispatchMethodPolicy]
Every declared method row (table-driven test and audit evidence).
Sourcepub fn clearances(&self) -> &'static [ServiceSubjectClearance]
pub fn clearances(&self) -> &'static [ServiceSubjectClearance]
Every declared service subject clearance row.
Sourcepub fn resolve_row(
&self,
service_domain: &str,
method: Option<&[u16]>,
) -> Option<&DispatchMethodPolicy>
pub fn resolve_row( &self, service_domain: &str, method: Option<&[u16]>, ) -> Option<&DispatchMethodPolicy>
Resolve the declared policy row for a typed (service, leaf) call.
Exact match only: method must be Some (the canonical discriminant
committed by the verified payload) and the pair must be declared.
Unknown services, unknown leaves, VFS-shaped aliases, and calls with
no committed method identity all return None ⇒ deny.
Sourcepub fn service_clearance(&self, service: &str) -> Option<SecurityLabel>
pub fn service_clearance(&self, service: &str) -> Option<SecurityLabel>
The deliberate clearance declared for a service caller, if any.
service is the canonical service name (the service: subject prefix
is stripped by the caller). Exact match; no declaration ⇒ None ⇒ the
caller has no dispatch authority (deny NoClearance).
Trait Implementations§
Source§impl Clone for DeclaredDispatchTable
impl Clone for DeclaredDispatchTable
Source§fn clone(&self) -> DeclaredDispatchTable
fn clone(&self) -> DeclaredDispatchTable
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeclaredDispatchTable
impl Debug for DeclaredDispatchTable
impl Copy for DeclaredDispatchTable
Auto Trait Implementations§
impl Freeze for DeclaredDispatchTable
impl RefUnwindSafe for DeclaredDispatchTable
impl Send for DeclaredDispatchTable
impl Sync for DeclaredDispatchTable
impl Unpin for DeclaredDispatchTable
impl UnsafeUnpin for DeclaredDispatchTable
impl UnwindSafe for DeclaredDispatchTable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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