Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-21285

Creating Access token for transient username with more than 52 chars throws "Bad credentials" for docker login

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.12.3
    • Component/s: None
    • Labels:
    • Severity:
      Medium

      Description

      Steps to reproduce:
      1. Create an Access token as per  https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CreateToken for a transient username that contains 53 chars (for example:
      rnrdlnvazlzajpkpfqljitzfbtvvzepppupkhrugxjjthxxyeokdl)
      2. Use the output to perform a "docker login" with the transient username (rnrdlnvazlzajpkpfqljitzfbtvvzepppupkhrugxjjthxxyeokdl)

      3. Notice the 401 Bad Creds error

      *If we create an internal username with 53 chars, the issue is not reproduced. As well as in cases the transient username contains 52 chars. So, it seems it is only the case when using a transient username with more than 52 chars.

        Attachments

          Activity

            People

            Assignee:
            tomers Tomer Slutsky
            Reporter:
            Maayana Maayan Amrani
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

                Connection: RTFACT Sync
                RTMID-21285 -
                SYNCHRONIZED
                • Last Sync Date: