awslabs / tough

Rust libraries and tools for using and generating TUF repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tuftool command to add multiple keys for a role

arnaldo2792 opened this issue · comments

Problem

Currently in tuftool, to add multiple keys to a role in the root.json file the user has to execute the same command per key they want to add, i. e. with 3 keys regardless of the role, the user has to execute:

tuftool root add-key <>.root.json <key> -r <role>
tuftool root add-key <>.root.json <key> -r <role>
tuftool root add-key <>.root.json <key> -r <role>

Proposal

Once #469 is merged, it should be possible to have a command as follows:

tuftool root add-key <>.root.json \
    -k <key> \
    -k <key> \
    -k <key> \
    -r <role>