Skip to content

Europa: docker registry auth leaks between actions #1253

Closed

Description

@shykes

Problem

Dagger supports pushing and pulling Docker container images. Sometimes Docker registries require authentication, so Dagger defines an API for passing authentication credentials. In the Europa release, each call to #Push, #Pull and #Build (for nested pulls) accepts an auth field.

According to the Dagger API, each individual call to #Push, #Pull and #Build has its own authentication scope: credentials passed to one call are not available to the others.

In the current implementation, this API promise is not respected: all Docker credentials are shared by all calls to #Push, #Pull and #Build in a given Dagger configuration. This is because of a limitation of buildkit, which currently does not allow scoping auth registry authentication to individual calls (see buildkit issue 2472).

Solution

The good news is that there is a path to fixing this in upstream buildkit.

Once this is fixed upstream (and by the way, we should consider contributing this fix ourselves), the implementation will match the API.

Activity

  1. added this to the milestone on Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions