Skip to content

Test login, push (and authenticated pull) against docker hub #3494

@apostasie

Description

@apostasie

What is the problem you're trying to solve

Right now, we do test most of our registry operations against a locally started distribution registry + cesanta token auth server.

This is good, but has limits. Specifically, Docker Hub resolution mechanisms are "special", be it the way the credentials are stored in the store, or how short names resolve to fully qualified url - and also their token auth server is proprietary IIRC, which might entail some specific behaviors.

We do not currently test that, and have seen a couple of regression recently (#3484, #3485) that could have been caught if we did.

Testing against Hub comes with challenges:

  • we would need a dummy account, and a pair of access tokens
  • it is doubtful we could keep these secrets (as obviously PRs would have access to it) if that was enabled on PR testing
  • hub is notorious for 429-ing when things heat up a little bit - failing the build because of that is a royal PITA

A possible solution would be to run these tests against Hub solely on master (after merge).

This ticket is related to #3257 - and also testing against Gitlab.

Describe the solution you'd like

na

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cie.g., CI failurearea/loginauthentification/ login

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions