mirror of
https://github.com/docker/docker-credential-helpers.git
synced 2026-06-13 16:01:28 +05:30
a3d1ffcdb2
go1.20.6 (released 2023-07-11) includes a security fix to the net/http package, as well as bug fixes to the compiler, cgo, the cover tool, the go command, the runtime, and the crypto/ecdsa, go/build, go/printer, net/mail, and text/template packages. See the Go 1.20.6 milestone on our issue tracker for details. https://github.com/golang/go/issues?q=milestone%3AGo1.20.6+label%3ACherryPickApproved Full diff: https://github.com/golang/go/compare/go1.20.5...go1.20.6 These minor releases include 1 security fixes following the security policy: net/http: insufficient sanitization of Host header The HTTP/1 client did not fully validate the contents of the Host header. A maliciously crafted Host header could inject additional headers or entire requests. The HTTP/1 client now refuses to send requests containing an invalid Request.Host or Request.URL.Host value. Thanks to Bartek Nowotarski for reporting this issue. Includes security fixes for [CVE-2023-29406 ][1] and Go issue https://go.dev/issue/60374 [1]: https://github.com/advisories/GHSA-f8f7-69v5-w4vx Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
38 lines
775 B
Docker
38 lines
775 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
ARG GO_VERSION=1.20.6
|
|
ARG DISTRO=ubuntu
|
|
ARG SUITE=focal
|
|
|
|
FROM golang:${GO_VERSION}-bullseye AS golang
|
|
|
|
FROM ${DISTRO}:${SUITE}
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install -yy debhelper dh-make libsecret-1-dev
|
|
RUN mkdir -p /build
|
|
|
|
WORKDIR /build
|
|
ENV GOPROXY=https://proxy.golang.org|direct
|
|
ENV GO111MODULE=off
|
|
ENV GOPATH=/build
|
|
ENV PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
|
|
COPY --from=golang /usr/local/go /usr/local/go
|
|
|
|
COPY Makefile .
|
|
COPY credentials credentials
|
|
COPY secretservice secretservice
|
|
COPY pass pass
|
|
COPY deb/debian ./debian
|
|
COPY deb/build-deb .
|
|
|
|
ARG VERSION
|
|
ENV VERSION=${VERSION}
|
|
ARG REVISION
|
|
ENV REVISION=${REVISION}
|
|
ARG DISTRO
|
|
ENV DISTRO=${DISTRO}
|
|
ARG SUITE
|
|
ENV SUITE=${SUITE}
|
|
RUN /build/build-deb
|