-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signer: Improved the "file-based signer" #617
Comments
I no longer remember if CryptoSigner is the best place, but we should have a nice file-based signer (a signer that reads private keys from a file) in securesystemslib:
TODO:
|
An existing FileNameSigner with usage context can be found in RSTUF. The implementation can be copy-pasted to securesystemslib with little change:
|
Currently, FileNameSigner subclasses CryptoSigner to make use of its The signer API, however, is not designed to separate the two tasks and all other signers, so far, are clearly characterised by both their sign and from_priv_key_uri methods together. For the sake of a simple consistent interface, and given that file-based signing should be an edge case, I suggest we keep CryptoSigner only and update its from_priv_key_uri to behave like FileNameSigner. This still allows applications to subclass CryptoSigner for its sign method, and implement their own from_priv_key_uri. |
this might not be ready today but I'll handle it |
Addressed in #759 |
Originally posted by @jku in #604 (comment)
NOTE: Adopt in docs/CRYPTO_SIGNER.md (remove signer registration)
The text was updated successfully, but these errors were encountered: