pub struct DiscoveryService { /* private fields */ }Expand description
Discovery service that exposes EndpointRegistry over RPC.
Implementations§
Source§impl DiscoveryService
impl DiscoveryService
pub fn self_announcer(&self) -> Result<DiscoverySelfAnnouncer, Error>
Sourcepub fn new(
signing_key: Arc<SigningKey>,
jwt_verifying_key: VerifyingKey,
transport: TransportConfig,
) -> DiscoveryService
pub fn new( signing_key: Arc<SigningKey>, jwt_verifying_key: VerifyingKey, transport: TransportConfig, ) -> DiscoveryService
Create a new discovery service with infrastructure.
signing_key is used for envelope signing (should be the per-service key
derived via HKDF). jwt_verifying_key is the root-derived JWT verifying
key for verifying service JWTs (derived from root via HKDF “hyprstream-jwt-v1”).
Sourcepub fn with_state(self, state: DiscoveryState) -> DiscoveryService
pub fn with_state(self, state: DiscoveryState) -> DiscoveryService
Install the configured volatile-state backend before the service is shared.
Sourcepub fn with_tls_endorsement(
self,
endorsement: Vec<u8>,
domain: String,
) -> DiscoveryService
pub fn with_tls_endorsement( self, endorsement: Vec<u8>, domain: String, ) -> DiscoveryService
Set the pre-computed TLS endorsement and domain.
The endorsement is Sign(tls_private_key, "TLS_ENDORSEMENT_V1" || ed25519_pubkey || domain),
computed once at startup by the service factory where TLS key materials are available.
Discovery never touches the TLS private key directly.
Sourcepub fn with_oauth_issuer(self, url: String) -> DiscoveryService
pub fn with_oauth_issuer(self, url: String) -> DiscoveryService
Set the OAuth issuer URL for RFC 9728 auth metadata responses.
Sourcepub fn with_expected_audience(self, audience: String) -> DiscoveryService
pub fn with_expected_audience(self, audience: String) -> DiscoveryService
Set the expected audience for JWT validation.
Sourcepub fn with_jwt_key_source(self, src: Arc<dyn JwtKeySource>) -> DiscoveryService
pub fn with_jwt_key_source(self, src: Arc<dyn JwtKeySource>) -> DiscoveryService
Set the JWT key source for client JWT verification.
Sourcepub fn with_auth_provider(
self,
provider: Box<dyn AuthorizationProvider>,
) -> DiscoveryService
pub fn with_auth_provider( self, provider: Box<dyn AuthorizationProvider>, ) -> DiscoveryService
Set the authorization provider for access control.
Sourcepub fn with_record_resolver(
self,
resolver: Arc<dyn RecordResolver>,
) -> DiscoveryService
pub fn with_record_resolver( self, resolver: Arc<dyn RecordResolver>, ) -> DiscoveryService
Set the record resolver backing getRecord/getRepo (#431).
Sourcepub fn attach_process_accepted_state_source(&mut self) -> Result<(), Error>
pub fn attach_process_accepted_state_source(&mut self) -> Result<(), Error>
Attach the process-pinned source to the Discovery daemon. The source was fixed and consumed before inventory factories were invoked.
Trait Implementations§
Source§impl DiscoveryHandler for DiscoveryService
impl DiscoveryHandler for DiscoveryService
Source§fn handle_query_candidates<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 QueryCandidatesRequest,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_query_candidates<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 QueryCandidatesRequest,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
#523 P0 / #524 — placement candidate query. The auto-generated dispatch
gate already ran a discovery:QueryCandidates/query authz check
before this handler was invoked; that only authorizes “may call
queryCandidates at all”. Each surviving candidate additionally gets its
own fail-closed placement:candidate:<did> check below (a denied node
is silently omitted, not surfaced as an error) — mirroring why
getRecord/getRepo layer a per-target check on top of the generic gate.
Pipeline: known node DIDs (placement directory) → hard-exclude any
without a live reportNodeLiveness entry (decision: absence/expiry is
exclusion, never a “stale” flag) → sync filter (label selectors AND,
resource requests AND) via scheduling::filter → per-candidate async
authz → rank (ascending load, DID tiebreak) via scheduling::rank →
bound to maxCandidates (or [DEFAULT_MAX_CANDIDATES] when 0).
totalMatching is the authorized-survivor count before the bound.
Source§fn handle_report_node_liveness<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 NodeLiveness,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_report_node_liveness<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 NodeLiveness,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
#524 P1 — node liveness heartbeat. The auto-generated dispatch gate
already ran a discovery:ReportNodeLiveness/write authz check before
this handler was invoked. Before accepting a DID-specific heartbeat,
additionally require write admission for that candidate. This prevents
an authorized caller from using arbitrary heartbeat DIDs to grow the
durable placement directory or trigger unbounded resolver work.
Re-inserting (heartbeating) an admitted node refreshes its TTL entry. The
first heartbeat seen for a DID this directory hasn’t ingested a
NodeRecord for yet may lazily trigger a repo poll. The bounded retry
gate records an attempt before resolver access, so absent/invalid/non-
node repos are retried only after [PLACEMENT_INGEST_RETRY_TTL]; a
failure there does not fail the admitted heartbeat itself.
Source§fn handle_list_services<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_list_services<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
listServices request.Source§fn handle_get_endpoints<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_get_endpoints<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
getEndpoints request.Source§fn handle_get_schema<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_get_schema<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
getSchema request.Source§fn handle_ping<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_ping<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
ping request.Source§fn handle_get_auth_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_get_auth_metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
getAuthMetadata request.Source§fn handle_prepare_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_prepare_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
prepareStream request.Source§fn handle_get_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_get_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
getStream request.Source§fn handle_list_streams<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_list_streams<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
listStreams request.Source§fn handle_announce<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 ServiceAnnouncement,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_announce<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 ServiceAnnouncement,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
announce request.Source§fn handle_register_entity_statement<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 RegisterEntityStatementRequest,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_register_entity_statement<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 RegisterEntityStatementRequest,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
registerEntityStatement request.Source§fn handle_get_entity_statement<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_get_entity_statement<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
getEntityStatement request.Source§fn handle_register_envelope_keyset<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 RegisterEnvelopeKeysetRequest,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_register_envelope_keyset<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 RegisterEnvelopeKeysetRequest,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
registerEnvelopeKeyset request.Source§fn handle_get_envelope_keyset<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_get_envelope_keyset<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
getEnvelopeKeyset request.Source§fn handle_list_known_issuers<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_list_known_issuers<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
listKnownIssuers request.Source§fn handle_get_record<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 GetRecordRequest,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_get_record<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
data: &'life2 GetRecordRequest,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
getRecord request.Source§fn handle_get_repo<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
value: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_get_repo<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
_request_id: u64,
value: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<DiscoveryResponseVariant, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
getRepo request.Source§impl RequestService for DiscoveryService
impl RequestService for DiscoveryService
Source§fn decode_request_body(
&self,
signed_body: &[u8],
) -> Result<DecodedRequestBody, Error>
fn decode_request_body( &self, signed_body: &[u8], ) -> Result<DecodedRequestBody, Error>
Source§fn handle_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
body: &'life2 DecodedRequestBody,
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, Option<Pin<Box<dyn Future<Output = ()>>>>), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
fn handle_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 EnvelopeContext,
body: &'life2 DecodedRequestBody,
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, Option<Pin<Box<dyn Future<Output = ()>>>>), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
DiscoveryService: 'async_trait,
Source§fn transport(&self) -> &TransportConfig
fn transport(&self) -> &TransportConfig
Source§fn signing_key(&self) -> SigningKey
fn signing_key(&self) -> SigningKey
Source§fn expected_audience(&self) -> Option<&str>
fn expected_audience(&self) -> Option<&str>
Source§fn jwt_key_source(&self) -> Option<Arc<dyn JwtKeySource>>
fn jwt_key_source(&self) -> Option<Arc<dyn JwtKeySource>>
Source§fn build_error_payload(&self, request_id: u64, error: &str) -> Vec<u8> ⓘ
fn build_error_payload(&self, request_id: u64, error: &str) -> Vec<u8> ⓘ
Source§fn producer_reach_config_handle(
&self,
) -> Option<Arc<RwLock<RawRwLock, ProducerReachConfig>>>
fn producer_reach_config_handle( &self, ) -> Option<Arc<RwLock<RawRwLock, ProducerReachConfig>>>
Source§fn moq_origin_handle(
&self,
) -> Option<Arc<RwLock<RawRwLock, Option<MoqStreamOrigin>>>>
fn moq_origin_handle( &self, ) -> Option<Arc<RwLock<RawRwLock, Option<MoqStreamOrigin>>>>
Source§fn pq_signing_key(&self) -> Option<SigningKey<MlDsa65>>
fn pq_signing_key(&self) -> Option<SigningKey<MlDsa65>>
None makes process_request fail closed
before dispatch; it never selects an EdDSA-only response. The matching ML-DSA-65 public key
must be anchored in the client’s PQ trust store for Hybrid verification
to succeed (peer attestation). Read moreSource§fn verifying_key(&self) -> VerifyingKey
fn verifying_key(&self) -> VerifyingKey
Source§fn delegated_user_audience(
&self,
_signer_pubkey: &[u8; 32],
_untrusted_aud: Option<&str>,
) -> Option<&str>
fn delegated_user_audience( &self, _signer_pubkey: &[u8; 32], _untrusted_aud: Option<&str>, ) -> Option<&str>
expected_audience instead.Source§fn accept_delegated_resource_leaf(
&self,
_ctx: &EnvelopeContext,
_body: &DecodedRequestBody,
) -> bool
fn accept_delegated_resource_leaf( &self, _ctx: &EnvelopeContext, _body: &DecodedRequestBody, ) -> bool
Source§fn require_cnf_binding(&self) -> bool
fn require_cnf_binding(&self) -> bool
cnf key binding (jwk or jkt). Read moreSource§fn credential_revocation_store(&self) -> Option<&dyn CredentialRevocationStore>
fn credential_revocation_store(&self) -> Option<&dyn CredentialRevocationStore>
Source§fn jwt_verify_policy(&self) -> CryptoPolicy
fn jwt_verify_policy(&self) -> CryptoPolicy
Source§fn resolve_key_subject(&self, signer_pubkey: &[u8; 32]) -> Option<Subject>
fn resolve_key_subject(&self, signer_pubkey: &[u8; 32]) -> Option<Subject>
Source§fn cache_key_binding(
&self,
_verifying_key: VerifyingKey,
_subject: &str,
_jwt: &str,
_expires_at: i64,
)
fn cache_key_binding( &self, _verifying_key: VerifyingKey, _subject: &str, _jwt: &str, _expires_at: i64, )
Source§fn accept_delegated_bearer(&self, _signer_pubkey: &[u8; 32]) -> bool
fn accept_delegated_bearer(&self, _signer_pubkey: &[u8; 32]) -> bool
Source§fn accept_deferred_federate_credential(&self) -> bool
fn accept_deferred_federate_credential(&self) -> bool
Source§fn admit_deferred_federate_request<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_body: &'life2 DecodedRequestBody,
_proof: &'life3 ParsedProof,
) -> Pin<Box<dyn Future<Output = Result<(VerifiedProof, [u8; 32], String, String, ProofReplayKey, u64), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn admit_deferred_federate_request<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_body: &'life2 DecodedRequestBody,
_proof: &'life3 ParsedProof,
) -> Pin<Box<dyn Future<Output = Result<(VerifiedProof, [u8; 32], String, String, ProofReplayKey, u64), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
commit_deferred_federate_request only after those gates pass.Source§fn commit_deferred_federate_request<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_resource: &'life2 str,
_operation: &'life3 str,
_replay_key: &'life4 ProofReplayKey,
_replay_expiry: u64,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
fn commit_deferred_federate_request<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_resource: &'life2 str,
_operation: &'life3 str,
_replay_key: &'life4 ProofReplayKey,
_replay_expiry: u64,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
Source§fn verify_internal_work_bearer<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_token: &'life2 str,
_protected: &'life3 ProtectedHeader,
) -> Pin<Box<dyn Future<Output = Result<InternalWorkClaims, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn verify_internal_work_bearer<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_ctx: &'life1 EnvelopeContext,
_token: &'life2 str,
_protected: &'life3 ProtectedHeader,
) -> Pin<Box<dyn Future<Output = Result<InternalWorkClaims, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
iw+jwt internal execution work order presented as the
direct JWT (single-service Model→Inference boundary, user-approved D5). Read moreSource§impl Resolver for DiscoveryService
impl Resolver for DiscoveryService
Source§fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
kind: SocketKind,
) -> Pin<Box<dyn Future<Output = Result<TransportConfig, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
kind: SocketKind,
) -> Pin<Box<dyn Future<Output = Result<TransportConfig, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
DiscoveryService: 'async_trait,
Auto Trait Implementations§
impl !Freeze for DiscoveryService
impl !RefUnwindSafe for DiscoveryService
impl Send for DiscoveryService
impl Sync for DiscoveryService
impl Unpin for DiscoveryService
impl UnsafeUnpin for DiscoveryService
impl !UnwindSafe for DiscoveryService
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