Skip to content

Conversation

@JoostVanDerSluis
Copy link

The operator currently cannot be used on Openshift/OKD because of the hard-coded runAsUser and fsGroup attributes in the securitycontext.

The people behind Openshift/OKD consider hard-coded userid's a security hazard, because other pods that share the same volume and userid might access the data from the pod.

So every namespace is assigned a random range of UID's that can be used. Best practice is to omit runAsUser so that an UID from this range is automatically selected. That is what this patch does, when Openshift is detected, runAsUser and fsGroup are omitted.

With a switch this Openshift-compatibility mode can be forced to be off or on. The automatic detection is then not used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant