Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add non-released tuf dependency (WIP) Install python-tuf from non-released revision to get improved VerificationResult. Revert when released!! NOTE: * Updated pyproject.toml manually (for pip install -e .) * Updated Pipfile via: ``` pipenv install git+https://github.com/theupdateframework/python-tuf@be55b87 ``` This also updated Pipfile.lock including all sorts of unrelated updates. * Updated requirements* files with `make requirements` See related #507 Signed-off-by: Lukas Puehringer <[email protected]> * Add alternative admin cli Added commands: - `rstuf admin2 ceremony` - `rstuf admin2 update` - `rstuf admin2 sign` Previous work, related discussion, and detailed reasons for the re-write can be found in #477 and #490. These PRs are superseded by this PR. Currently, the cli does not interact with the RSTUF API, but reads input data from files passed as cli arguments (update, sign) and optionally writes output data to file using the `--payload-out` option (ceremony, update, sign). Preliminary API integration can be found in #477. I suggest to re-implement this in a separate PR, as well as any presentation improvements discussed in #477. Signed-off-by: Lukas Puehringer <[email protected]> * Add test files for alternative cli * tests/files/pem: 3 test key pairs in standard pem/pkcs8/subjectPublicKeyInfo format copied from secure-systems-lab/securesystemslib@7952c3f (password is 'hunter2') * tests/files/root: exemplary root metadata, crafted manually * tests/files/payload: exemplary payload data, crafted using the new cli Signed-off-by: Lukas Puehringer <[email protected]> * Add tests for alternative admin cli Signed-off-by: Lukas Puehringer <[email protected]> * Minor refactor of _filter_root_verification_results Try simplify the filter logic. Signed-off-by: Lukas Puehringer <[email protected]> * admin2: rename -o, --payload-out to -s, --save Signed-off-by: Lukas Puehringer <[email protected]> * admin2: give user feedback about saving file Signed-off-by: Lukas Puehringer <[email protected]> * admin2 ceremony: remove targets base url Signed-off-by: Lukas Puehringer <[email protected]> * admin2 update: change default in threshold dialog Signed-off-by: Lukas Puehringer <[email protected]> * admin2: add key name prompt to online key dialog Signed-off-by: Lukas Puehringer <[email protected]> * admin2: warn if `-s` not provided Signed-off-by: Lukas Puehringer <[email protected]> * admin2 sign: raise if prev root is missing Signed-off-by: Lukas Puehringer <[email protected]> * admin2 sign: raise if already signed and add test calling the sign cli on fully signed metadata is a usage mistake. Raising instead of just exiting seems semantically correct (and makes testing easier) Signed-off-by: Lukas Puehringer <[email protected]> * admin2 ceremony: update api format Switch to new api format for ceremony cli payload result. Includes a minor dialog restructure and related helper refactor: The sections "Metadata expiration" and "Artifacts" in the dialog are replaced with an "Online role settings" section, which prompts for all online role expiries and bins numbers. The root expiry prompt is moved to a separate "Root expiry" section, even though it is still included with the online role settings payload. Signed-off-by: Lukas Puehringer <[email protected]> --------- Signed-off-by: Lukas Puehringer <[email protected]> Co-authored-by: Martin Vrachev <[email protected]>
- Loading branch information