cosign: fix v3 bundle verify on http and private CA registries + pass TLS to Rekor#2061
Draft
stealthybox wants to merge 5 commits into
Draft
cosign: fix v3 bundle verify on http and private CA registries + pass TLS to Rekor#2061stealthybox wants to merge 5 commits into
stealthybox wants to merge 5 commits into
Conversation
Enable signature verification of OCI artifacts against self-hosted Sigstore infrastructure (custom Fulcio CA, self-hosted Rekor instance) by introducing a trustedRootSecretRef field on the verify spec. When set, the controller reads a trusted_root.json from the referenced Secret, extracts the Rekor URL from the transparency log entries, and creates a verifier using the custom trusted material instead of the public Sigstore TUF root. Signed-off-by: Pierre-Gilles Mialon <pierre-gilles.mialon@qube-rt.com>
Signed-off-by: leigh capili <leigh@null.net>
295b592 to
211fb0a
Compare
WithInsecure passes name.Insecure to GetBundles/VerifyImageAttestations for v3 bundle discovery on HTTP registries. Follows the same pattern as notation's WithInsecureRegistry. WithTLSConfig passes a *tls.Config to the Rekor client, supporting private CAs from certSecretRef. Replaces the cosign CLI rekor wrapper with a direct rekor.GetRekorClient call to thread the option through. Includes a test using a fake non-loopback hostname to verify the insecure option is required for bundle discovery on HTTP registries. Signed-off-by: leigh capili <leigh@null.net>
Pass obj.Spec.Insecure and transport.TLSClientConfig to the cosign verifier so v3 bundle discovery and Rekor connections use the same transport settings as the registry. Signed-off-by: leigh capili <leigh@null.net>
…hart OCI Pass clientOpts.TLSConfig and clientOpts.Insecure to the cosign verifier in makeVerifiers so that HelmChart verification of OCI-sourced charts works against registries behind private CAs and on HTTP. Signed-off-by: leigh capili <leigh@null.net>
211fb0a to
ffa18cc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #2003.
Fixes:
(GetBundles creates internal refs without copying name.Insecure from the original ref)
Changes:
Unit test covers the insecure bundle discovery fix using a fake
non-loopback hostname.