Skip to content

draft-05, part 1 - #70

Merged
setrofim merged 4 commits into
veraison:mainfrom
mythi:v5-1
Dec 3, 2026
Merged

setrofim merged 4 commits into
veraison:mainfrom
mythi:v5-1

Conversation

@mythi

@mythi mythi commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Migration towards draft-05. Do you accept AI assisted contributions?

@THS-on

THS-on commented Nov 6, 2026

Copy link
Copy Markdown
Member

Moi @mythi, thanks for for the draft update.

Do you accept AI assisted contributions?

We currently do not have an AI policy, but generally accept them. If there is significant assistance by AI, contributors started to add Assisted-by: <model>. See for example the commits from this PR: veraison/services#434

@mythi

mythi commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@THS-on thanks, good to know. I updated the PR with Assisted-by tags. I'm cross-checking a couple of things related to ear status still before making this ready for review.

@mythi
mythi marked this pull request as ready for review November 13, 2026 13:02
@mythi
mythi requested a review from a team as a code owner November 13, 2026 13:02
@mythi

mythi commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

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.

Comment thread src/ear/mod.rs Resolved
Comment thread src/ear/mod.rs Outdated
return Err(Error::ValidationError("empty profile".to_string()));
}

if self.profile == EAR_PROFILE {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If would be more correct to parse the revision out of the profile URI fragment, and condition this on revision >= 5.

Comment thread src/ear/mod.rs Resolved
mythi added 4 commits December 3, 2026 18:04
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>

@setrofim setrofim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@setrofim
setrofim merged commit ba8ecdf into veraison:main Dec 3, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants