Skip to content

policy: pass registry auth to metadata resolver - #4046

Merged
tonistiigi merged 1 commit into
docker:masterfrom
crazy-max:fix-policy-eval-auth
Sep 1, 2026
Merged

policy: pass registry auth to metadata resolver#4046
tonistiigi merged 1 commit into
docker:masterfrom
crazy-max:fix-policy-eval-auth

Conversation

@crazy-max

@crazy-max crazy-max commented Sep 1, 2026

Copy link
Copy Markdown
Member

fixes #3984

docker buildx policy eval --fields now uses the Docker CLI auth configuration when resolving image metadata. This allows policy evaluation to inspect metadata for images in registries that require authentication instead of falling back to anonymous registry access.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max
crazy-max force-pushed the fix-policy-eval-auth branch from 0839f6f to f536571 Compare September 1, 2026 14:09
@crazy-max
crazy-max requested a review from tonistiigi September 1, 2026 14:09
@crazy-max
crazy-max marked this pull request as ready for review September 1, 2026 14:09

@thaJeztah thaJeztah 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

@tonistiigi tonistiigi added this to the v0.37.0 milestone Sep 1, 2026
@tonistiigi
tonistiigi merged commit e78a3f2 into docker:master Sep 1, 2026
162 checks passed
@crazy-max
crazy-max deleted the fix-policy-eval-auth branch September 1, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker buildx policy eval --fields fails to authenticate against dhi.io and requests an anonymous token

3 participants