Skip to main content

Module policy

Module policy 

Source
Expand description

Policy service for authorization checks over ZMQ

Wraps PolicyManager and exposes it as a RequestService. Handlers are async and use .await directly (compatible with single-threaded runtime).

Structs§

DelegationEdge
The authenticated delegation edge presented to a DelegationEdgeAuthorizer. Every field is AUTHORITY-DERIVED, never caller-asserted: the actor is the verified RPC envelope subject/tenant, the source audience is the verified source credential’s aud, and the target is the validated requested audience. It carries no clearance, scope, or key — only the identity edge.
PolicyService
PrimaryGroup
A principal’s ACTIVE primary signer-suite record (frozen A §5): the EXPLICIT suite ID owned by the authoritative record plus its ordered raw component public keys, in suite-plan order. B recomputes the confirmation thumbprint over exactly [suite_id, ordered_component_keys] — it never infers the suite ID from the key count, so a wrong-suite enrollment B would accept but C would reject is caught here. Component 0 is the Ed25519 key (the cnf.jwk key).

Traits§

DelegationEdgeAuthorizer
Fail-closed authority deciding whether a derived AsOriginator delegation edge is a declared/allowed call edge (v16 §8.1). WS-E installs the generated, reviewed DispatchCallManifest implementation before E-ready / F activation; an uninstalled authorizer DENIES every edge — the exchange cannot mint.
PrimaryEnrollmentResolver
Fail-closed resolver of a principal’s AUTHORITATIVE, off-wire PRIMARY signer enrollment (frozen A §5/T1: principal/tenant/role/keys/epoch — never the wire cnf). A user/classical source credential’s cnf/hs_signer_suite is confirmed against THIS resolver, never self-derived from the same wire key it claims to bind. Uninstalled ⇒ every user primary denies (WS-C installs the real resolver over its enrollment store). Service primaries resolve against the enrollment manifest instead, so this seam governs only the user/classical case.