notation auth to CNCF ORAS registry #170
-
I am using the CNCF ORAS registry distribution in k8s. I have setup basic auth with This succeeds:
This does not succeed:
|
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 12 replies
-
Looking into the ORAS logs, I see the following error: According to the ORAS auth error, |
Beta Was this translation helpful? Give feedback.
-
I have the same, tried 0.7.0-alpha.1 and it doesn't help. ACR in South Central with zone redundancy enabled. |
Beta Was this translation helpful? Give feedback.
-
Maybe it just doesn't work? |
Beta Was this translation helpful? Give feedback.
-
@qmuntal The results of my testing are below:
After the
The oras client and docker client logins work fine against the oras registry. I don't know what is different for the notation client:
|
Beta Was this translation helpful? Give feedback.
-
@jimmyraywv a new alpha release of notation is now available, that includes ORAS client integration. This would be a good version to test registry authentication using ORAS. |
Beta Was this translation helpful? Give feedback.
-
At least in part there is an issue when you use @jimmyraywv @ams0 agree with gokarnm - we made a number of improvements to the authentication in the new release which is out today. Can you please try with this? |
Beta Was this translation helpful? Give feedback.
-
@gokarnm @dtzar Please see my results below: With oras registry basic auth enabled:
oras call without creds (fails):
oras call with creds:
notation client version:
notation sign without creds (fails):
notation sign with incorrect creds (fails):
notation sign with creds (fails):
error msg in oras registry logs:
If I disable oras registry basic auth, I see this:
|
Beta Was this translation helpful? Give feedback.
-
@jimmyraywv thanks for sharing your results! If you run this and then try a
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@shizhMSFT solved this problem: #170 (reply in thread) |
Beta Was this translation helpful? Give feedback.
@shizhMSFT solved this problem: #170 (reply in thread)