pub struct CompositeObjectLabelResolver { /* private fields */ }Expand description
The production ObjectLabelResolver: composes the label sources the
reference monitor needs, in priority order, and fails closed when none applies.
For a path reference:
- Carrier (a) deny-set — a generated node whose schema declared no
$vfsMacis unlabeled ⇒ deny. It does NOT inherit an ancestor’s label (that would be a permissive default on a known surface the operator explicitly left unannotated). Only the exact path of a known unlabeled generated node denies; a path the inventory never saw still walks its ancestors. - Carrier (c) bind-time floor — a path under a synthetic mount
(
BindLabelMap) inherits that mount’s bind-time floor, D2-joined with any genesis/generated label found below (the mount can only raise, never lower). - Genesis static node (incl. materialized carrier-(a) labels) — an exact assignment, or the nearest labeled non-structural-root ancestor.
- None ⇒
None⇒ deny.
For a CID reference: the CAS ManifestLabelSource — a present-but-
unlabeled manifest denies, and an absent manifest denies.
Every arm honors the S1 invariant: an unresolvable reference returns None
(deny), never a manufactured permissive default.
Implementations§
Source§impl CompositeObjectLabelResolver
impl CompositeObjectLabelResolver
Sourcepub fn new(
genesis: GenesisMap,
floor: SecurityLabel,
manifests: Arc<dyn ManifestLabelSource>,
generated_unlabeled: BTreeSet<String>,
binds: Arc<BindLabelMap>,
) -> Self
pub fn new( genesis: GenesisMap, floor: SecurityLabel, manifests: Arc<dyn ManifestLabelSource>, generated_unlabeled: BTreeSet<String>, binds: Arc<BindLabelMap>, ) -> Self
Construct from a materialized genesis map, the D2 clamp floor, a CAS manifest source, the carrier-(a) generated-node deny-set, and the carrier-(c) bind-time label map.
Trait Implementations§
Source§impl RpcObjectLabelResolver for CompositeObjectLabelResolver
Adapt the genesis/bind carrier resolver to the canonical cross-plane MAC
resolver contract. For the VFS plane, service_domain is the normalized
absolute object path and there is no browser method discriminator.
impl RpcObjectLabelResolver for CompositeObjectLabelResolver
Adapt the genesis/bind carrier resolver to the canonical cross-plane MAC
resolver contract. For the VFS plane, service_domain is the normalized
absolute object path and there is no browser method discriminator.
RPC dispatch no longer routes through this adapter (#1499): the
dispatch PEP evaluates typed (service, leaf/method) rows from
crate::mac::dispatch_labels, so a bare service domain is never split
as a path here. This impl serves the VFS/9P plane only
(crate::mac::pep::production_vfs_pep).
Auto Trait Implementations§
impl Freeze for CompositeObjectLabelResolver
impl !RefUnwindSafe for CompositeObjectLabelResolver
impl Send for CompositeObjectLabelResolver
impl Sync for CompositeObjectLabelResolver
impl Unpin for CompositeObjectLabelResolver
impl UnsafeUnpin for CompositeObjectLabelResolver
impl !UnwindSafe for CompositeObjectLabelResolver
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