You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intended on validating that the client will fail with the old root key did not sign the new root. It currently passes on a correct error. The error is due to an invalid signature on the new root:
BUT! Critically: this was the NEW added key. The old key did sign the new root. And because it's also part of the new root's trusted root keys, that single signature suffices the update.
In reality, this was a VALID update, because the threshold is 1, and the old key correctly signed both the old and new root.
In order to fix, note that
the testcase client/testdata/Published2Times_keyrotated_invalidNewRootSignature is actually the one testing tampering of the old root signature.
this testcase should have revoked the old key.
The text was updated successfully, but these errors were encountered:
Blocks #370
The client test:
go-tuf/client/client_test.go
Line 520 in 3890c1e
intended on validating that the client will fail with the old root key did not sign the new root. It currently passes on a correct error. The error is due to an invalid signature on the new root:
BUT! Critically: this was the NEW added key. The old key did sign the new root. And because it's also part of the new root's trusted root keys, that single signature suffices the update.
In reality, this was a VALID update, because the threshold is 1, and the old key correctly signed both the old and new root.
In order to fix, note that
client/testdata/Published2Times_keyrotated_invalidNewRootSignature
is actually the one testing tampering of the old root signature.The text was updated successfully, but these errors were encountered: