pub struct CasMountAuthzRequest<'a> {
pub kind: CasMountObjectKind,
pub address: &'a str,
pub domain: &'a DedupDomain,
pub verified_tenant: Option<&'a str>,
pub operation: &'static str,
pub requested_label: Option<&'a SecurityLabel>,
}Expand description
Authorization request made before a CAS operation.
Fields§
§kind: CasMountObjectKindWhich CAS object namespace is being accessed.
address: &'a strCID, legacy merkle, xorb hash, or staging id, exactly as walked.
domain: &'a DedupDomainDedup domain the mount is serving.
verified_tenant: Option<&'a str>Authority-verified hosted-account tenant for the caller, when the transport has one. This is transport context, never an object/path field supplied by the caller.
operation: &'static strOperation name for policy/audit (e.g. open, read, stat,
stage:create, stage:label, stage:commit).
requested_label: Option<&'a SecurityLabel>Parsed object label proposed by a stage:label operation. None for
every other operation.
A clearance-aware authorizer must resolve the caller’s verified
hyprstream_rpc::auth::mac::SecurityContext and reject labels it does
not authorize. The raw ctl input is never authoritative by itself.
Trait Implementations§
Source§impl<'a> Clone for CasMountAuthzRequest<'a>
impl<'a> Clone for CasMountAuthzRequest<'a>
Source§fn clone(&self) -> CasMountAuthzRequest<'a>
fn clone(&self) -> CasMountAuthzRequest<'a>
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 moreSource§impl<'a> Debug for CasMountAuthzRequest<'a>
impl<'a> Debug for CasMountAuthzRequest<'a>
Source§impl<'a> PartialEq for CasMountAuthzRequest<'a>
impl<'a> PartialEq for CasMountAuthzRequest<'a>
Source§fn eq(&self, other: &CasMountAuthzRequest<'a>) -> bool
fn eq(&self, other: &CasMountAuthzRequest<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> Eq for CasMountAuthzRequest<'a>
impl<'a> StructuralPartialEq for CasMountAuthzRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for CasMountAuthzRequest<'a>
impl<'a> RefUnwindSafe for CasMountAuthzRequest<'a>
impl<'a> Send for CasMountAuthzRequest<'a>
impl<'a> Sync for CasMountAuthzRequest<'a>
impl<'a> Unpin for CasMountAuthzRequest<'a>
impl<'a> UnsafeUnpin for CasMountAuthzRequest<'a>
impl<'a> UnwindSafe for CasMountAuthzRequest<'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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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