feat(ngclient): require explicit bootstrap argument#2903
feat(ngclient): require explicit bootstrap argument#2903jku merged 2 commits intotheupdateframework:developfrom
Conversation
make bootstrap required and explicit: callers must pass bootstrap=<root_bytes> or bootstrap=None. also tighten docs, examples, and tests to reflect the explicit trust anchor choice. Signed-off-by: 1seal <security@1seal.org>
jku
left a comment
There was a problem hiding this comment.
This looks good to me, left a couple of suggestions. Let me know what you think.
|
removed the redundant root.json writes in tests where Updater(..., bootstrap=) is already passed (incl. test_updater_consistent_snapshot and other repository simulator tests). i kept the distinction for bootstrap=None: tests that require cached root still write it, and ‘no cache + bootstrap=None’ cases keep the cache absent. also renamed the INSTALLATION section to ‘Application deployment’ to clarify the context |
|
Did you forget to push the branch or do I misunderstand? |
|
yes, thanks for the reminder. removed the redundant root.json writes from test files that pass explicit bootstrap and renamed the INSTALLATION section to "Application deployment" as suggested |
|
apologies for the annoyingly long review cycles at the moment.
I can also fix these myself (and override DCO) but then we'll wait for another reviewer to have a look, let me know how you want to handle this. |
…cs section Signed-off-by: 1seal <security@1seal.org>
8104dd7 to
d5fa0b0
Compare
|
@jku i’ve addressed both points:
force-pushed the updated branch to the pr. let me know if you’d prefer i avoid force-pushes and send follow-up commits instead. |
Description of the changes being introduced by the pull request:
This PR makes the trust anchor choice explicit in tuf.ngclient.Updater().
Migration:
Tests:
Ref: GHSA-9pfj-pjv5-22gj