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

Is it possible to skip TUF? #3368

Closed
GarrykZ opened this issue Nov 16, 2023 · 4 comments
Closed

Is it possible to skip TUF? #3368

GarrykZ opened this issue Nov 16, 2023 · 4 comments
Labels
question Further information is requested

Comments

@GarrykZ
Copy link

GarrykZ commented Nov 16, 2023

Question
I was using version 2.2.0 and skips tlog and sct with commands "--insecure-ignore-tlog --insecure-ignore-sct" but when i updated to 2.2.1 i start getting TUF-error:
WARNING: Skipping tlog verification is an insecure practice that lacks of transparency and auditability verification for the signature.
Error: getting ctlog public keys: updating local metadata and targets: error updating to TUF remote mirror: tuf: failed to download 9.root.json: Get "https://tuf-repo-cdn.sigstore.dev/9.root.json": EOF
remote status:{
"mirror": "https://tuf-repo-cdn.sigstore.dev",
"metadata": {}
}
main.go:74: error during command execution: getting ctlog public keys: updating local metadata and targets: error updating to TUF remote mirror: tuf: failed to download 9.root.json: Get "https://tuf-repo-cdn.sigstore.dev/9.root.json": EOF
remote status:{
"mirror": "https://tuf-repo-cdn.sigstore.dev",
"metadata": {}
}

My cosign works in corporate net and there is no internet.
Is is possible to skip this step and just verify signature with public-key?

@GarrykZ GarrykZ added the question Further information is requested label Nov 16, 2023
@GarrykZ
Copy link
Author

GarrykZ commented Nov 16, 2023

I'm using:
cosign sign --key hashivault://cosign $IMAGE --tlog-upload=false

..and then i want to verify my sign by kyverno in k8s but cant do it...

@haydentherapper
Copy link
Contributor

You can bypass TUF with SIGSTORE_CT_LOG_PUBLIC_KEY_FILE, SIGSTORE_ROOT_FILE and SIGSTORE_REKOR_PUBLIC_KEY to load in the relevant key material.

@GarrykZ
Copy link
Author

GarrykZ commented Nov 17, 2023

You can bypass TUF with SIGSTORE_CT_LOG_PUBLIC_KEY_FILE, SIGSTORE_ROOT_FILE and SIGSTORE_REKOR_PUBLIC_KEY to load in the relevant key material.

Can you explain me how i cant skip it locally without this variables but if i checking in kyverno all's fine?

@haydentherapper
Copy link
Contributor

You may need to ask kyverno if that's what you're using, I'm not sure if these variables will have an effect in Kyverno. For Cosign, setting them equal to a file path that holds either a public key or CA certificate will skip the TUF queries.

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

No branches or pull requests

2 participants