full diff: https://github.com/golang/go/compare/go1.13.6...go1.13.7 go1.13.7 (released 2020/01/28) includes two security fixes. One mitigates the CVE-2020-0601 certificate verification bypass on Windows. The other affects only 32-bit architectures. https://github.com/golang/go/issues?q=milestone%3AGo1.13.7+label%3ACherryPickApproved - X.509 certificate validation bypass on Windows 10 A Windows vulnerability allows attackers to spoof valid certificate chains when the system root store is in use. These releases include a mitigation for Go applications, but it’s strongly recommended that affected users install the Windows security update to protect their system. This issue is CVE-2020-0601 and Go issue golang.org/issue/36834. - Panic in crypto/x509 certificate parsing and golang.org/x/crypto/cryptobyte On 32-bit architectures, a malformed input to crypto/x509 or the ASN.1 parsing functions of golang.org/x/crypto/cryptobyte can lead to a panic. The malformed certificate can be delivered via a crypto/tls connection to a client, or to a server that accepts client certificates. net/http clients can be made to crash by an HTTPS server, while net/http servers that accept client certificates will recover the panic and are unaffected. Thanks to Project Wycheproof for providing the test cases that led to the discovery of this issue. The issue is CVE-2020-7919 and Go issue golang.org/issue/36837. This is also fixed in version v0.0.0-20200124225646-8b5121be2f68 of golang.org/x/crypto/cryptobyte. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
65 lines
2.7 KiB
YAML
65 lines
2.7 KiB
YAML
version: "{build}"
|
|
|
|
image: Visual Studio 2017
|
|
|
|
clone_folder: c:\gopath\src\github.com\containerd\containerd
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- /release\/.*/
|
|
|
|
environment:
|
|
GOPATH: C:\gopath
|
|
CGO_ENABLED: 0
|
|
matrix:
|
|
- GO_VERSION: 1.13.7
|
|
|
|
before_build:
|
|
- choco install -y mingw --version 5.3.0
|
|
# Install Go
|
|
- rd C:\Go /s /q
|
|
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GO_VERSION%.windows-amd64.zip
|
|
- 7z x go%GO_VERSION%.windows-amd64.zip -oC:\ >nul
|
|
- go version
|
|
- choco install codecov
|
|
# Clone hcsshim at the vendored version
|
|
- bash.exe -elc "export PATH=/c/tools/mingw64/bin:$PATH;
|
|
rm -rf /c/gopath/src/github.com/Microsoft/hcsshim;
|
|
git clone -q https://github.com/Microsoft/hcsshim.git /c/gopath/src/github.com/Microsoft/hcsshim;
|
|
export HCSSHIM_VERSION=`grep Microsoft/hcsshim vendor.conf | awk '{print $2}'`;
|
|
echo Using Microsoft/hcsshim $HCSSHIM_VERSION;
|
|
pushd /c/gopath/src/github.com/Microsoft/hcsshim;
|
|
git checkout $HCSSHIM_VERSION;
|
|
popd"
|
|
# Print host version. TODO: Remove this when containerd has a way to get host version
|
|
- ps: $psversiontable
|
|
|
|
build_script:
|
|
# Build containerd-shim-runhcs-v1.exe and runhcs.exe from Microsoft/hcsshim
|
|
- bash.exe -elc "export PATH=/c/tools/mingw64/bin:$PATH;
|
|
export GOBIN=/c/gopath/src/github.com/Microsoft/hcsshim/bin;
|
|
mkdir $GOBIN;
|
|
pushd /c/gopath/src/github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1;
|
|
go install;
|
|
cd ../runhcs;
|
|
go install;
|
|
ls -al $GOBIN;
|
|
popd"
|
|
- bash.exe -elc "export PATH=/c/tools/mingw64/bin:/c/gopath/bin:$PATH;
|
|
script/setup/install-dev-tools;
|
|
mingw32-make.exe check"
|
|
- bash.exe -elc "export PATH=/c/tools/mingw64/bin:$PATH ; mingw32-make.exe build binaries"
|
|
|
|
# These scripts run with CGO_ENABLED=1 in order to support the Race Detector (-race flag), enabled in Makefile.windows
|
|
test_script:
|
|
# TODO: need an equivalent of TRAVIS_COMMIT_RANGE
|
|
# - GIT_CHECK_EXCLUDE="./vendor" TRAVIS_COMMIT_RANGE="${TRAVIS_COMMIT_RANGE/.../..}" C:\MinGW\bin\mingw32-make.exe dco
|
|
- bash.exe -lc "export CGO_ENABLED=1 PATH=/c/tools/mingw64/bin:/c/gopath/src/github.com/containerd/containerd/bin:$PATH ; mingw32-make.exe coverage root-coverage"
|
|
# - bash.exe -elc "export CGO_ENABLED=1 PATH=/c/tools/mingw64/bin:/c/gopath/src/github.com/containerd/containerd/bin:$PATH ; mingw32-make.exe integration"
|
|
# Run the integration suite a second time. See discussion in github.com/containerd/containerd/pull/1759
|
|
# - bash.exe -elc "export CGO_ENABLED=1 PATH=/c/tools/mingw64/bin:/c/gopath/src/github.com/containerd/containerd/bin:$PATH; TESTFLAGS_PARALLEL=1 mingw32-make.exe integration"
|
|
|
|
on_success:
|
|
- codecov --flag windows -f coverage.txt
|