Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47474

UsernamePasswordDockerRegistryTokenSource does not provide a valid token

    XMLWordPrintable

    Details

    • Similar Issues:

      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

        Attachments

          Activity

          Hide
          ndeloof Nicolas De Loof added a comment -

          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

          Show
          ndeloof Nicolas De Loof added a comment - 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

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ndeloof Nicolas De Loof
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: