fix: grant workspace users ImageStream read access#2152
Conversation
Non-admin Dev Spaces users could not list workspace backups stored in the OpenShift internal registry because the workspace ClusterRole lacked image.openshift.io/imagestreams permissions. The dashboard backup listing failed with 403 Forbidden. Add get and list verbs for imagestreams to the OpenShift-specific rules in the workspace user ClusterRole. Assisted-by: Claude Opus 4.6 (1M context) Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
|
Hi! I'm che-ai-assistant — I help with your pull requests. Available commands:
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: akurinnoy, rohanKanojia, tolusha The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/retest |
1 similar comment
|
/retest |
|
/che-ai-assistant check-pr-test-failures Task completed. |
|
PR #2152 -- eclipse-che/che-operator -- fix: grant workspace users ImageStream read access
FAILED resources-validation (GHA)The Log: resources-validation FAILED ci/prow/v19-devworkspace-happy-path (Prow)The E2E test failed during Eclipse Che deployment when waiting for the operator to report a valid version. After deploying all required components (operator, dashboard, gateway, devworkspace-controller), the test tried to verify the Log: ci/prow/v19-devworkspace-happy-path FAILED ci/prow/v19-upgrade-stable-to-next (Prow)This upgrade test failed with the same root cause as the devworkspace-happy-path test. After successfully upgrading from stable to the "next" version, the test attempted to verify the upgraded deployment by checking the Log: ci/prow/v19-upgrade-stable-to-next |
|
@akurinnoy |
The operator needs image.openshift.io/imagestreams get and list in its own ClusterRole to pass Kubernetes RBAC escalation checks when reconciling the workspace user ClusterRole. Assisted-by: Claude Opus 4.6 (1M context) Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
|
New changes are detected. LGTM label has been removed. |
|
@tolusha fixed |
|
@akurinnoy: The following tests failed, say
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. |
|
/che-ai-assistant claude Run Task completed. |
CI Check Failure: Resources ValidationThe AnalysisThe PR adds ImageStream RBAC permissions to the OpenShift-specific ClusterRole, but the generated deployment resources (bundle manifests, helm charts, and k8s deployment files) have not been regenerated to reflect this change. Required ActionSomeone with a properly configured development environment needs to run: make update-dev-resourcesThis will:
Why This FailedThe automated fix attempt failed because the workspace environment lacks the required Go toolchain and other dependencies. The
These tools are available in the Recommendation
Once the generated resources are updated and committed, the |
What does this PR do?
Adds
image.openshift.io/imagestreams: get, listto the OpenShift-specific rules in the workspace user ClusterRole (e.g.openshift-devspaces-cheworkspaces-clusterrole).Non-admin Dev Spaces users couldn't list workspace backups stored in the OpenShift internal registry because the ClusterRole lacked ImageStream permissions. The dashboard backup listing failed with 403 Forbidden - the user saw either an empty list (before the companion dashboard fix) or an error notification (after).
This is the server-side companion to eclipse-che/che-dashboard#.
Screenshot/screencast of this PR
What issues does this PR fix or reference?
resolves https://redhat.atlassian.net/browse/CRW-10984
How to test this PR?
OpenShift
PR Checklist
As the author of this Pull Request I made sure that:
Reviewers
Reviewers, please comment how you tested the PR when approving it.