-
Notifications
You must be signed in to change notification settings - Fork 81
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
Snapshot contains root #603
Comments
Yeah - for context I think we stopped signing over the root at root version 2 with a go-tuf update. Then it remained because TUF requires persisting metadata files in the snapshot, and that included the root.json at the time. |
The way to "reset" snapshot contents is to do it while changing snapshot keys (because now the old snapshot is no longer signed by valid keys so clients should not use it for persistence checks)... A reset like that could obviously have interop issues (if clients disagree on how it actually happens) so not something to do too hastily but it's something to maybe plan for when snapshot keys are next rotated? |
We have done this before, but the go-tuf binary doesn't actually clear this (i thought it would when we rotated keys I think in v5, but it did not alas) But I agree - we should stage this next time we rotate snapshot keys. |
@jku this will be resolved when we switch to tuf-on-ci, yea? |
@haydentherapper yes, see an example here from Sigstage: https://tuf-repo-cdn.sigstage.dev/6.snapshot.json |
I think staging does not prove anything (it never had root listed in snapshot as far as I know).
|
Either I'm missing the question or I'm not understanding something, but I think tuf-on-ci only adds target infos into the snapshot: https://github.com/theupdateframework/python-tuf/blob/develop/tuf/repository/_repository.py#L192 called from here https://github.com/theupdateframework/tuf-on-ci/blob/main/repo/tuf_on_ci/online_sign.py#L52 If the root meta is stored in the snapshot file, is that updated in a different part of the code? |
@jku clarified in slack: the old version of root would remain in the snapshot file, but no new would be added. |
Also, the root.json included in snapshot.json is very old: https://tuf-repo-cdn.sigstore.dev/132.snapshot.json it's version 2, which expired two years ago. |
Yea, this issue was just about TUF specification conformance, that currently |
documenting current status:
I think this is not a very important task to do
|
Description
The snapshot currently signs over the root here. A TUF TAP specifies that the snapshot no longer needs to sign over the root.
cc @asraa
The text was updated successfully, but these errors were encountered: