chore(deps): bump secrets-engine/client to v1.0.0 and drop secrets-engine/x
Some checks are pending
ci / validate (lint) (push) Waiting to run
ci / validate (relay-lint) (push) Waiting to run
ci / validate (relay-test) (push) Waiting to run
ci / validate (validate-docs) (push) Waiting to run
ci / validate (validate-go-mod) (push) Waiting to run
ci / validate (validate-headers) (push) Waiting to run
ci / validate (validate-mocks) (push) Waiting to run
ci / binary (push) Waiting to run
ci / binary-finalize (push) Blocked by required conditions
ci / bin-image-test (push) Waiting to run
ci / relay-image-test (push) Waiting to run
ci / test (push) Waiting to run
ci / e2e (plugin, oldstable, graphdriver) (push) Waiting to run
ci / e2e (standalone, oldstable, graphdriver) (push) Waiting to run
ci / e2e (plugin, stable, containerd) (push) Waiting to run
ci / e2e (plugin, stable, graphdriver) (push) Waiting to run
ci / e2e (standalone, stable, containerd) (push) Waiting to run
ci / e2e (standalone, stable, graphdriver) (push) Waiting to run
ci / e2e (plugin, test, graphdriver, jobs extension) (push) Waiting to run
ci / coverage (push) Blocked by required conditions
ci / ci-ok (push) Blocked by required conditions
ci / release (push) Blocked by required conditions
merge / bin-image-prepare (push) Waiting to run
merge / bin-image (push) Blocked by required conditions
merge / relay-image (push) Waiting to run
merge / module-image (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
zizmor / zizmor (push) Waiting to run

client v1.0.0 moves its shared types into the new github.com/docker/secrets-engine/secrets module and no longer depends on github.com/docker/secrets-engine/x. Take the Docker Desktop socket path from client/config instead of x/api, so x is no longer needed.

This also drops connectrpc.com/connect and golang.org/x/mod from the binary, which makes docker-compose about 2.2% smaller on linux, darwin and windows.

Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
This commit is contained in:
Alano Terblanche 2026-11-23 08:48:29 +01:00 • committed by Nicolas De loof
parent 469ab94d72
commit 4b6c39f7be
4 changed files with 11 additions and 14 deletions

6
go.mod
View file

@ -17,8 +17,8 @@ require (
github.com/docker/cli v29.10.0+incompatible
github.com/docker/cli-docs-tool v0.11.0
github.com/docker/go-units v0.5.0
github.com/docker/secrets-engine/client v0.2.2
github.com/docker/secrets-engine/x v0.8.5
github.com/docker/secrets-engine/client v1.0.0
github.com/docker/secrets-engine/secrets v1.0.0
github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203
github.com/fsnotify/fsevents v0.2.0
github.com/google/go-cmp v0.7.0
@ -63,7 +63,6 @@ require (
)
require (
connectrpc.com/connect v1.19.1 // indirect
github.com/Azure/go-ansiterm v0.0.0-20261006220739-8c912ac31dd4 // indirect
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
@ -123,7 +122,6 @@ require (
go.opentelemetry.io/proto/otlp v1.11.0 // indirect
go.yaml.in/yaml/v3 v3.0.5 // indirect
golang.org/x/crypto v0.57.0 // indirect
golang.org/x/mod v0.41.0 // indirect
golang.org/x/net v0.60.0 // indirect
golang.org/x/text v0.42.0 // indirect
golang.org/x/time v0.16.0 // indirect

10
go.sum
View file

@ -1,5 +1,3 @@
connectrpc.com/connect v1.19.1 h1:R5M57z05+90EfEvCY1b7hBxDVOUl45PrtXtAV2fOC14=
connectrpc.com/connect v1.19.1/go.mod h1:tN20fjdGlewnSFeZxLKb0xwIZ6ozc3OQs2hTXy4du9w=
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 h1:He8afgbRMd7mFxO99hRNu+6tazq8nFF9lIwo9JFroBk=
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8=
github.com/Azure/go-ansiterm v0.0.0-20261006220739-8c912ac31dd4 h1:m2xcjRABtG288vnlV3U/PKh/HnPURxZp50RKNUwBxM8=
@ -90,10 +88,10 @@ github.com/docker/go-metrics v0.1.0 h1:r76KPNpstz+IvQKSWpYegSkkyzex0V3A1ZGVx6bhG
github.com/docker/go-metrics v0.1.0/go.mod h1:PciI3sONtB051kXALN1JoIlpcu54E1FuPh+4DuqEzyw=
github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=
github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/docker/secrets-engine/client v0.2.2 h1:aPvmlzsxNA+C+xgp2F+WiiDbCSAXHC591HscFFOvPOE=
github.com/docker/secrets-engine/client v0.2.2/go.mod h1:c3l/N+fA0kiy9S8BE3kKrO5hOZu4+SLYZK9Jx+jc2cw=
github.com/docker/secrets-engine/x v0.8.5 h1:P7D/YESMjpX18S4ratBgoeJkAFIxgsPxe093uFmgiGc=
github.com/docker/secrets-engine/x v0.8.5/go.mod h1:jQ5CXCYCPn8Sw96TS8Ufq3oyIGH2GzUtVXIdwa2Q0VU=
github.com/docker/secrets-engine/client v1.0.0 h1:/zMCWoch4OOoMQoCo257H6siYUuUcQiTZBcX081uQm0=
github.com/docker/secrets-engine/client v1.0.0/go.mod h1:EGa8hWWhSWBQ4+Yn2BHO4xeXZ4wYCI9eAQ3U1Fy1sIA=
github.com/docker/secrets-engine/secrets v1.0.0 h1:29fYA7dLYYN6dbyCoDUX7VVu0usZ8bKvpJolCbs8TAw=
github.com/docker/secrets-engine/secrets v1.0.0/go.mod h1:xGWoZkaQpSd/PP5s8etspPkrs8Qa07jVblo2UEQZi5w=
github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203 h1:XBBHcIb256gUJtLmY22n99HaZTz+r2Z51xUPi01m3wg=
github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203/go.mod h1:E1jcSv8FaEny+OP/5k9UxZVw9YFWGj7eI4KR/iOBqCg=
github.com/felixge/httpsnoop v1.1.0 h1:3YtUj32ZZkqZtt3sZZsClsymw/QDuVfpNhoA31zeORc=

View file

@ -26,8 +26,8 @@ import (
clitypes "github.com/docker/cli/cli/config/types"
seclient "github.com/docker/secrets-engine/client"
"github.com/docker/secrets-engine/client/config"
"github.com/docker/secrets-engine/client/dockerhub"
"github.com/docker/secrets-engine/x/api"
"github.com/sirupsen/logrus"
)
@ -83,7 +83,7 @@ func NewDesktopAuthProvider(fallback AuthProvider) AuthProvider {
func connectDesktop(opts ...dockerhub.Option) (hubSessions, error) {
c, err := seclient.New(
seclient.WithSocketPath(api.DesktopSocketPath()),
seclient.WithSocketPath(config.DesktopSocketPath()),
seclient.WithTimeout(desktopLookupTimeout),
)
if err != nil {

View file

@ -29,6 +29,7 @@ import (
clitypes "github.com/docker/cli/cli/config/types"
seclient "github.com/docker/secrets-engine/client"
"github.com/docker/secrets-engine/client/dockerhub"
"github.com/docker/secrets-engine/secrets"
"github.com/moby/moby/api/pkg/authconfig"
"gotest.tools/v3/assert"
)
@ -312,7 +313,7 @@ func TestDesktopAuthProvider_FallsBackWithoutUsableSession(t *testing.T) {
},
{
name: "access denied",
hub: &fakeHub{sessionErr: seclient.ErrAccessDenied},
hub: &fakeHub{sessionErr: secrets.ErrAccessDenied},
},
{
name: "no username",
@ -394,7 +395,7 @@ func TestIsSessionUnavailable(t *testing.T) {
assert.Assert(t, isSessionUnavailable(err), err)
}
for _, err := range []error{
seclient.ErrAccessDenied,
secrets.ErrAccessDenied,
errNoUsername,
context.DeadlineExceeded,
} {