Commit Graph

92 Commits (13ec6359883d6992eed8efaed89e904fc713d148)

Author SHA1 Message Date
Sebastiaan van Stijn dd350284df
update to go1.20.7
Includes a fix for CVE-2023-29409

go1.20.7 (released 2023-08-01) includes a security fix to the crypto/tls
package, as well as bug fixes to the assembler and the compiler. See the
Go 1.20.7 milestone on our issue tracker for details:

- https://github.com/golang/go/issues?q=milestone%3AGo1.20.7+label%3ACherryPickApproved
- full diff: https://github.com/golang/go/compare/go1.20.6...go1.20.7

From the mailing list announcement:

[security] Go 1.20.7 and Go 1.19.12 are released

Hello gophers,

We have just released Go versions 1.20.7 and 1.19.12, minor point releases.

These minor releases include 1 security fixes following the security policy:

- crypto/tls: restrict RSA keys in certificates to <= 8192 bits

  Extremely large RSA keys in certificate chains can cause a client/server
  to expend significant CPU time verifying signatures. Limit this by
  restricting the size of RSA keys transmitted during handshakes to <=
  8192 bits.

  Based on a survey of publicly trusted RSA keys, there are currently only
  three certificates in circulation with keys larger than this, and all
  three appear to be test certificates that are not actively deployed. It
  is possible there are larger keys in use in private PKIs, but we target
  the web PKI, so causing breakage here in the interests of increasing the
  default safety of users of crypto/tls seems reasonable.

  Thanks to Mateusz Poliwczak for reporting this issue.

View the release notes for more information:
https://go.dev/doc/devel/release#go1.20.7

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
CrazyMax 1123bfed10
hack(generated-files): bump golang image to bookworm
 [internal] load metadata for docker.io/library/golang:1.20.6-buster
 ERROR: docker.io/library/golang:1.20.6-buster: not found

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 7f2293308b
update go to 1.20.6
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Aleksa Sarai 57c618b83a
build: add GO_EXTRA_FLAGS argument
This is useful for setting things like -buildmode=pie when packaging
docker-buildx for distributions.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
CrazyMax 74b121be66
test: opt to avoid building the integration tests image
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax b9cf46785b
test: use trap to remove cache volume
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax ecf8dd0a26
test: type integration not needed
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Justin Chadwell 2d124e0ce9 test: add basic integration tests
Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 527d57540e
k8s: generate node name if not provided
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 9de12bb9c8
docs: do not generate ref for internal serve command
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Justin Chadwell c4ad930e2a
Merge pull request from crazy-max/update-frontend
Dockerfile: align frontend version
CrazyMax 132fababb0
Dockerfile: align frontend version
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax e16c1b289b
update golangci-lint to v1.51.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 376b73f078
update to go 1.20
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 04804ff355
Merge pull request from crazy-max/gomod-1.19
go.mod: bump to Go 1.19
Justin Chadwell 5f130b25ad hack: move syntax directive to top of generated-files
Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 7eb266de69
go.mod: bump to Go 1.19
Go 1.20 will be there soon, I think it's time to move our go.mod to
latest stable. We can then remove the compat in our vendor.Dockerfile

Downstream projects like compose or github.com/linuxkit/linuxkit should
not be affected.

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Kohei Tokunaga a27b8395b1 Enable to run build and invoke in background
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
CrazyMax 477200d1f9
ci: generate provenance and sbom for release binaries
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 99ac7f5f9e
e2e: load to docker store
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax fe8d5627e0
Merge pull request from crazy-max/makefile-build-opts
hack: mutualize build opts in Makefile and Dockerfile
CrazyMax 23b217af24
hack: mutualize build opts in Makefile and Dockerfile
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 05efb6291f
hack: improve hash-files script
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 85723a138f
hack: lint scripts
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 9c69ba6f6f
hack: use single output dir
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 1bb375fe5c
Merge pull request from crazy-max/go-1.19
Dockerfile: update to go 1.19
Justin Chadwell 297526c49d docs: add experimental options to build command reference
Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 2a13491919
Dockerfile: update golangci-lint to 1.48.0 (go 1.19 support)
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 3509a1a7ff
Dockerfile: update to go 1.19
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 45fc3bf842
ci: enhanced build workflow
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 45fac6dee3
chore: remove yamllint
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi bbfdaa4161
Merge pull request from crazy-max/ci-cache
ci: enable cache
Tõnis Tiigi 062cf29de2
Merge pull request from jedevc/remote-driver-bootstrap
Use --bootstrap to wait for remote to become active
Sebastiaan van Stijn 35b238ee82
vendor: vendor with -compat=1.17
This might break compatibility with projects using this module that
are still on go1.16, which is EOL, so probably ok to ignore:

    github.com/docker/buildx/store imports
        github.com/gofrs/flock tested by
        github.com/gofrs/flock.test imports
        gopkg.in/check.v1 loaded from gopkg.in/check.v1@v1.0.0-20200227125254-8fa46927fb4f,
        but go 1.16 would select v1.0.0-20201130134442-10cb98267c6c

    To upgrade to the versions selected by go 1.16:
        go mod tidy -go=1.16 && go mod tidy -go=1.17
    If reproducibility with go 1.16 is not needed:
        go mod tidy -compat=1.17
    For other options, see:
        https://golang.org/doc/modules/pruning

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Justin Chadwell c245f30a94 remote: use --bootstrap to wait for remote to become active
Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 519aca3672
ci: enable cache
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax e0cffbdbdf
Merge pull request from crazy-max/fix-checksum-file
release: fix checksum file
CrazyMax df799b6a0f
release: fix checksum file
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 1e52c2107c
Merge pull request from tonistiigi/update-dockerfile-deps
Dockerfile: update dependencies
Justin Chadwell d7e4affe98 Complete remote driver
This patch completes the work started in creating a remote driver:

- Renames the env driver to the remote driver (an alternative suggestion
  that should be more user-friendly)
- Adds support for TLS to encrypt connections with buildkitd
- Fixes outstanding review comments
- Reworks the buildx create command endpoint construction to be clearer
  and include better support for this new driver.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Tonis Tiigi a648d58f63 hack: update linters
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi 0b9d426175 Dockerfile: update to go 1.18
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
CrazyMax 824cb42fe0
dockerfile: update frontend to 1.4
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 08bb626304
chore: use no-cache-filter for outdated stage
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax ecf215b927
e2e: add bake build and display metadata json
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 3ccb883d95
chore: invalidate cache for outdated run stage
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 1a56de8e68
update go to 1.17.2
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax c82dbafaee
Driver opt not used in e2e tests
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax ef8c936b27
Driver e2e tests
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax e59aecf034
Remove YAML docs from the repo
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>