pub struct OrgSecurityKeysServiceServer<T> { /* private fields */ }Expand description
OrgSecurityKeysService exposes per-org secret key material to internal services that need it for HMAC computation, signature verification, or envelope-key derivation.
AUTH: INTERNAL-mTLS ONLY. Every RPC on this service returns raw key material. The server MUST require a client certificate from a known internal service (allowlisted by subject DN) and MUST reject any request presenting only a JWT. The service MUST NOT be exposed on the public ALB.
Callers (today: pidgr-integrations) cache returned peppers in-process keyed on (org_id, purpose, version) with a short TTL (≤ 5 minutes) to keep dispatch hot-path latency bounded.
Implementations§
Source§impl<T> OrgSecurityKeysServiceServer<T>
impl<T> OrgSecurityKeysServiceServer<T>
pub fn new(inner: T) -> Self
pub fn from_arc(inner: Arc<T>) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> InterceptedService<Self, F>where
F: Interceptor,
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing requests with the given encoding.
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress responses with the given encoding, if the client supports it.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
Trait Implementations§
Source§impl<T> Clone for OrgSecurityKeysServiceServer<T>
impl<T> Clone for OrgSecurityKeysServiceServer<T>
Source§impl<T: Debug> Debug for OrgSecurityKeysServiceServer<T>
impl<T: Debug> Debug for OrgSecurityKeysServiceServer<T>
Source§impl<T> NamedService for OrgSecurityKeysServiceServer<T>
impl<T> NamedService for OrgSecurityKeysServiceServer<T>
Source§impl<T, B> Service<Request<B>> for OrgSecurityKeysServiceServer<T>
impl<T, B> Service<Request<B>> for OrgSecurityKeysServiceServer<T>
Source§type Error = Infallible
type Error = Infallible
Source§type Future = Pin<Box<dyn Future<Output = Result<<OrgSecurityKeysServiceServer<T> as Service<Request<B>>>::Response, <OrgSecurityKeysServiceServer<T> as Service<Request<B>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<OrgSecurityKeysServiceServer<T> as Service<Request<B>>>::Response, <OrgSecurityKeysServiceServer<T> as Service<Request<B>>>::Error>> + Send>>
Auto Trait Implementations§
impl<T> Freeze for OrgSecurityKeysServiceServer<T>
impl<T> RefUnwindSafe for OrgSecurityKeysServiceServer<T>where
T: RefUnwindSafe,
impl<T> Send for OrgSecurityKeysServiceServer<T>
impl<T> Sync for OrgSecurityKeysServiceServer<T>
impl<T> Unpin for OrgSecurityKeysServiceServer<T>
impl<T> UnsafeUnpin for OrgSecurityKeysServiceServer<T>
impl<T> UnwindSafe for OrgSecurityKeysServiceServer<T>where
T: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, ReqBody, ResBody> GrpcService<ReqBody> for T
impl<T, ReqBody, ResBody> GrpcService<ReqBody> for T
Source§type ResponseBody = ResBody
type ResponseBody = ResBody
Source§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <T as GrpcService<ReqBody>>::Error>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <T as GrpcService<ReqBody>>::Error>>
Ready when the service is able to process requests. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§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::RequestSource§impl<S, R> ServiceExt<R> for Swhere
S: Service<R>,
impl<S, R> ServiceExt<R> for Swhere
S: Service<R>,
Source§fn into_make_service(self) -> IntoMakeService<S>
fn into_make_service(self) -> IntoMakeService<S>
MakeService, that is a Service whose
response is another service. Read moreSource§fn handle_error<F, T>(self, f: F) -> HandleError<Self, F, T>
fn handle_error<F, T>(self, f: F) -> HandleError<Self, F, T>
HandleError, that will handle errors
by converting them into responses. Read moreSource§impl<T, Request> ServiceExt<Request> for T
impl<T, Request> ServiceExt<Request> for T
Source§fn ready(&mut self) -> Ready<'_, Self, Request> ⓘwhere
Self: Sized,
fn ready(&mut self) -> Ready<'_, Self, Request> ⓘwhere
Self: Sized,
Source§fn ready_oneshot(self) -> ReadyOneshot<Self, Request> ⓘwhere
Self: Sized,
fn ready_oneshot(self) -> ReadyOneshot<Self, Request> ⓘwhere
Self: Sized,
Source§fn oneshot(self, req: Request) -> Oneshot<Self, Request> ⓘwhere
Self: Sized,
fn oneshot(self, req: Request) -> Oneshot<Self, Request> ⓘwhere
Self: Sized,
Service, calling it with the provided request once it is ready.Source§fn and_then<F>(self, f: F) -> AndThen<Self, F>
fn and_then<F>(self, f: F) -> AndThen<Self, F>
poll_ready method. Read moreSource§fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>
fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>
poll_ready method. Read moreSource§fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>
fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>
poll_ready method. Read moreSource§fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>
fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>
Result<Self::Response, Self::Error>)
to a different value, regardless of whether the future succeeds or
fails. Read more