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
Describe the bug
When trying to use the backup-image on Openshift it fails due to restrictions on the /home/user directory. In openshift we run the pod with an arbitrary user-id, and not user 1000, causing access denied to logged from the jenkins-operator pod.
Currently the access is set to:
drwx------. 1 user user 17 Jun 25 2024 user
To Reproduce
Run the backup container locally with an arbitrary user-id, and try to run /home/user/bin/get-latest.sh
docker run -u 10231321 -it quay.io/jenkins-kubernetes-operator/backup-pvc:v0.4.1 /bin/bash
I have no name!@6398951d01cd:/home/user/bin$ /home/user/bin/get-latest.sh
bash: /home/user/bin/get-latest.sh: Permission denied
I have no name!@6398951d01cd:/home/user/bin$
Describe the bug
When trying to use the backup-image on Openshift it fails due to restrictions on the /home/user directory. In openshift we run the pod with an arbitrary user-id, and not user 1000, causing access denied to logged from the jenkins-operator pod.
Currently the access is set to:
drwx------. 1 user user 17 Jun 25 2024 user
To Reproduce
Run the backup container locally with an arbitrary user-id, and try to run /home/user/bin/get-latest.sh
docker run -u 10231321 -it quay.io/jenkins-kubernetes-operator/backup-pvc:v0.4.1 /bin/bash
I have no name!@6398951d01cd:/home/user/bin$ /home/user/bin/get-latest.sh
bash: /home/user/bin/get-latest.sh: Permission denied
I have no name!@6398951d01cd:/home/user/bin$
Additional information
To fix, add chmod a+xr /home/user or similar to the Dockerfile here https://github.com/jenkinsci/kubernetes-operator/blob/master/backup/pvc/Dockerfile#L28
Kubernetes version:
Jenkins Operator version: 0.8.1
Add error logs about the problem here (operator logs and Kubernetes events).
The text was updated successfully, but these errors were encountered: