Skip to content

Re-design TAP 15 metadata format - #154

Merged
mnm678 merged 11 commits into
theupdateframework:masterfrom
mnm678:tap15-format
May 30, 2022
Merged

mnm678 merged 11 commits into
theupdateframework:masterfrom
mnm678:tap15-format

Conversation

@mnm678

@mnm678 mnm678 commented May 4, 2022

Copy link
Copy Markdown
Contributor

Address some discussion from #132 by moving succinct hashed bin delegations to a new object within delegations.

In this version I opted to keep path_hash_prefixes, although I added a note that this field may be removed later backwards-incompatible way.

For simplicity, this change states that only one of succinct_roles or roles may be included. This seems to cover the most common use cases. Users with less common use cases could set up a complicated delegation tree if they would like to combine namespaced delegations and succinct hashed bin delegations, but it can't be done in the same delegation.

cc @jku @MVrachev @JustinCappos @trishankatdatadog @lukpueh

@JustinCappos

Copy link
Copy Markdown
Member

I think it is worth being explicit about how a maintainer would get the same functionality as supporting allowing succinct hash delegations within a single targets file.

@jku jku left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this looks about right to me. Martin is working on a prototype I believe so we should get some implementation comments soon.

Comment thread tap15.md Resolved
mnm678 added 2 commits May 5, 2022 15:57
Intermediate roles can be used to delegate to both
roles and succinct_roles

Signed-off-by: Marina Moore <[email protected]>
The delegating role may chose this property

Signed-off-by: Marina Moore <[email protected]>
@MVrachev

MVrachev commented May 9, 2022

Copy link
Copy Markdown
Contributor

this looks about right to me. Martin is working on a prototype I believe so we should get some implementation comments soon.

I have implemented the prototype and left a comment about it here: theupdateframework/python-tuf#1943 (comment).

mnm678 added 3 commits May 13, 2022 15:35
Avoid overloading the term prefix in this TAP by changing the
name of this field

Signed-off-by: Marina Moore <[email protected]>
explain how succinct roles can be made terminating,
even without adding the additional field

Signed-off-by: Marina Moore <[email protected]>
@mnm678

mnm678 commented May 13, 2022

Copy link
Copy Markdown
Contributor Author

@MVrachev @jku @lukpueh

I updated the TAP per our discussion today to change prefix_bit_length to bit_length and clarify a few things.

Comment thread tap15.md Resolved

@MVrachev MVrachev 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.

There was a discussion about TAP 15 where everyone interested was invited.
The attendees were the TAP author - @mnm678, @jku, @lukpueh, @abs007 and me.
During the meeting it was decided the following:

  1. Succinct hash delegation and roles would be separated. roles will only be responsible for standard roles and no succinct hash delegations.
  2. As a result of the first point keyids and threshold attributes were added to succinct hash delegation.
  3. Succinct hash delegations and standard roles (the roles attribute) should not exist together in one delegations object.
  4. Only one succinct hash delegation must exist.
  5. There are a couple of renames that we agreed on:
  • succinct_hash_delegations → succinct_roles
  • delegation_hash_prefix_len -> bit_length
  • bin_name_prefix → name_prefix

Comment thread tap15.md Resolved
Comment thread tap15.md Resolved
Comment thread tap15.md Resolved
mnm678 and others added 2 commits May 16, 2022 13:28
Co-authored-by: Martin Vrachev <[email protected]>
Co-authored-by: Martin Vrachev <[email protected]>
joshuagl
joshuagl previously approved these changes May 19, 2022

@joshuagl joshuagl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Big thanks to everyone involved in this effort. It's awesome to see the TAP evolve based on an effort to implement.

Succinct hashed bin delegations now look much easier to implement and much easier to recognise in metadata. 🎉

Comment thread tap15.md Resolved
Comment thread tap15.md Resolved
joshuagl
joshuagl previously approved these changes May 23, 2022
lukpueh
lukpueh previously approved these changes May 25, 2022

@lukpueh lukpueh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM modulo one minor formatting/consistency nit and a metadata example issue that could be addressed in a follow-up PR.

Comment thread tap15.md Resolved
Comment thread tap15.md Resolved
Co-authored-by: Lukas Pühringer <[email protected]>
@mnm678
mnm678 dismissed stale reviews from lukpueh and joshuagl via 348d82d May 27, 2022 15:49
@mnm678
mnm678 requested review from joshuagl and lukpueh May 27, 2022 15:58
@mnm678
mnm678 merged commit 279dca4 into theupdateframework:master May 30, 2022
@mnm678
mnm678 deleted the tap15-format branch March 1, 2023 15:16
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