d27d84
diff -up ./buildah-00eb895d6f2f13d658a9cb78714382e494974afc/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214 ./buildah-00eb895d6f2f13d658a9cb78714382e494974afc/vendor/github.com/containers/image/docker/docker_client.go
d27d84
--- buildah-00eb895d6f2f13d658a9cb78714382e494974afc/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214	2019-09-12 16:01:08.889098180 +0200
d27d84
+++ buildah-00eb895d6f2f13d658a9cb78714382e494974afc/vendor/github.com/containers/image/docker/docker_client.go	2019-09-12 16:01:08.890098192 +0200
d27d84
@@ -523,11 +523,7 @@ func (c *dockerClient) getBearerToken(ct
d27d84
 		authReq.SetBasicAuth(c.username, c.password)
d27d84
 	}
d27d84
 	logrus.Debugf("%s %s", authReq.Method, authReq.URL.String())
d27d84
-	tr := tlsclientconfig.NewTransport()
d27d84
-	// TODO(runcom): insecure for now to contact the external token service
d27d84
-	tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
d27d84
-	client := &http.Client{Transport: tr}
d27d84
-	res, err := client.Do(authReq)
d27d84
+	res, err := c.client.Do(authReq)
d27d84
 	if err != nil {
d27d84
 		return nil, err
d27d84
 	}