-
Notifications
You must be signed in to change notification settings - Fork 92
Description
What is the areas you would like to add the new feature to?
Notation CLI
Is your feature request related to a problem?
notation key delete can only remove the key from the signing key list and notation cert delete can only remove the self-signed certificate from the trust store. This is by design since Notation doesn't support signing with local keys and managing local keys.
Per discussion in #606 (comment) and another issue #604 , users want to delete the source key and certificate generated by notation cert generate-test in a convenient way.
What solution do you propose?
Providing a flag --cleanup to notation cert generate-test to allow users to delete the specified source key and certificate generated by notation cert generate-test. This flag is only used to delete the test key and self-signed certificate. The keys and certificates that are not generated by Notation will not be able to be deleted with this flag.
For example, delete a source key and cert generated by notation cert generate-test "wabbit-networks.io":
$ notation cert generate-test --cleanup wabbit-networks.io
Deleted <key_name> and <cert_name>
What alternatives have you considered?
N/A
Any additional context?
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status