Skip to content
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

add clean sub-command for deleting signature metadata from a given image #324

Merged
merged 1 commit into from
May 14, 2021
Merged

add clean sub-command for deleting signature metadata from a given image #324

merged 1 commit into from
May 14, 2021

Conversation

developer-guy
Copy link
Member

Signed-off-by: Batuhan Apaydın [email protected]

@dlorenc
Copy link
Member

dlorenc commented May 14, 2021

This is awesome! It looks like you're missing some license boilerplate, and I had one nit on the help text as a suggestion.

A test similar to this one would be awesome too: https://github.com/sigstore/cosign/blob/main/test/e2e_test.go#L63

You can sign an image, make sure it verifies, then clean, then make sure it doesn't verify. Let me know if that makes sense!

Copy link
Member

@dlorenc dlorenc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! One suggestion on help text :)

return &ffcli.Command{
Name: "clean",
ShortUsage: "cosign clean <image uri>",
ShortHelp: "Clean the sign metadata from an image",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ShortHelp: "Clean the sign metadata from an image",
ShortHelp: "Remove all signatures from an image",

Maybe this is more clear?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, sure 👍

@dlorenc
Copy link
Member

dlorenc commented May 14, 2021

Thanks @developer-guy !

@dlorenc dlorenc merged commit 8f24b6a into sigstore:main May 14, 2021
dekkagaijin referenced this pull request in dekkagaijin/cosign May 17, 2021
dekkagaijin pushed a commit that referenced this pull request May 17, 2021
dekkagaijin referenced this pull request in dekkagaijin/cosign May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants