pub enum CapabilityFloorVerifyError {
RejectedByCryptoFloor {
floor: CapabilityCryptoFloor,
signature_algorithm: SigningAlgorithm,
},
AlgorithmMismatch {
declared: SigningAlgorithm,
actual: SigningAlgorithm,
},
Crypto(Error),
}Expand description
Errors raised by [CapabilityToken::verify_signature_with_floor].
Distinguishes floor-policy rejections from cryptographic verification
failures so the kernel can surface a different audit-log row for each.
Threat model row pq_signature_downgrade is the surface this guards.
Variants§
RejectedByCryptoFloor
The signature algorithm violates the configured crypto_floor.
Fail-closed at the floor boundary BEFORE cryptographic verification
runs. Threat model row pq_signature_downgrade is the surface this
guards.
Fields
floor: CapabilityCryptoFloorThe configured floor that rejected the token.
signature_algorithm: SigningAlgorithmThe signature algorithm carried by the token.
AlgorithmMismatch
The optional CapabilityToken::algorithm envelope field disagrees
with the algorithm carried by Signature. Treated as a downgrade
signal and rejected fail-closed.
Fields
declared: SigningAlgorithmThe algorithm declared in the envelope field.
actual: SigningAlgorithmThe algorithm carried by the signature material.
Crypto(Error)
Forwarded from the underlying canonical-JSON or signature verification path.
Trait Implementations§
Source§impl Debug for CapabilityFloorVerifyError
impl Debug for CapabilityFloorVerifyError
Source§impl Display for CapabilityFloorVerifyError
impl Display for CapabilityFloorVerifyError
Source§impl Error for CapabilityFloorVerifyError
impl Error for CapabilityFloorVerifyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()