Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver client meta #1

Draft
wants to merge 73 commits into
base: master
Choose a base branch
from

Conversation

tonistiigi
Copy link
Owner

No description provided.

thaJeztah and others added 2 commits June 23, 2023 10:28
This attempts to make it clearer that the --cgroup-parent option is only used
for the containers used during build. Instead of mentioning "build container",
I opted for using "RUN instructions" (to match the --network description),
although this may not be ideal (as it assumes the "Dockerfile" front-end, which
of course may not be the case).

Signed-off-by: Sebastiaan van Stijn <[email protected]>
if td, ok := exp.(client.TracerDelegate); ok {
opts = append(opts, client.WithTracerDelegate(td))
}

if d.Meta != nil {
opts = append(opts, client.WithGRPCDialOption(grpc.WithChainUnaryInterceptor(func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this part?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wanted to be consistent for each driver and not just docker

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For other drivers this would be grpc headers so it is not the same. This is not configuring headers for the buildkit but only for the driver. And I don't think there is anything comparable in other drivers.

If anything, this is sort of like endpoint configuration.

@@ -52,7 +52,7 @@ func (d *Driver) Rm(ctx context.Context, force, rmVolume, rmDaemon bool) error {

func (d *Driver) Client(ctx context.Context) (*client.Client, error) {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just add it as dial options property on Client instead of property of driver.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crazy-max and others added 4 commits August 23, 2023 10:15
update flag-description for --cgroup-parent
test: fix non-deterministic compose context path
tests: add imagetools tests for copying manifests and indexes
jedevc and others added 21 commits August 24, 2023 14:01
Signed-off-by: Justin Chadwell <[email protected]>
debug: fix short-form custom command name on `--invoke` isn't used
Signed-off-by: guoguangwu <[email protected]>
update the dependency to v0.7.0 to be closer to what docker/cli uses;
notaryproject/notary@v0.6.1...v0.7.0

Note that docker/cli is slightly ahead of v0.7.0, and uses bf96a202a09a;
notaryproject/notary@v0.7.0...bf96a20

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
…actions/checkout-4

build(deps): bump actions/checkout from 3 to 4
vendor: github.com/theupdateframework/notary v0.7.0
- Parse service device count to int if possible
- introduce ResourceResolver to accept remote resources
- use include.env_file to resolve variables in included compose.yaml file
- remove potential dependencies to disabled services in ForServices
- ability to convert a mapping (back) to KEY=VALUE strings
- load: include details about included files on Project
- include disabled services
- local environment to override included .env
- load: move env var profile detection to option
- add support for multi-document yaml

full diff: compose-spec/compose-go@v1.17.0...v1.18.3

Signed-off-by: Sebastiaan van Stijn <[email protected]>
The "reference" package was moved to a separate module, which was extracted
from distribution/distribution@b9b1940

Also update compose-go, which also switched to distribution/reference;

full diff: compose-spec/compose-go@v1.18.3...v1.18.4

Signed-off-by: Sebastiaan van Stijn <[email protected]>
migrate reference github.com/distribution/reference
Signed-off-by: Kijima Daigo <[email protected]>
go1.20.8 (released 2023-09-06) includes two security fixes to the html/template
package, as well as bug fixes to the compiler, the go command, the runtime,
and the crypto/tls, go/types, net/http, and path/filepath packages. See the
Go 1.20.8 milestone on our issue tracker for details:

https://github.com/golang/go/issues?q=milestone%3AGo1.20.8+label%3ACherryPickApproved

full diff: golang/go@go1.20.7...go1.20.8

From the security mailing:

[security] Go 1.21.1 and Go 1.20.8 are released

Hello gophers,

We have just released Go versions 1.21.1 and 1.20.8, minor point releases.

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

- cmd/go: go.mod toolchain directive allows arbitrary execution
  The go.mod toolchain directive, introduced in Go 1.21, could be leveraged to
  execute scripts and binaries relative to the root of the module when the "go"
  command was executed within the module. This applies to modules downloaded using
  the "go" command from the module proxy, as well as modules downloaded directly
  using VCS software.

  Thanks to Juho Nurminen of Mattermost for reporting this issue.

  This is CVE-2023-39320 and Go issue https://go.dev/issue/62198.

- html/template: improper handling of HTML-like comments within script contexts
  The html/template package did not properly handle HMTL-like "<!--" and "-->"
  comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may
  cause the template parser to improperly interpret the contents of <script>
  contexts, causing actions to be improperly escaped. This could be leveraged to
  perform an XSS attack.

  Thanks to Takeshi Kaneko (GMO Cybersecurity by Ierae, Inc.) for reporting this
  issue.

  This is CVE-2023-39318 and Go issue https://go.dev/issue/62196.

- html/template: improper handling of special tags within script contexts
  The html/template package did not apply the proper rules for handling occurrences
  of "<script", "<!--", and "</script" within JS literals in <script> contexts.
  This may cause the template parser to improperly consider script contexts to be
  terminated early, causing actions to be improperly escaped. This could be
  leveraged to perform an XSS attack.

  Thanks to Takeshi Kaneko (GMO Cybersecurity by Ierae, Inc.) for reporting this
  issue.

  This is CVE-2023-39319 and Go issue https://go.dev/issue/62197.

- crypto/tls: panic when processing post-handshake message on QUIC connections
  Processing an incomplete post-handshake message for a QUIC connection caused a panic.

  Thanks to Marten Seemann for reporting this issue.

  This is CVE-2023-39321 and CVE-2023-39322 and Go issue https://go.dev/issue/62266.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
crazy-max and others added 15 commits September 30, 2023 01:02
Signed-off-by: CrazyMax <[email protected]>
commands: release the file lock before attempting to boot during create
vendor: update compose-go to v1.19.0
This will allow further enhancement like caching remote driver responses.

Signed-off-by: Silvin Lubecki <[email protected]>
@crazy-max crazy-max force-pushed the driver-client-meta branch 2 times, most recently from be1f292 to 417dbf8 Compare October 11, 2023 12:45
silvin-lubecki and others added 3 commits October 11, 2023 22:08
Revert "Introduce a client interface, to abstract from buildkit client."
@crazy-max crazy-max force-pushed the driver-client-meta branch 4 times, most recently from cc8d86b to c459ae0 Compare October 13, 2023 09:51
Adds a new HostGatewayIP entry in the Driver interface so we can
move Features and HostGatewayIP handling with cache to the very
specific driver (docker).

Signed-off-by: CrazyMax <[email protected]>
@crazy-max crazy-max deleted the driver-client-meta branch October 17, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants