Skip to content

Draft: Remove 'gitlab-app' RBAC objects to use 'restricted' SCC

Mitchell Nielsen requested to merge 120-restricted-scc into master

Removes the 'gitlab-app'-related RBAC objects. This Service Account and associated RBAC objects served the purpose of binding to the 'anyuid' SecurityContextConstraint.

With recent changes in CNG, we expect that this special case is no longer necessary and can therefore use the default SCC, "restricted". This is the most restrictive SCC.

Further testing will be done with this configuration. If it's found that it won't be doable, we'll investigate using 'nonroot', which is still more restrictive than 'anyuid'.

Update: it looks like this won't be possible until gitlab-org/charts/gitlab!2369 (closed) is merged, as we need to unset the securityContext so OpenShift can inject that configuration.

Closes #120 (closed)

Edited by Mitchell Nielsen

Merge request reports