pub enum ErrorData {
Show 18 variants
KeyInvalid {
reason: String,
},
StatementMalformed {
reason: String,
},
WrongKind {
expected: String,
actual: String,
},
WrongProject {
expected: String,
actual: String,
},
WrongInstall {
expected: String,
actual: String,
},
WrongChannel {
expected: String,
actual: String,
},
SignatureRefused {
signer: String,
reason: String,
},
Unsigned {
role: String,
},
Expired {
not_after: String,
},
Denied {
digest: String,
},
SignerListRefused {
version: u64,
reason: String,
},
SignerListMissing {
needed: u64,
current: u64,
},
SettingsInvalid {
reason: String,
},
SettingsUndecided {
reason: String,
},
TrustRootChanged {
accepted: String,
found: String,
},
LedgerRefused {
reason: String,
},
WorkloadRefused {
workload: String,
reason: String,
},
BodyRefused {
kind: String,
reason: String,
},
}Expand description
Why a statement, signer list, setting, ledger or workload was refused.
Every variant is a refusal an enforcer reports back to whoever sent the input, so none of them is internal.
Variants§
KeyInvalid
A key is not a valid ECDSA P-256 key in the expected encoding.
StatementMalformed
The bytes are not a well-formed signed statement.
WrongKind
The statement is of another kind than the one expected.
WrongProject
The statement names another project.
Fields
WrongInstall
The statement names another install, or none where one is required.
Fields
WrongChannel
A release is for another channel than the one setup pinned.
SignatureRefused
A signature does not verify, or names a signer that may not sign.
Unsigned
The statement carries no signature that counts.
Expired
The statement’s notAfter has passed.
Denied
The statement’s digest is on the signer list’s deny-list.
SignerListRefused
A signer list does not extend the trusted chain.
SignerListMissing
The statement was signed against a signer list version the enforcer has not been given.
SettingsInvalid
The signing settings setup wrote are malformed or contradict where they were found.
SettingsUndecided
Whether this install is protected can’t be decided from what the enforcer could read, so it runs nothing new.
TrustRootChanged
The install accepted signed state under one trust root and now finds another, or none. Only a local operator command resets it.
Fields
LedgerRefused
The install’s ledger is missing, malformed or forks from what this enforcer holds.
WorkloadRefused
A workload asked for something its signed release does not allow.
BodyRefused
A statement body breaks a rule of its kind.