-
Notifications
You must be signed in to change notification settings - Fork 546
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
Move "verify-manifest" into "verify". #527
Conversation
We'll keep both commands for now, but deprecate verify-manifest. Signed-off-by: Dan Lorenc <[email protected]>
Ref #437 |
Dan and I chatted about things offline, but I think we probably don't want to be adding any additional file scanning capabilities to Going forward, we want to prioritize ease of use for signature and attestation validation over all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, I just saw the previous comment 👍🏻 .
@dekkagaijin Please, could you disclosure more details about this new approach How would you verify Dockerfiles in the future using cosign ? |
allImgs = append(allImgs, args...) | ||
|
||
for _, f := range c.Files.slice { | ||
err := isExtensionAllowed(f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we distinguish the given file whether Dockerfile
in this function? Currently, isExtensionAllowed
only returns true in case given file is .yml
or .yaml
. In the flag description, since we pointed out that -f
flag accepts Dockerfile, we actually do not check here.
flagset.Var(&cmd.Files, "f", "files to validate (kubernetes manifests or Dockerfiles)")
Will we move the verify-dockerfile
into verify
command in the long term?
@hectorj2f I'm thinking that one would chain a utility to extract images from a dockerfile and feed them to cosign, e.g. |
@dekkagaijin Thanks for the explanation :). |
Closing, we went a different way here! |
We'll keep both commands for now, but deprecate verify-manifest.
Signed-off-by: Dan Lorenc [email protected]