OctopusDeploy / Issues

| Public | Bug reports and known issues for Octopus Deploy and all related tools
https://octopus.com
162 stars 20 forks source link

Docker feed does not support token authentication #6413

Open mcasperson opened 4 years ago

mcasperson commented 4 years ago

Prerequisites

The bug

Docker repositories can make use of token authentication, which is described at https://docs.docker.com/registry/spec/auth/token/. This spec requires multiple requests between the docker repository and a secondary auth service.

Octopus only supports basic auth in Docker feeds, and repositories that use token auth will fail.

What I expected to happen

Octopus should authenticate with the docker repository.

Affected versions

All versions of Octopus are affected.

Workarounds

The Docker repository must be configured to support basic auth to work with Octopus.

Links

https://secure.helpscout.net/conversation/1178164877/65319/

mcasperson commented 4 years ago

Looking at the code, the DockerRegistryOAuthClient class preloads basic auth headers, and responds to a 401 response code with an exception.

CrazyMushu commented 3 years ago

any updates ?

mcasperson commented 3 years ago

Docker feed does not support credentials.

mcasperson commented 3 years ago

@CrazyMushu

This issue is on our backlog, but unfortunately at this time I cannot provide an indication of when it will be addressed.