Skip to content

Commit c22363b

Browse files
committed
controller: wire insecure and TLS config to cosign verifier
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>
1 parent 41cd382 commit c22363b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/controller/ocirepository_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,8 @@ func (r *OCIRepositoryReconciler) verifySignature(ctx context.Context, obj *sour
680680
case "cosign":
681681
defaultCosignOciOpts := []scosign.Options{
682682
scosign.WithRemoteOptions(opt...),
683+
scosign.WithInsecure(obj.Spec.Insecure),
684+
scosign.WithTLSConfig(transport.TLSClientConfig),
683685
}
684686

685687
// If a trusted root secret is provided, read and pass it to the verifier.

0 commit comments

Comments
 (0)