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 flag for manually specifying a hash algo when verifying #1071

Merged
merged 1 commit into from
Nov 21, 2021

Commits on Nov 19, 2021

  1. Add flag for manually specifying a hash algo when verifying

    While, at the time of writing, it's not possible to manually specify the
    signature digest algorithm which should be used when signing an image,
    some KMS providers have key types which force a digest algorithm which
    isn't sha256; e.g. GCP KMS with RSA4096 / SHA512 keys.
    
    Cosign will happily use these keys for signing and will infer the digest
    algorithm based on what the KMS provider mandates, leading to a
    situation where cosign generates signatures it can't verify.
    
    This commit adds a new flag which allows the user to manually specify
    one of 4 commonly-used secure hashes when using `cosign verify`
    
    Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
    SgtCoDFish committed Nov 19, 2021
    Configuration menu
    Copy the full SHA
    bc75f0e View commit details
    Browse the repository at this point in the history