Skip to content

[release-4.20] OCPBUGS-77005: scc: restricted-v3: Fix runAsUser range#1948

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:release-4.20from
openshift-cherrypick-robot:cherry-pick-1947-to-release-4.20
Mar 6, 2026
Merged

[release-4.20] OCPBUGS-77005: scc: restricted-v3: Fix runAsUser range#1948
openshift-merge-bot[bot] merged 1 commit intoopenshift:release-4.20from
openshift-cherrypick-robot:cherry-pick-1947-to-release-4.20

Conversation

@openshift-cherrypick-robot
Copy link
Copy Markdown

This is an automated cherry-pick of #1947

/assign haircommander

runAsUser does not use ranges.min and ranges.max,
rather the right keys are uidRangeMin and uidRangeMax.
@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented Oct 23, 2025

@openshift-cherrypick-robot: Ignoring requests to cherry-pick non-bug issues: CNTRLPLANE-1544

Details

In response to this:

This is an automated cherry-pick of #1947

/assign haircommander

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Oct 23, 2025

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci Bot requested review from benluddy and sanchezl October 23, 2025 12:36
@haircommander
Copy link
Copy Markdown
Member

/retest
/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Oct 23, 2025
@openshift-bot
Copy link
Copy Markdown
Contributor

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci openshift-ci Bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 22, 2026
@tchap
Copy link
Copy Markdown
Contributor

tchap commented Feb 17, 2026

/remove-lifecycle stale

@openshift-ci openshift-ci Bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 17, 2026
@tchap
Copy link
Copy Markdown
Contributor

tchap commented Feb 17, 2026

/jira cherrypick OCPBUGS-77004

@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented Feb 17, 2026

@tchap: Jira Issue OCPBUGS-77004 has been cloned as Jira Issue OCPBUGS-77005. Will retitle bug to link to clone.
/retitle OCPBUGS-77005: [release-4.20] CNTRLPLANE-1544: scc: restricted-v3: Fix runAsUser range

Details

In response to this:

/jira cherrypick OCPBUGS-77004

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot changed the title [release-4.20] CNTRLPLANE-1544: scc: restricted-v3: Fix runAsUser range OCPBUGS-77005: [release-4.20] CNTRLPLANE-1544: scc: restricted-v3: Fix runAsUser range Feb 17, 2026
@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 17, 2026
@openshift-ci-robot
Copy link
Copy Markdown

@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-77005, which is invalid:

  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required". For more information you can reference the OpenShift Bug Process.

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

This is an automated cherry-pick of #1947

/assign haircommander

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@tchap
Copy link
Copy Markdown
Contributor

tchap commented Feb 17, 2026

/retitle [release-4.20] OCPBUGS-77005: scc: restricted-v3: Fix runAsUser range

@openshift-ci openshift-ci Bot changed the title OCPBUGS-77005: [release-4.20] CNTRLPLANE-1544: scc: restricted-v3: Fix runAsUser range [release-4.20] OCPBUGS-77005: scc: restricted-v3: Fix runAsUser range Feb 17, 2026
@tchap
Copy link
Copy Markdown
Contributor

tchap commented Feb 17, 2026

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 17, 2026
@openshift-ci-robot
Copy link
Copy Markdown

@tchap: This pull request references Jira Issue OCPBUGS-77005, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.20.z) matches configured target version for branch (4.20.z)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note text is set and does not match the template
  • dependent bug Jira Issue OCPBUGS-77004 is in the state Closed (Done), which is one of the valid states (VERIFIED, RELEASE PENDING, CLOSED (ERRATA), CLOSED (CURRENT RELEASE), CLOSED (DONE), CLOSED (DONE-ERRATA))
  • dependent Jira Issue OCPBUGS-77004 targets the "4.21.0" version, which is one of the valid target versions: 4.21.0, 4.21.z
  • bug has dependents

Requesting review from QA contact:
/cc @wangke19

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci Bot requested a review from wangke19 February 17, 2026 15:45
@benluddy
Copy link
Copy Markdown
Contributor

/approve
/label backport-risk-assessed

@openshift-ci openshift-ci Bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Feb 17, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Feb 17, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: benluddy, haircommander, openshift-cherrypick-robot

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 17, 2026
@ropatil010
Copy link
Copy Markdown

Verification: PASS
Payload: 4.20.0-0-2026-02-18-070039-test-ci-ln-zi4wsvk-latest
Cluster bot: build 4.20,#1948
Profile: ipi-on-aws/versioned-installer-ci

// Execution result:

oc get scc/restricted-v3 -o yaml | yq ".runAsUser"
type: MustRunAsRange
uidRangeMax: 65534
uidRangeMin: 1000

Create the ClusterRoleBinding kind as shown in
PR: https://github.com/openshift/cluster-kube-apiserver-operator/pull/1950

oc get deploy -n testropatil -o wide
NAME                                 READY   UP-TO-DATE   AVAILABLE   AGE   CONTAINERS   IMAGES   SELECTOR
deployment-invalid-user-test-65535   0/1     0            0           38s   testing      ubuntu   app=testing
deployment-invalid-user-test-999     0/1     0            0           37s   testing      ubuntu   app=testing
deployment-valid-user-test-1000      1/1     1            1           36s   testing      ubuntu   app=testing
deployment-valid-user-test-65534     1/1     1            1           37s   testing      ubuntu   app=testing

oc get po -o wide -n testropatil
NAME                                                READY   STATUS    RESTARTS   AGE   IP            NODE                                       NOMINATED NODE   READINESS GATES
deployment-valid-user-test-1000-6456475846-9g9z7    1/1     Running   0          15s   10.131.0.41   ip-10-0-49-50.us-east-2.compute.internal   <none>           <none>
deployment-valid-user-test-65534-65cf89d598-h45ft   1/1     Running   0          16s   10.131.0.40   ip-10-0-49-50.us-east-2.compute.internal   <none>           <none>

oc get deploy/deployment-invalid-user-test-65535 -n testropatil -o yaml | yq ".status.conditions[].message" 
Created new replica set "deployment-invalid-user-test-65535-5bfc7558c9"
Deployment does not have minimum availability.
pods "deployment-invalid-user-test-65535-5bfc7558c9-" is forbidden: unable to validate against any security context constraint: provider restricted-v3: .containers[0].runAsUser: Invalid value: 65535: must be in the ranges: [1000, 65534]

oc get deploy/deployment-invalid-user-test-999 -n testropatil -o yaml | yq ".status.conditions[].message"
Created new replica set "deployment-invalid-user-test-999-754fc8b696"
Deployment does not have minimum availability.
pods "deployment-invalid-user-test-999-754fc8b696-" is forbidden: unable to validate against any security context constraint: provider restricted-v3: .containers[0].runAsUser: Invalid value: 999: must be in the ranges: [1000, 65534]

oc exec po/deployment-valid-user-test-1000-6456475846-9g9z7 -n testropatil -- sh -c "id"
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu)

oc exec po/deployment-valid-user-test-65534-65cf89d598-h45ft -n testropatil -- sh -c "id"
uid=65534(nobody) gid=1000(ubuntu) groups=1000(ubuntu)

/verified by @ropatil

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Feb 18, 2026
@openshift-ci-robot
Copy link
Copy Markdown

@ropatil010: This PR has been marked as verified by @ropatil.

Details

In response to this:

Verification: PASS
Payload: 4.20.0-0-2026-02-18-070039-test-ci-ln-zi4wsvk-latest
Cluster bot: build 4.20,#1948
Profile: ipi-on-aws/versioned-installer-ci

// Execution result:

oc get scc/restricted-v3 -o yaml | yq ".runAsUser"
type: MustRunAsRange
uidRangeMax: 65534
uidRangeMin: 1000

