17 lines
1.0 KiB
Diff
17 lines
1.0 KiB
Diff
diff -up ./skopeo-1715c9084124875cb71f006916396e3c7d03014e/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214 ./skopeo-1715c9084124875cb71f006916396e3c7d03014e/vendor/github.com/containers/image/docker/docker_client.go
|
|
--- ./skopeo-1715c9084124875cb71f006916396e3c7d03014e/vendor/github.com/containers/image/docker/docker_client.go.CVE-2019-10214 2019-09-12 15:41:30.949477994 +0200
|
|
+++ ./skopeo-1715c9084124875cb71f006916396e3c7d03014e/vendor/github.com/containers/image/docker/docker_client.go 2019-09-12 15:41:30.950478007 +0200
|
|
@@ -480,11 +480,7 @@ func (c *dockerClient) getBearerToken(ct
|
|
authReq.SetBasicAuth(c.username, c.password)
|
|
}
|
|
logrus.Debugf("%s %s", authReq.Method, authReq.URL.String())
|
|
- tr := tlsclientconfig.NewTransport()
|
|
- // TODO(runcom): insecure for now to contact the external token service
|
|
- tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
|
|
- client := &http.Client{Transport: tr}
|
|
- res, err := client.Do(authReq)
|
|
+ res, err := c.client.Do(authReq)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|