Skip to content

Support clean up the source key and certificate generated by Notation #647

@FeynmanZhou

Description

@FeynmanZhou

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

enhancementNew feature or requestspec requiredSpecification is required for the issuev2Things belongs to version 2.x

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions