Repository navigation
Re-design TAP 15 metadata format - #154
Conversation
Signed-off-by: Marina Moore <[email protected]>
|
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
left a comment
There was a problem hiding this comment.
this looks about right to me. Martin is working on a prototype I believe so we should get some implementation comments soon.
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]>
I have implemented the prototype and left a comment about it here: theupdateframework/python-tuf#1943 (comment). |
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]>
Signed-off-by: Marina Moore <[email protected]>
There was a problem hiding this comment.
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:
- Succinct hash delegation and
roleswould be separated.roleswill only be responsible for standard roles and no succinct hash delegations. - As a result of the first point
keyidsandthresholdattributes were added to succinct hash delegation. - Succinct hash delegations and standard roles (the
rolesattribute) should not exist together in one delegations object. - Only one succinct hash delegation must exist.
- There are a couple of renames that we agreed on:
succinct_hash_delegations→succinct_rolesdelegation_hash_prefix_len->bit_lengthbin_name_prefix→name_prefix
Co-authored-by: Martin Vrachev <[email protected]>
Co-authored-by: Martin Vrachev <[email protected]>
joshuagl
left a comment
There was a problem hiding this comment.
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. 🎉
Co-authored-by: Joshua Lock <[email protected]>
lukpueh
left a comment
There was a problem hiding this comment.
LGTM modulo one minor formatting/consistency nit and a metadata example issue that could be addressed in a follow-up PR.
Co-authored-by: Lukas Pühringer <[email protected]>
Signed-off-by: Marina Moore <[email protected]>
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_rolesorrolesmay 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