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

keyless verify-blob? #676

Closed
caarlos0 opened this issue Sep 15, 2021 · 3 comments · Fixed by #895
Closed

keyless verify-blob? #676

caarlos0 opened this issue Sep 15, 2021 · 3 comments · Fixed by #895
Labels
question Further information is requested

Comments

@caarlos0
Copy link
Contributor

caarlos0 commented Sep 15, 2021

Question

I am able to keyless sign a blog with:

COSIGN_EXPERIMENTAL=1 cosign sign-blob Desktop/file.pdf

But I can't verify it, as it asks for a -key or -sk.

Also, it does not create the output file if I use something like:

COSIGN_EXPERIMENTAL=1 cosign sign-blob -output file.sig file.pdf 

Is it something planned to work in the future?
If not, maybe we shouldn't allow keyless signing a blob?
Maybe its just me doing something wrong? I don't see any mentions to blob in the KEYLESS.md file... and seems like the full design doc is not public, so I'm not sure 🤔

@caarlos0 caarlos0 added the question Further information is requested label Sep 15, 2021
@dlorenc
Copy link
Member

dlorenc commented Sep 15, 2021

Maybe its just me doing something wrong? I don't see any mentions to blob in the KEYLESS.md file... and seems like the full design doc is not public, so I'm not sure 🤔

The design doc should be public! You just have to join [email protected] I think...

It looks like this is missing from the docs, but there's a "-cert" flag you need to pass to verify a blob using the "keyless" flow right now (when you initially sign an object, you get a certificate from Fulcio, unfortunately you need to remember that certificate somewhere today).

That cert can be looked up from Rekor if you only have the artifact, so we can automate/document this too.

rgerganov pushed a commit to rgerganov/cosign that referenced this issue Oct 14, 2021
verify-blob takes one of pubkey, cert or sk

Signed-off-by: Radoslav Gerganov <[email protected]>
dlorenc pushed a commit that referenced this issue Oct 15, 2021
verify-blob takes one of pubkey, cert or sk

Signed-off-by: Radoslav Gerganov <[email protected]>
@DennisDenuto
Copy link
Contributor

DennisDenuto commented Oct 29, 2021

That cert can be looked up from Rekor if you only have the artifact, so we can automate/document this too.

Hey @dlorenc is there any plan to automate looking up the cert using rekor when running verify-blob? This would reduce the overhead of serving the cert somewhere trustworthy for folk to use when verifying.

@dlorenc
Copy link
Member

dlorenc commented Oct 29, 2021

I think we should do it! I don't have a plan to personally (just a bandwidth thing) but we can definitely help if someone wants to try and get it merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants