You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
edit: I'm guessing this issue is related to #18059 - we're using the same oc client as the OP.
When creating a secret via oc secrets new-dockercfg ..., attempts by OpenShift to import that image from a private Artifactory registry results in an error: Authentication is required. However, when creating the same exact secret via the web console, images are able to be pulled. The encoded values of both secrets are exactly the same as well.
I must have misread the encoded strings initially. When docker secrets are generated via CLI, the decoded value looks like this:
Using the web console to attempt to import an image via the Add to Project option:
Could not load image metadata.
Internal error occurred: Get https://artifactory.example.com/v2/some/path/some-image/manifests/1.0.0: unknown: Authentication is required
Expected Result
For the Add to Project option, the deployment configuration form should be displayed as the docker image info pull attempt is successful
Additional Information
It doesn't matter how I attempt to "use" the image - using oc import-image and oc new-app, for example, results in the same error. And to be clear, the registry credentials work perfectly fine via docker commands.
The text was updated successfully, but these errors were encountered:
It looks like in origin 3.6.1 the dockercfg that is generated has the same format regardless of it's generated via the web console or CLI - that is, without the auths object.
edit: I'm guessing this issue is related to #18059 - we're using the same
oc
client as the OP.When creating a secret via
oc secrets new-dockercfg ...
, attempts by OpenShift to import that image from a private Artifactory registry results in an error:Authentication is required
. However, when creating the same exact secret via the web console, images are able to be pulled.The encoded values of both secrets are exactly the same as well.I must have misread the encoded strings initially. When docker secrets are generated via CLI, the decoded value looks like this:
{"auths":{"registry.example.com":{"username":"user","password":"password","email":"[email protected]","auth":"somestring"}}}
whereas the UI equivalent is:
{"registry.example.com":{"username":"user","password":"password","email":"[email protected]","auth":"somestring"}}
Is there a reason why the
auths
portion can cause such a difference?Version
Steps To Reproduce
oc secrets new-dockercfg artifactory-cli-secret --docker-server=artifactory.example.com --docker-username=user --docker-password=password [email protected]
Resources -> Secrets -> Create Secret
Current Result
Using the web console to attempt to import an image via the
Add to Project
option:Expected Result
For the
Add to Project
option, the deployment configuration form should be displayed as the docker image info pull attempt is successfulAdditional Information
It doesn't matter how I attempt to "use" the image - using
oc import-image
andoc new-app
, for example, results in the same error. And to be clear, the registry credentials work perfectly fine viadocker
commands.The text was updated successfully, but these errors were encountered: