Skip to content

revert(controlplane): drop the anyuid SCC grant and delete its binding - #961

Merged
mxsrc merged 1 commit into
mainfrom
revert-anyuid-scc
Nov 23, 2026
Merged

mxsrc merged 1 commit into
mainfrom
revert-anyuid-scc

Conversation

@mxsrc

@mxsrc mxsrc commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Reverts #954 (anyuid SCC grant) and deletes the simplyblock-scc-anyuid RoleBinding it left on existing OpenShift clusters.

Stacked on #960, which sets net.ipv4.ping_group_range so the control plane can ping without sudo. Its base is sudoless-ping. Retarget to main once #960 merges.

Changes

Before merging

  • sbcli fix(health): ping storage nodes without sudo sbcli#1702 (ping without sudo) must be in the oldest control plane image this operator deploys. Older images still run sudo ping and report every node unreachable under restricted-v2.
  • ping_host is the only sudo call 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 test passes. The quality gate passes.

@mxsrc
mxsrc force-pushed the revert-anyuid-scc branch from e855b6b to 5dd10bf Compare November 23, 2026 10:22
Base automatically changed from sudoless-ping to main November 23, 2026 14:00
@mxsrc
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
mxsrc force-pushed the revert-anyuid-scc branch from 5dd10bf to b2b7419 Compare November 23, 2026 14:05
@mxsrc
mxsrc requested a review from boddumanohar November 23, 2026 14:07
@mxsrc
mxsrc merged commit 4c35662 into main Nov 23, 2026
24 checks passed
@mxsrc
mxsrc deleted the revert-anyuid-scc branch November 23, 2026 14:45
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.

2 participants