Skip to content

Legacy docker config is not supported #801

@JeyJeyGao

Description

@JeyJeyGao

What is not working as expected?

Legacy docker config:

{
  "auths": {
    "https://notationreg.azurecr.io/": {
      "auth": "",
      "email": ""
    }
  }
}

The registry address may contain the https or http prefix and may have a / at the end. Docker CLI still supports the configuration file, so Notation also needs to support it.

What did you expect to happen?

Notation should use the credentials in the docker config with legacy format.

How can we reproduce it?

create a docker config:

{
  "auths": {
    "https://notationreg.azurecr.io/": {
      "auth": "",
      "email": ""
    }
  }
}

docker pull/push works, but Notation list/sign/verify/inspect doesn't work.

Describe your environment

Linux Ubuntu

What is the version of your Notation CLI or Notation Library?

V1.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeed to triage

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions