Podman login into internal OpenShift registry doesn't work if `PersistUserHome ` is enabled
Describe the bug
Podman login into internal OpenShift registry doesn't work if PersistUserHome is enabled
Che version
7.92@latest
Steps to reproduce
- Start an empty workspace on DogFooding Cluster
- Run in the terminal
podman login image-registry.openshift-image-registry.svc:5000 - Obtain expected result
Authenticating with existing credentials for image-registry.openshift-image-registry.svc:5000
Existing credentials are valid. Already logged in to image-registry.openshift-image-registry.svc:5000
- Stop the workspace
- Start the workspace again
- Run in the terminal
podman login image-registry.openshift-image-registry.svc:5000 - Obtain unexpected result, which mean that automatic podman login into internal registry failed:
Username:
Expected behavior
User successfully logged into internal OpenShift registry
Runtime
OpenShift
Screenshots
No response
Installation method
OperatorHub
Environment
Linux
Eclipse Che Logs
No response
Additional context
Solution:
Replace https://github.com/eclipse-che/che-dashboard/blob/main/packages/dashboard-backend/src/devworkspaceClient/services/podmanApi.ts#L92-L93
with export SSL_CERT_DIR=/var/run/secrets/kubernetes.io/serviceaccount
Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.
Mark the issue as fresh with /remove-lifecycle stale in a new comment.
If this issue is safe to close now please do so.
Moderators: Add lifecycle/frozen label to avoid stale mode.