Skip to content

Commit

Permalink
CVE-2024-23653: update buildkit to include CVE patches
Browse files Browse the repository at this point in the history
- moby/buildkit#4638
- moby/buildkit#4639
- moby/buildkit#4640

additionally change the version in builder/builder-next/worker/worker.go
and adjust calls to NewGatewayFrontend() in builder/builder-next (Worker
is no longer implementing the correct interface).

Signed-off-by: Dan Čermák <[email protected]>
Signed-off-by: Aleksa Sarai <[email protected]>
  • Loading branch information
dcermak authored and cyphar committed Oct 15, 2024
1 parent 54310f5 commit aedd40a
Show file tree
Hide file tree
Showing 26 changed files with 615 additions and 598 deletions.
8 changes: 4 additions & 4 deletions builder/builder-next/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ func newSnapshotterController(ctx context.Context, rt http.RoundTripper, opt Opt
return nil, err
}
frontends := map[string]frontend.Frontend{
"dockerfile.v0": forwarder.NewGatewayForwarder(wc, dockerfile.Build),
"gateway.v0": gateway.NewGatewayFrontend(wc),
"dockerfile.v0": forwarder.NewGatewayForwarder(wc.Infos(), dockerfile.Build),
"gateway.v0": gateway.NewGatewayFrontend(wc.Infos()),
}

return control.NewController(control.Opt{
Expand Down Expand Up @@ -338,8 +338,8 @@ func newGraphDriverController(ctx context.Context, rt http.RoundTripper, opt Opt
wc.Add(w)

frontends := map[string]frontend.Frontend{
"dockerfile.v0": forwarder.NewGatewayForwarder(wc, dockerfile.Build),
"gateway.v0": gateway.NewGatewayFrontend(wc),
"dockerfile.v0": forwarder.NewGatewayForwarder(wc.Infos(), dockerfile.Build),
"gateway.v0": gateway.NewGatewayFrontend(wc.Infos()),
}

return control.NewController(control.Opt{
Expand Down
2 changes: 1 addition & 1 deletion builder/builder-next/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import (
)

func init() {
version.Version = "v0.11.7+435cb77e369c"
version.Version = "v0.11.7+5d3afed3f7b4"
}

const labelCreatedAt = "buildkit/createdat"
Expand Down
3 changes: 3 additions & 0 deletions vendor.mod
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ require (
resenje.org/singleflight v0.3.0
)

// github.com/cyphar/buildkit suse-stable-v24.0.9
replace github.com/moby/buildkit => github.com/cyphar/buildkit v0.0.0-20240814025459-5d3afed3f7b4

require (
cloud.google.com/go v0.102.1 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
Expand Down
797 changes: 289 additions & 508 deletions vendor.sum

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions vendor/github.com/moby/buildkit/executor/executor.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 18 additions & 12 deletions vendor/github.com/moby/buildkit/executor/oci/spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions vendor/github.com/moby/buildkit/executor/oci/spec_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions vendor/github.com/moby/buildkit/executor/oci/spec_non_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions vendor/github.com/moby/buildkit/executor/oci/spec_windows.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 14 additions & 4 deletions vendor/github.com/moby/buildkit/executor/stubs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion vendor/github.com/moby/buildkit/frontend/frontend.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions vendor/github.com/moby/buildkit/frontend/gateway/container.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aedd40a

Please sign in to comment.