Roadmap for cli tools: repo.py, client.py
See original GitHub issueDescription of issue or feature request:
Recently, several issues and some fixes related to the TUF command line tools repo.py
and script.py
have been brought forward: #873, #874, #876, #877, #878, #879, #880 and “Some comments on TUF…” on the mailinglist. These include concerns about the script names, unexpected behavior, missing TUF features, etc.
@awwad has pointed out that repo.py
and client.py
are mostly tutorial tools, useful to get familiar with TUF (see QUICKSTART.md
). Whereas an actual TUF integration will require direct use of the underlying libraries tuf.repository_tool
and tuf.client.updater
.
Given the recent GitHub and mailing list activity around these tool, we need to either clarify that these tools are purely for educational purpose, or develop them more actively so that they can actually used by an integrator.
Thanks, @cminyard and @lixuefeng2 for bringing this to our attention!
Current behavior:
The use of and plans for repo.py
and client.py
are unclear.
Expected behavior:
Decide to what extent repo.py
and client.py
should be enhanced, maintained, etc.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (10 by maintainers)
Top GitHub Comments
Thanks for chiming in, @trishankatdatadog and @cminyard! Here are my 2 cents.
yes! Let’s try to identify what parts, currently in
repo.py
/client.py
(or missing from it), should be inrepository_lib
orrepository_tool
, andclient.updater
respectively, e.g. "add this set of files to the repository as this role", etc. (see https://github.com/theupdateframework/tuf/pull/878#pullrequestreview-242216754 for related observations).yes. The cli script(s) could live in a separate repo, e.g.
tuf-cli
, along with related documentation. Ideally, all they do is parsing arguments and call into the corresponding library functions (similar to what we do in in-toto/in-toto#in_toto_run.py). I am also happy to reconsider using an alternative toargparse
. @trishankatdatadog, you seemed very fond ofclick
?Since the release of v1.0.0, python-tuf no longer provides
repo.py
andclient.py
cli tools.