Skip to content

Search target in delegations#9

Open
lebauce wants to merge 6 commits into
masterfrom
lebauce/look-target-in-delegations
Open

Search target in delegations#9
lebauce wants to merge 6 commits into
masterfrom
lebauce/look-target-in-delegations

Conversation

@lebauce
Copy link
Copy Markdown
Collaborator

@lebauce lebauce commented Jul 30, 2021

No description provided.

@lebauce lebauce force-pushed the lebauce/look-target-in-delegations branch from 4c6d877 to d78c1df Compare July 30, 2021 13:53
@lebauce lebauce requested a review from raphaelgavache August 26, 2021 16:21
@lebauce lebauce force-pushed the lebauce/look-target-in-delegations branch from d78c1df to c8de40f Compare September 3, 2021 11:29
@lebauce lebauce force-pushed the lebauce/look-target-in-delegations branch from c8de40f to 2f9ec91 Compare September 3, 2021 11:40
arbll pushed a commit that referenced this pull request Oct 5, 2021
* Add delegation client

* Add TUF3 php test

* Use ioutil for go 1.15

* Add more delegations tests

* Cleanups

* Check new paths

* Add suggestion

* Add struct tags

* Add tags and remove duplicate types

* Formatting

* Fix order of asserts (should be want, got)

* Clean up DelegatedRole validation

* Fix root to top targets delegation

* July 14 changes (#4)

* Clarify validation of signing role & metadata type

* Add/update comments

* Validation happens on both decode & encode

* Bubble up an error if MatchesPath is called on an invalid DelegatedRole

* Match spec for delegation traversal

* Comment in the iterator

* Add diamond test case

* Revert "Match spec for delegation traversal"

This reverts commit 15fee6b.

* Rename IsTopLevelRole back to ValidRole to avoid breaking change

* Update after reviews

* Add back lower case check

* Initialize with size and comment

* Simplify iterator initialization

* Revert back to "nodes seen" interpretation of delegation traversal spec (#6)

(instead of true cycle detection with "edges seen").

This reverts commit cfbb024.

* Update client/delegations.go

Co-authored-by: Ethan Lowman <53835328+ethan-lowman-dd@users.noreply.github.com>

* Update following reviews of 16th of july (#7)

* Update name

* Rename file to target

* Nits

* Move verifier in iterator and rename fields

* Add tests

* Update after 19th july review (#9)

* Update delegations to err on top level role

* Add simple cycle test

* Remove duplicate check

* Fix comment

* Update comment

Co-authored-by: Ethan Lowman <ethan.lowman@datadoghq.com>
Co-authored-by: Ethan Lowman <53835328+ethan-lowman-dd@users.noreply.github.com>
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