Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
UsernamePasswordDockerRegistryTokenSource do produce a token by just Base64 encoding username+password. An actual authentication token has to be generated using the auth API , which require some docker CLI or API call. As such sounds to me UsernamePasswordDockerRegistryTokenSource is just a non-sense and should be disabled
I eventually understood DockerRegistryToken javadoc isn't clear this "token" abstraction is NOT the same as the docker API identitytoken, but only the storage format used in config file.
So this is actually the "Auth" attribute in https://github.com/docker/docker-ce/blob/master/components/engine/api/types/auth.go, none of the Identity|Registry Tokends