[OCPBUGS-62642] Fix amIAdmin function to correctly check admin group membership#417
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dustman9000 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add exemption for the osd-admin user when it has the cluster-admins group to support OpenShift CI e2e tests. This is a targeted exemption that requires both the specific username AND group membership. Security rationale: - In production OSD clusters, customers cannot arbitrarily assign users to the cluster-admins group as it's managed by the OAuth infrastructure - The exemption only applies when BOTH conditions are met: username is osd-admin AND user is in cluster-admins group - This is more restrictive than the previous blanket cluster-admins group exemption that was removed in SREP-1565 This fixes CI test failures in openshift/origin endpoint admission tests where the osd-admin user needs to create privileged namespaces like kube-system for testing purposes.
b5ea847 to
59ae773
Compare
|
/hold |
|
@dustman9000: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Allow osd-admin user with cluster-admins group for e2e tests
Add exemption for the osd-admin user when it has the cluster-admins group
to support OpenShift CI e2e tests. This is a targeted exemption that requires
both the specific username AND group membership.
Security rationale:
the cluster-admins group as it's managed by the OAuth infrastructure
osd-admin AND user is in cluster-admins group
exemption that was removed in SREP-1565
This fixes CI test failures in openshift/origin endpoint admission tests
where the osd-admin user needs to create privileged namespaces like
kube-system for testing purposes.