Skip to content

Relation of authentication and authorization to docker commands #696

@ghost

Description

From my understanding to complete a "docker push" the user must be logged in first, e.g. "docker login registry.external".

From the documentation at spec/auth/token.md it says:

Attempt to begin a push/pull operation with the registry.

  1. If the registry requires authorization it will return a 401 Unauthorized HTTP response with information on how to authenticate.
  2. The registry client makes a request to the authorization service for a signed JSON Web Token.
  3. The authorization service returns a token.
  4. The client retries the original request with the token embedded in the request header.
  5. The Registry authorizes the client and begins the push/pull session as usual.

Is there an assumption before these steps start that the user is authenticated?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions