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.
runlib: add signer kwarg to run and record methods
Adds optional signer (`securesystemslib.signer.Signer`) arg to runlib's run/record functions, as alternative way of signing resulting link metadata, instead of using signing_key, gpg_keyid, or use_default_gpg. A deprecation warning is added for `signing_key` only, because `signer` can be used as backwards compatible replacement, and the patch is part of a series of patches to prepare for the planned removal of securesystemslib legacy modules `interface` and `keys`, needed by `signing_key`. gpg related arguments are not yet deprecated, as the related implementation in the securesystemslib Signer API is not compatible (it uses a different public key metadata format). Note: The patch aims to be minimally invasive, and thus barely refactors any of the existing signing argument handling in the relevant functions. Although, it was tempting to simplify the code, it turned out harder than thought, and therefor not worth the effort, given that these arguments are bound to deprecation. Closes in-toto#532 Signed-off-by: Lukas Puehringer <[email protected]>
- Loading branch information
Showing
2 changed files
with
188 additions
and
30 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