forked from in-toto/in-toto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add -P/--password (and prompt) cli argument
- Add common CLI argument for 'in-toto-run' and 'in-toto-record' to optionally pass a password ('-P <password>') or open a prompt ('-P') for a password to decrypt a signing key passed with '--key'. - Add '--prompt' CLI argument for 'in-toto-sign' to optionally open a prompt for a password to decrypt signing keys passed with '--key'. Note: Since 'in-toto-sign' allows passing multiple keys at once, we only support the prompt option and not a '--password' option like above, also in order to keep the mostly internally used tool simple. Prior to this commit, the CLI tools always tried to first load the key as if it were unencrypted and, on error, opened a password prompt, assuming (but not knowing!) that the error was due to the key being encrypted, which is not ideal (see in-toto#80, and "explicit is better"). This commit makes the password handling more explicit and was motivated by a recent change of the securesystemslib key interface that gives us better control over the key decryption password. (secure-systems-lab/securesystemslib#288) Signed-off-by: Lukas Puehringer <[email protected]>
- Loading branch information
Showing
7 changed files
with
184 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.