Repository navigation
draft-05, part 1 - #70
Conversation
|
Moi @mythi, thanks for for the draft update.
We currently do not have an AI policy, but generally accept them. If there is significant assistance by AI, contributors started to add |
|
@THS-on thanks, good to know. I updated the PR with |
|
I've moved this ready for review. This uses CBOR keys 1014 and 1015 for ear_endorser_claims and ear_reference_value_provider_claims that were not in the spec but later fixed in the repo due to keys conflict. |
| return Err(Error::ValidationError("empty profile".to_string())); | ||
| } | ||
|
|
||
| if self.profile == EAR_PROFILE { |
There was a problem hiding this comment.
If would be more correct to parse the revision out of the profile URI fragment, and condition this on revision >= 5.
The appraisal ear_status must be of no higher trust than the worst claim in its trustworthiness vector, as draft -04 requires. Check this for each submod when serializing and when parsing, as is already done for the overall status. The check is skipped for a none status, which makes no claim. EARs that break this rule no longer parse. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Add the EAR-appraisal claims introduced by draft-ietf-rats-ear-05: - ear_status_details (1010): reasons for the value of ear_status; - ear_trustworthiness_vector_details (1011): reasons for the values of trustworthiness vector categories, keyed by category name in JSON and by the category's integer label in CBOR. Each key must be a category present in ear_trustworthiness_vector; - ear_endorser_claims (1014) and ear_reference_value_provider_claims (1015): claims with Endorser and Reference Value Provider authority, keyed by the supply chain entity that asserted them. As for the existing claims, present but empty values are rejected. BREAKING CHANGE: Appraisal has new public fields: status_details, trust_vector_details, endorser_claims and reference_value_provider_claims, so code that builds an Appraisal as a struct literal no longer compiles. Serialized output is unchanged unless the new fields are set. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Add the incomplete trust tier (127) and the top-level ear_status_details claim, and move EAR_PROFILE to veraison#5. As in draft-ietf-rats-ar4si-11, which draft -05 references, the claim values 1 (unexpected evidence) and -1 (verifier malfunction) are now in the incomplete tier rather than in none. Neither draft orders incomplete relative to contraindicated; it orders last here, as the least trustworthy tier. Draft -05 forbids a none status. New appraisals still start as none, meaning not set yet, and update_status_from_trust_vector() ignores claims in the none tier, giving incomplete if no claim has another tier. Both serializing (and so signing) and parsing reject a none status, so each appraisal's status must be set before serializing. EARs of earlier drafts are not handled separately. BREAKING CHANGE: Ear has a new status_details field, claim values 1 and -1 make the status incomplete, and EARs with a none status can no longer be serialized or parsed, whatever the profile, so an appraisal whose status was never set now fails to serialize. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Add the optional top-level ear_input_digest claim (1008). It binds the EAR to the exact appraisal request input. The value is a new Digest type, [alg, val], with val as base64url in JSON and as bytes in CBOR. Also test that unknown claims are ignored in JSON and in CBOR appraisals. BREAKING CHANGE: Ear has a new input_digest field. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Migration towards draft-05. Do you accept AI assisted contributions?