pub struct PlatformAuthEnforced;Expand description
Runtime signal that “this listener enforces platform-plane auth”.
Stamped onto every request handled by an active platform-plane enforcement
layer — the gRPC InternalAuthGrpcLayer (before its exempt check, so even
exempt methods carry it) and the HTTP internal_auth_middleware. It lets a
handler distinguish two token-less cases that both lack a
PlatformSecurityContext:
- Marker present, no context — an enforcing listener let an anonymous caller through (a permissive or exempt path). A handler that authorizes per-peer must fail closed here: an unauthenticated caller must not be treated as more privileged than an honest token holder.
- Marker absent — no platform-plane enforcement is installed (Profile 1 / in-process); there is no trust boundary to honour, so handlers fail open.
The marker carries no identity and grants nothing on its own; it only reports the listener’s posture, so a handler never has to read another component’s configuration to learn it.
Trait Implementations§
Source§impl Clone for PlatformAuthEnforced
impl Clone for PlatformAuthEnforced
Source§fn clone(&self) -> PlatformAuthEnforced
fn clone(&self) -> PlatformAuthEnforced
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlatformAuthEnforced
Source§impl Debug for PlatformAuthEnforced
impl Debug for PlatformAuthEnforced
impl Eq for PlatformAuthEnforced
Source§impl PartialEq for PlatformAuthEnforced
impl PartialEq for PlatformAuthEnforced
impl StructuralPartialEq for PlatformAuthEnforced
Auto Trait Implementations§
impl Freeze for PlatformAuthEnforced
impl RefUnwindSafe for PlatformAuthEnforced
impl Send for PlatformAuthEnforced
impl Sync for PlatformAuthEnforced
impl Unpin for PlatformAuthEnforced
impl UnsafeUnpin for PlatformAuthEnforced
impl UnwindSafe for PlatformAuthEnforced
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