Expand description
Scoped certificate delegation templates.
When a parent cert delegates bounded authority to a child cert, the child can issue/sign artifacts only within the delegated scope. This crate provides the scope types and validation logic.
Example: OIML CNML Manufacturer Model Cert delegates to manufacturer the right to issue Instance Certs for a specific instrument model only.
See TODO.roadmap/32-cert-delegation-cms-xmldsig.md for the full spec.
Structs§
- Delegation
Scope - The full scope of a delegated authority.
- Delegation
Validation - Result of a delegation validation.
- Encrypt
Spec - Spec for
Encryptoperations. - Sign
Cert Spec - Spec for
SignCertoperations. - Sign
DocSpec - Spec for
SignDocumentoperations. - Threshold
Sign Spec - Spec for
ThresholdSignoperations.
Enums§
- Constraint
- A constraint on delegated authority.
- Denial
Reason - Why an operation was denied.
- Operation
- An operation that a delegated child cert is authorized to perform.
- Scope
Value - A scope value extracted from a child artifact, checked against constraints.
- Signature
Format - Permitted signature format.
Functions§
- validate_
delegation - Validate whether
proposed_operationis permitted underscope, given theactual_valuesthat apply.