Skip to content

notation auth to CNCF ORAS registry #211

@FeynmanZhou

Description

@FeynmanZhou

Discussed in #170

Originally posted by jimmyraywv May 5, 2022
I am using the CNCF ORAS registry distribution in k8s. I have setup basic auth with htpasswd. The oras CLI can authenticate with the registry using -u ... -p ... flags. However, the notation 0.7.1-alpha.1 CLI fails auth with the same -u ... -p ... flags. Can someone suggest what I am missing? The command I am using is below:

This succeeds:

oras discover -o tree $IMAGE  -u <USERNAME> -p <PASSWORD>

This does not succeed:

notation sign $IMAGE -u <USERNAME> -p <PASSWORD>
2022/05/04 19:03:32 https://<HOST>:443/v2/<REPO>/manifests/<VERSION>: 401 Unauthorized
```</div>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions