Repository navigation
fix: Fetch the CloudQuery registry token in-process so Docker 29 pulls authenticate - #724
Conversation
|
Experiment in #725 (main's code, only That settles two things: the CI API key is valid, and the failure is caused by the ubuntu-26.04 (Docker 29) runner image. It also shows the in-process token request here is still missing something Docker 28 sends. Captured from Docker 28.5.2 against a fake registry:
The |
|
Verified against the real registry with the CI credentials on both daemons in run 43436172856:
ubuntu-24.04 is kept in the matrix so both daemon versions stay covered. |
dcelasun
left a comment
There was a problem hiding this comment.
@erezrokah LGTM, some nits:
- The token fetch now runs in the CLI process, and a failure stops the pull on every Docker version. Setups where only the daemon can reach docker.cloudquery.io (remote
DOCKER_HOST, a proxy or CA set only on the daemon) would break. Consider a fallback to the old username/password auth when the fetch fails. - Require an
httpsrealm before we send the API key to it as Basic auth (registry_token.go). noRedirectHTTPClienthas no timeout, so a hung registry blocks the pull when ctx has no deadline.- Not new, but
strings.HasPrefix(imageName, "docker.cloudquery.io")also matchesdocker.cloudquery.io.example.com.namedRefis parsed now, so comparereference.Domain(namedRef)instead.
🤖 I have created a release *beep* *boop* --- ## [1.29.1](v1.29.0...v1.29.1) (2026-11-13) ### Bug Fixes * **deps:** Update module google.golang.org/grpc to v1.85.0 ([#721](#721)) ([9d77502](9d77502)) * Fetch the CloudQuery registry token in-process so Docker 29 pulls authenticate ([#724](#724)) ([4ecdf0a](4ecdf0a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
The CloudQuery registry token is now fetched in-process with the
accountparameter and theX-Meta-User-Team-NameandX-Meta-Plugin-Versionheaders and handed to the daemon as a bearer token, because Docker 29's containerd pull path sends neither, which brokeTestManagedPluginCloudQueryDockerwhenubuntu-latestmoved to ubuntu-26.04 (this predates #723).