Repository navigation
chore(deps): bump secrets-engine/client to v1.0.0 and drop secrets-engine/x - #14541
Merged
Merged
Conversation
docker-agent
left a comment
Contributor
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
Benehiko
force-pushed
the
deps/secrets-engine-client-v1.0.0
branch
from
November 23, 2026 08:08
f78f847 to
a9e2334
Compare
4 of 9 tasks
…gine/x 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>
Benehiko
force-pushed
the
deps/secrets-engine-client-v1.0.0
branch
from
November 23, 2026 08:15
a9e2334 to
52d1b29
Compare
Benehiko
marked this pull request as ready for review
November 23, 2026 08:19
docker-agent
left a comment
Contributor
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
docker-agent
left a comment
Contributor
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
ndeloof
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Warning
Draft. The version bump only. Authorizing before reading the Docker Desktop session, and the timeouts that go with it, are in #14542, which builds on this PR.
What this PR does
Upgrades
github.com/docker/secrets-engine/clientfrom v0.2.2 to v1.0.0 and dropsgithub.com/docker/secrets-engine/x. Client v1.0.0 moves its shared types into the newgithub.com/docker/secrets-engine/secretsmodule and no longer needsx, which makesdocker-composeabout 2.2% smaller. Behavior is unchanged.Related issue
No Compose issue. Supersedes #14538 (Dependabot's bump of the client to v1.0.0, which keeps
xbecauseinternal/registrystill importsx/api).Related: docker/secrets-engine#709, docker/cli#7431
Changes made
go.mod:secrets-engine/clientv0.2.2 → v1.0.0.secrets-engine/xv0.8.5 is replaced bysecrets-engine/secretsv1.0.0.go mod tidyalso dropsconnectrpc.com/connectandgolang.org/x/mod, which onlyxand the old client pulled in.internal/registry/desktop.go: take the Docker Desktop socket path fromclient/config.DesktopSocketPath()instead ofx/api.DesktopSocketPath().internal/registry/desktop_test.go: usesecrets.ErrAccessDenied;seclient.ErrAccessDeniedis now an alias of it.seclient.New,WithSocketPath,WithTimeout,HubAuth,ConnectErrorand its reasons, and thedockerhubtypes are unchanged in v1.0.0. Thego 1.26.11directive ingo.modis unchanged.Binary size
docker-composebuilt frommainand from this branch with-trimpath -tags e2eandCGO_ENABLED=0, both with Go 1.27.4 (as in theDockerfileand.go-version); stripped means-ldflags "-s -w". 1 MB = 1,000,000 bytes.github.com/docker/secrets-engine/xv0.8.5,connectrpc.com/connectv1.19.1, andgolang.org/x/modv0.41.0.github.com/docker/secrets-engine/secretsv1.0.0.fsnotifytag on darwin, and-wwith a version-Xon all platforms, which these builds did not.Docker Desktop test
A throwaway program, not part of this PR, called
registry.NewDesktopAuthProviderand the client against the running Docker Desktop on macOS (darwin/arm64). Tokens were never printed. The binary is built bygo run, so it is not signed by Docker and Docker Desktop prompts for it.main(client v0.2.2), the Docker Hub lookup timed out after 5 seconds while the Docker Desktop prompt was open, and fell back to the Docker CLI credentials. Same behavior, so not a regression of v1.0.0. registry: authorize docker/auth/** before reading the Docker Desktop session #14542 addresses it.UserSession.Claimsin client v1.0.0 come from theclaimsfield that Docker Desktop stores, not from the JWT. For both sessions they matched the JWT'siatandexp.retrieve default account metadata: ...instead ofretrieve user access token: ..., because v1.0.0 reads the default profile first. Compose's fallback handles both the same way.Testing done
internal/registry, and for every package exceptpkg/remoteandpkg/watch, which fail the same way onmainon the machine used (macOS, darwin/arm64)make e2e-composeormake e2e-compose-standalonegolangci-lint run ./internal/registry/...(not the fullmake lint)gofmt -l internal/registryAI tool used (if applicable)
AI Tool: alki, an AI coding agent, running Claude Opus 5.5. It wrote the code change, ran the tests, the binary size measurements, and the Docker Desktop test, and wrote this description.