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

fix: fix targets removal so it doesn't interfere with delegations #414

Merged
merged 2 commits into from
Sep 28, 2022

Conversation

asraa
Copy link
Contributor

@asraa asraa commented Sep 28, 2022

Signed-off-by: Asra Ali asraa@google.com

As a bypass for theupdateframework/go-tuf#400: which describes that repo.RemoveTargetsWithExpires removes the targets from ALL roles, including delegations.

Because of this, we removed rekor.0.pub from the top-level targets AND the rekor delegation, staging a new version of the delegate where we did not mean to.

This was noted in @joshuagl 's review: #410 (review)

Note: we have an e2e regression test for target rotation covered.

Summary

Release Note

Documentation

Signed-off-by: Asra Ali <asraa@google.com>
@asraa
Copy link
Contributor Author

asraa commented Sep 28, 2022

Note: we should use this change: otherwise staging the metadata file but not utilizing/signing it will cause a failure in snapshotting. Unless we manually delete. But I'd rather not make manual changes to repository creation.

joshuagl
joshuagl previously approved these changes Sep 28, 2022
Copy link
Member

@joshuagl joshuagl left a comment

Choose a reason for hiding this comment

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

Note: we should use this change: otherwise staging the metadata file but not utilizing/signing it will cause a failure in snapshotting. Unless we manually delete. But I'd rather not make manual changes to repository creation.

Completely agree with this position.

LGTM

cmd/tuf/app/init.go Show resolved Hide resolved
@asraa asraa mentioned this pull request Sep 28, 2022
Signed-off-by: Asra Ali <asraa@google.com>
@asraa asraa merged commit 9be8aa3 into sigstore:main Sep 28, 2022
@asraa asraa mentioned this pull request Oct 3, 2022
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