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§
- Delegation
Edge - 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’saud, and the target is the validated requested audience. It carries no clearance, scope, or key — only the identity edge. - Policy
Service - Primary
Group - 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 (thecnf.jwkkey).
Traits§
- Delegation
Edge Authorizer - Fail-closed authority deciding whether a derived
AsOriginatordelegation edge is a declared/allowed call edge (v16 §8.1). WS-E installs the generated, reviewedDispatchCallManifestimplementation before E-ready / F activation; an uninstalled authorizer DENIES every edge — the exchange cannot mint. - Primary
Enrollment Resolver - 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’scnf/hs_signer_suiteis 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.