Auto-assign runAsUser uid not running on openshift, due to default runAsUser: 1000 in deployment #721
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Due to current implementation of deployment.yaml running gitea helm chart inside an openshift platform with:
Thus, allowing openshift to assign the user based on project details, is not possible. By setting the value to null, the value from inside deployment.yaml will take priority and be set on 1000 which will be rejected by openshift scc.
5c7e78b467/templates/gitea/deployment.yaml (L145)
I'm seeing this issue being created in the past but not sure what was the conclusion of it:
https://gitea.com/gitea/helm-chart/issues/567
Bitnami Gitea offers support for openshift compatibility by removing the enforced runAsUser 1000
bcd77ad055/bitnami/common/templates/_compatibility.tpl (L20)
Worth mentioning that if we install with accepted runAsUser/runAsGroup/fsGroup, installation completes successfully.
The request would be here to allow OpenShift to auto-assign a runAsUser UID if one is not specified, ensuring containers run with a UID that adheres to the namespace's security policies and not automatically assign 1000.
Thanks for reporting. So to fully get this right, Openshift automatically injects these options on its own, unless already defined. But since the chart falls back to 1000,Openshift doesn't do anything and it fails.
So basically not falling back to 1000 when not specified would fix Openshift deployments?
Is this summarized correctly? Or am I missing something?
Yep, that would be the scenario.
Hrm. Interesting. I am thinking of a way to not add an Openshift toggle but maybe use the helm override behavior. Such toggles always feel hacky 😀. If the fallback would be explicitly stated in default values.yaml, the "null" override might work. But I am not sure. This needs testing.