Repository navigation
revert(controlplane): drop the anyuid SCC grant and delete its binding - #961
Merged
Merged
Conversation
mxsrc
force-pushed
the
revert-anyuid-scc
branch
from
November 23, 2026 10:22
e855b6b to
5dd10bf
Compare
mxsrc
marked this pull request as ready for review
November 23, 2026 14:01
sudo invoked ping used to be present in controlplane images, but has been removed since. The introduced change that permits anyuid is no longer necessary and is overly permissive, hence it is reverted here. This reverts commit 7a7e826.
mxsrc
force-pushed
the
revert-anyuid-scc
branch
from
November 23, 2026 14:05
5dd10bf to
b2b7419
Compare
boddumanohar
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reverts #954 (anyuid SCC grant) and deletes the
simplyblock-scc-anyuidRoleBinding it left on existing OpenShift clusters.Stacked on #960, which sets
net.ipv4.ping_group_rangeso the control plane can ping without sudo. Its base issudoless-ping. Retarget tomainonce #960 merges.Changes
git revertof fix(controlplane): grant the anyuid SCC to the control plane's accoun… #954: norequired-sccannotation on the pods and no anyuid RoleBinding.removeAnyUIDSCCBinding(scc.go), called at the end ofapplyEverything, on OpenShift only. The binding is owned by the ControlPlane, so it is not garbage-collected while the ControlPlane exists. It is deleted by name without a read, so no RoleBinding informer is started. NotFound is ignored.controlPlaneImageWorkloadsmoved from the revertedscc_test.gotoworkloads_test.go, where fix(controlplane): let the control plane's pods ping without sudo #960's test uses it.Before merging
pingwithoutsudo) must be in the oldest control plane image this operator deploys. Older images still runsudo pingand report every node unreachable under restricted-v2.ping_hostis the onlysudocall that runs in these pods on Kubernetes. Whether the image otherwise runs under restricted-v2's random UID (home directory, written files) is untested and needs an OpenShift run.Testing
TestOnOpenShiftTheLeftoverAnyUIDBindingIsDeleted, red before the cleanup, green after.TestOnOpenShiftNoAnyUIDBindingIsNotAnError.make testpasses. The quality gate passes.