Skip to content

Commit 34c7c9c

Browse files
committed
controller: pass TLS config and insecure to cosign verifier for HelmChart 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>
1 parent c22363b commit 34c7c9c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/controller/helmchart_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,7 @@ func (r *HelmChartReconciler) makeVerifiers(ctx context.Context, obj *sourcev1.H
13131313
case "cosign":
13141314
defaultCosignOciOpts := []scosign.Options{
13151315
scosign.WithRemoteOptions(verifyOpts...),
1316+
scosign.WithTLSConfig(clientOpts.TLSConfig),
13161317
}
13171318

13181319
// get the public keys from the given secret

0 commit comments

Comments
 (0)