From b78236a6ab3770e9e24bf1f7acc5782497177c48 Mon Sep 17 00:00:00 2001 From: gabemontero Date: Mon, 4 Nov 2019 14:13:11 -0500 Subject: [PATCH] do not force skip tls verify to true on image source injection --- pkg/build/builder/source.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/build/builder/source.go b/pkg/build/builder/source.go index 65afef51a55..d287c12ea57 100644 --- a/pkg/build/builder/source.go +++ b/pkg/build/builder/source.go @@ -380,10 +380,6 @@ func extractSourceFromImage(ctx context.Context, dockerClient DockerClient, stor var systemContext types.SystemContext systemContext.AuthFilePath = "/tmp/config.json" - // TODO remove this, get CAs+insecure registry config from host. - systemContext.OCIInsecureSkipTLSVerify = true - systemContext.DockerInsecureSkipTLSVerify = types.NewOptionalBool(true) - if auths != nil { for registry, ac := range auths.Configs { log.V(5).Infof("Setting authentication for registry %q using %q.", registry, ac.ServerAddress)