Create the ClusterRoleBinding kind as shown in
PR: https://github.com/openshift/cluster-kube-apiserver-operator/pull/1950

oc get deploy -n testropatil -o wide
NAME                                 READY   UP-TO-DATE   AVAILABLE   AGE   CONTAINERS   IMAGES   SELECTOR
deployment-invalid-user-test-65535   0/1     0            0           38s   testing      ubuntu   app=testing
deployment-invalid-user-test-999     0/1     0            0           37s   testing      ubuntu   app=testing
deployment-valid-user-test-1000      1/1     1            1           36s   testing      ubuntu   app=testing
deployment-valid-user-test-65534     1/1     1            1           37s   testing      ubuntu   app=testing

oc get po -o wide -n testropatil
NAME                                                READY   STATUS    RESTARTS   AGE   IP            NODE                                       NOMINATED NODE   READINESS GATES
deployment-valid-user-test-1000-6456475846-9g9z7    1/1     Running   0          15s   10.131.0.41   ip-10-0-49-50.us-east-2.compute.internal   <none>           <none>
deployment-valid-user-test-65534-65cf89d598-h45ft   1/1     Running   0          16s   10.131.0.40   ip-10-0-49-50.us-east-2.compute.internal   <none>           <none>

oc get deploy/deployment-invalid-user-test-65535 -n testropatil -o yaml | yq ".status.conditions[].message" 
Created new replica set "deployment-invalid-user-test-65535-5bfc7558c9"
Deployment does not have minimum availability.
pods "deployment-invalid-user-test-65535-5bfc7558c9-" is forbidden: unable to validate against any security context constraint: provider restricted-v3: .containers[0].runAsUser: Invalid value: 65535: must be in the ranges: [1000, 65534]

oc get deploy/deployment-invalid-user-test-999 -n testropatil -o yaml | yq ".status.conditions[].message"
Created new replica set "deployment-invalid-user-test-999-754fc8b696"
Deployment does not have minimum availability.
pods "deployment-invalid-user-test-999-754fc8b696-" is forbidden: unable to validate against any security context constraint: provider restricted-v3: .containers[0].runAsUser: Invalid value: 999: must be in the ranges: [1000, 65534]

oc exec po/deployment-valid-user-test-1000-6456475846-9g9z7 -n testropatil -- sh -c "id"
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu)

oc exec po/deployment-valid-user-test-65534-65cf89d598-h45ft -n testropatil -- sh -c "id"
uid=65534(nobody) gid=1000(ubuntu) groups=1000(ubuntu)

/verified by @ropatil

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@ropatil010
Copy link
Copy Markdown

/verified by @ropatil010

@openshift-ci-robot
Copy link
Copy Markdown

@ropatil010: This PR has been marked as verified by @ropatil010.

Details

In response to this:

/verified by @ropatil010

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@ropatil010
Copy link
Copy Markdown

/retest

@ropatil010
Copy link
Copy Markdown

/test e2e-aws-ovn

@tchap
Copy link
Copy Markdown
Contributor

tchap commented Feb 26, 2026

/retest

2 similar comments
@tchap
Copy link
Copy Markdown
Contributor

tchap commented Feb 27, 2026

/retest

@tchap
Copy link
Copy Markdown
Contributor

tchap commented Mar 6, 2026

/retest

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Mar 6, 2026

@openshift-cherrypick-robot: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot Bot merged commit d0cf9e7 into openshift:release-4.20 Mar 6, 2026
15 checks passed
@openshift-ci-robot
Copy link
Copy Markdown

@openshift-cherrypick-robot: Jira Issue Verification Checks: Jira Issue OCPBUGS-77005
✔️ This pull request was pre-merge verified.
✔️ All associated pull requests have merged.
✔️ All associated, merged pull requests were pre-merge verified.

Jira Issue OCPBUGS-77005 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓

Details

In response to this:

This is an automated cherry-pick of #1947

/assign haircommander

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants