Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert endorsement and reference triple records to original #268

Merged
merged 24 commits into from
Sep 25, 2024

Conversation

nedmsmith
Copy link
Collaborator

This PR reverts endorsement-triple-record and reference-triple-record to original CDDL by adding array brackets around measurement-map to allow multiplicity of measurements for a given environment.

The Measurements and Measurement Keys sections are updated to better describe measurement multiplicity and disambiguation of measurement values.

created compatibility cddl and examples to test that demonstrate how to resolve incompatibilities between TCG and IETF corim schemas
The reference-triple-record and endorsed-triple-record are changed to allow multiple measurement-map measurements per environment.
Updated description of measurement keys and measurements sections to reflect multiplicity of same type measurements for a given environment.
Examples are updated to include array brackets around measurement-map in the reference and endorsement triple record.
draft-ietf-rats-corim.md Outdated Show resolved Hide resolved
draft-ietf-rats-corim.md Outdated Show resolved Hide resolved
@deeglaze
Copy link
Collaborator

deeglaze commented Sep 12, 2024

The matching semantics wording needs to be updated to say that all measurement-maps have to match the ACS for the triple to apply.

Edit: The text in the corroboration section is not clear about this. It indeed seems like it could be an OR semantics given

Reference Values may describe multiple acceptable states for Attesters; hence "matching" determines that Evidence (contained in the ACS) satisfies an appropriate subset of the available Reference Values.

The text "where the reference-triple-record takes the place of a stateful-environment-record." is no longer the case since you haven't changed stateful-environment-record to have measurement-map multiplicity.

Updated corroboration section 8.3 (sorry Thomas) and ECT internal representation section 8.1 to account for making Claims a multi-valued attribute of an ECT.
@nedmsmith
Copy link
Collaborator Author

I modified Section 8.1 which defines the ECT structure, to reflect that claims-map always has multiplicity and to tweak naming to better reflect the idea that measurements can have "element IDs".

I also modified the corroboration section (sorry Thomas) to better reflect the matching logic in terms of the internal representation. The before text was blending internal and external representation naming.

draft-ietf-rats-corim.md Outdated Show resolved Hide resolved
draft-ietf-rats-corim.md Outdated Show resolved Hide resolved
Co-authored-by: Dionna Amalie Glaze <dionnaglaze@google.com>
draft-ietf-rats-corim.md Outdated Show resolved Hide resolved
draft-ietf-rats-corim.md Outdated Show resolved Hide resolved
@nedmsmith nedmsmith mentioned this pull request Sep 17, 2024
@nedmsmith
Copy link
Collaborator Author

See issue #266

Signed-off-by: Yogesh Deshpande <yogesh.deshpande@arm.com>
@yogeshbdeshpande
Copy link
Collaborator

We still need to work on other triples involving measurement-values-map

nedmsmith and others added 2 commits September 18, 2024 15:53
Corroboration text more clearly describes the process in terms of internal representations.
Copy link
Collaborator

@yogeshbdeshpande yogeshbdeshpande left a comment

Choose a reason for hiding this comment

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

Some editorial comments but in general LGTM!

Changed wording from identical to match as identical seems too strong.
Updated ECT prose to better match CDDL naming anticipated in PR #284
thomas-fossati added a commit that referenced this pull request Sep 19, 2024
Signed-off-by: Thomas Fossati <thomas.fossati@linaro.org>
nedmsmith and others added 2 commits September 19, 2024 17:00
Phase 1 Input transformation sections for reference and simple endorsement were fleshed out.
Section in phase 3 describing corroboration was tightened ups.
Phase 4 section on simple endorsement processing was fixed to use internal representation.
Added notes to other sections in phase 4 that still require modification.
Signed-off-by: Yogesh Deshpande <yogesh.deshpande@arm.com>
Copy link
Collaborator

@yogeshbdeshpande yogeshbdeshpande left a comment

Choose a reason for hiding this comment

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

LGTM!

Is it a convention for this document to surround cross references in parens?

Co-authored-by: Thomas Fossati <thomas.fossati@linaro.org>
Co-authored-by: Thomas Fossati <thomas.fossati@linaro.org>
Improved formatting, added parens around cross-references and added issues pointers for missing content.
@yogeshbdeshpande
Copy link
Collaborator

@nedmsmith @thomas-fossati @deeglaze Thank you all for a great team effort, this PR is now in a pretty good shape, to be merged. We are happy and open to discuss the impact on Conditional Endorsed and Conditional Series triple. I have done some analysis which I will share in the github issue already created!

@andrew-draper : Awaiting your analysis, as discussed earlier, however I understand, there are ways to improve conditional triples, orthogonal to this discussion hence we should merge this change, given all the collective hard work from CoRIM Team.

@henkbirkholz : please review as well, your feedback is also super-important!

Copy link
Collaborator

@andrew-draper andrew-draper left a comment

Choose a reason for hiding this comment

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

I still think this is incomplete, but we have a direction for fixing the missing parts in future changes, so I think it is ok to check in this change.

@thomas-fossati thomas-fossati merged commit 10dd89d into main Sep 25, 2024
2 checks passed
@thomas-fossati thomas-fossati deleted the tcg-compatible branch September 25, 2024 14:33
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.

6 participants