pub enum SecurityContractViolation {
Show 15 variants
InvalidIdentifier {
rule: SecurityIdentifierRule,
},
EmptySecretMaterial,
BootstrapProfileRequired,
UnknownSecurityProfile,
BootstrapEnvironmentEncoding,
BootstrapMaterialRequired {
material: SecurityBootstrapMaterial,
},
BootstrapMaterialNotRegularFile {
material: SecurityBootstrapMaterial,
},
BootstrapMaterialEmpty {
material: SecurityBootstrapMaterial,
},
SecretProviderRequired,
SecretProviderUnsupported,
DevelopmentListenerNotLoopback,
ProviderConfigurationInvalid,
SecretStoragePermissionsInsecure,
SigningProviderRequired,
MaintenancePolicy {
rule: MaintenancePolicyRule,
},
}Expand description
Deterministic violation of a security input, configuration, or policy contract.
Variants contain only closed identifiers. Secret values, paths, principals, provider identifiers, and arbitrary reason strings are deliberately absent.
Variants§
InvalidIdentifier
A provider identifier or logical secret name is invalid.
Fields
rule: SecurityIdentifierRuleThe violated identifier rule.
EmptySecretMaterial
Secret material is empty.
BootstrapProfileRequired
Bootstrap fields were configured without selecting a profile.
UnknownSecurityProfile
A configured security profile is unknown.
BootstrapEnvironmentEncoding
A bootstrap environment value is not valid Unicode.
BootstrapMaterialRequired
Required bootstrap material was not configured.
Fields
material: SecurityBootstrapMaterialThe missing material class.
BootstrapMaterialNotRegularFile
Configured bootstrap material is not a regular file.
Fields
material: SecurityBootstrapMaterialThe invalid material class.
BootstrapMaterialEmpty
Configured bootstrap material is empty.
Fields
material: SecurityBootstrapMaterialThe empty material class.
SecretProviderRequired
Secure bootstrap has no configured secret provider.
SecretProviderUnsupported
The configured secret-provider capability is unsupported.
DevelopmentListenerNotLoopback
An insecure development profile was configured with a non-loopback listener.
ProviderConfigurationInvalid
Provider configuration violates a closed contract.
SecretStoragePermissionsInsecure
Secret storage permissions are not owner-only.
SigningProviderRequired
Secure transport was configured without a signing provider.
MaintenancePolicy
A maintenance policy violates a closed semantic rule.
Fields
rule: MaintenancePolicyRuleThe violated maintenance-policy rule.
Trait Implementations§
Source§impl Clone for SecurityContractViolation
impl Clone for SecurityContractViolation
impl Copy for SecurityContractViolation
Source§impl Debug for SecurityContractViolation
impl Debug for SecurityContractViolation
Source§impl Display for SecurityContractViolation
impl Display for SecurityContractViolation
impl Eq for SecurityContractViolation
Source§impl Error for SecurityContractViolation
impl Error for SecurityContractViolation
1.30.0 · 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()