-
Notifications
You must be signed in to change notification settings - Fork 5
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
refactor key test #86
Conversation
AdamKorcz
commented
Jul 27, 2024
•
edited
Loading
edited
- Add comments
- Make it explicit that two identical public keys break the update.
Signed-off-by: Adam Korczynski <[email protected]>
Signed-off-by: Adam Korczynski <[email protected]>
cca79e6
to
9a38773
Compare
@jku Could you take a look at this? Python-tuf succeeds and go-tuf fails because a key that root MD has for snapshot does not exist in the snapshot md. |
I think the the practical issue is this (but would have to check the repository metadata dumps to verify):
The more higher level question is how should duplicate keys be tested:
the second option is easier to test but first option would be correct if spec is not super clear about the correct action. |
Spec does not seem to define the correct action here. I think this is an interesting case to test but I believe it is not the case described in the test description . To fix this test to be as described, instead of generating a new signer and adding the keyid to the keyids list you could:
|
I've filed #144 for the keyid-without-key case: this test can now be fixed I think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
marking request changes, see previous comments
I believe we have tests that cover what I suggested in last comment (see e.g. test_duplicate_keys and many subtests in test_updater_key_rotations.py. I'm closing this. |