Skip to content

Bump Dragonfly dependencies and enhance client request authorization - #103

Merged
gaius-qi merged 2 commits into
mainfrom
chore/bump-dragonfly-client
Nov 12, 2026
Merged

gaius-qi merged 2 commits into
mainfrom
chore/bump-dragonfly-client

Conversation

@gaius-qi

Copy link
Copy Markdown
Member

Description

Related Issue

Motivation and Context

Screenshots (if appropriate)

Update the Go module dependency on d7y.io/dragonfly/v2 to v2.5.4-rc.1
in both the client-request library and the e2e tests, and bump the Rust
dragonfly-client-request crate to 1.14.1 (including the README example).

The e2e chart config now uses scheduler v2.5.4-rc.1 and seed client
v1.5.13, and drops the explicit `backend.enableCacheTemporaryRedirect`
override, relying on the client's default instead.

Signed-off-by: Gaius <gaius.qi@gmail.com>
…ackend errors

Resolve the registry token when each preheat target starts, via a shared
auth client in Go and `client.auth` per task in Rust, so a long preheat no
longer fails when the bearer token expires. Registries without a bearer
challenge now work: basic credentials are sent as a Basic header, and
anonymous registries get no Authorization header instead of an error.

The Go `downloadTask` now reads the dfdaemon backend error from the
`grpc-status-details-bin` trailer and returns a `BackendError`, so a
definitive answer like 404 is not retried, matching the Rust SDK.

`PreheatImage` and `StatImage` return the context cause when resolving
the image fails because the context ended, and `DeleteImage` on a ended
context returns the peers that already deleted the image alongside the
error instead of a nil response.

Bump dragonfly to v2.5.4-rc.2 in the Go modules and e2e chart config.

Signed-off-by: Gaius <gaius.qi@gmail.com>
@gaius-qi gaius-qi self-assigned this Nov 12, 2026
@gaius-qi
gaius-qi requested review from a team as code owners November 12, 2026 09:13
@gaius-qi gaius-qi added the enhancement New feature or request label Nov 12, 2026

@LunaWhispers LunaWhispers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@gaius-qi
gaius-qi enabled auto-merge (squash) November 12, 2026 09:15

@mingcheng mingcheng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@gaius-qi
gaius-qi merged commit 6e91bbc into main Nov 12, 2026
12 checks passed
@gaius-qi
gaius-qi deleted the chore/bump-dragonfly-client branch November 12, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants