-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Operator V2] Access to DS Projects fails if DS Pipelines are disabled from DSC #1870
Comments
is this the expected behavior in v1 operator? |
This is not a case for operator v1 because we cannot disable components by using DSC DS projects have more features than just Pipelines, so I believe a user of V2 operator can choose to enable workbenches and not pipelines. if that the case, the DS project must be accessible |
so the real solution is we need to get the rules on datasciencepipelinesapplications with
so the non-admin users can get admin privileges that will have the permissions specified in this ClusterRole. purely with PR is not enough opendatahub-io/opendatahub-operator#529 |
and seems like we have several components actually are setting aggregate-to-admin for different clusterroles. |
@harshad16 @atheo89 workbench and @lucferbux @andrewballantyne UI teams, could you help me to identify the issue here: if it is something from the workbench or dashboard or even operator? TL;DR: offline discussed with Berto, this is a wrong behavior, that ODH operator does not need to have in v1, since all components are by default enabled => ClusterRole with aggragated admin permission are added, but in v2, we only create such if the component is Managed. So the question is, why it requires such permission if non-admin user wants to only access Data Science Projects. |
the workaround seems to be disabling pipelines from OdhDashboardConfig instance: |
This seems like UI people would be able to answer better than the notebooks-teams.
probably as current in the data science project instance: workbenches, data science pipeline and model serving |
@harshad16 I tried removing model serving component, and the behavior is different: user is able to access their DS Project, but an error msg is rendered in the model serving section (see the screenshot below). |
Seems like then the close relation is only with data science pipeline, perhaps as you mentioned the workaround |
This definitely seems like a Dashboard issue. Interesting state of K8s to give a 403 error if the CRD does not exist for basic users. /transfer odh-dashboard Hopefully the bot exists in this repo 🙂 |
thank you all for looking into it :) |
/transfer odh-dashboard |
I imagine this has a reliance on opendatahub-io/opendatahub-operator#588 in some way. We could probably handle the error for this ticket by just not failing like this... but to get it right we need to rework our feature flags & rely on the DSC information. |
makes sense to me. However, is there still a value in having the additional feature flags in the OdhDashboardConfig CR? If yes, then the dashboard should rely on the combination of both |
@harshad16 If you would like to include this issue in the 1.34 Release Notes, please provide the text for the "Known issues" section. |
@bredamc This is a known issue for v2 operator, I don't think it applies to the v1 operator for 1.34. Aimed to be fixed in 1.35 |
Thanks @andrewballantyne. We already mention the V2 Operator in the "Limited Availability features" section of the 1.33 Release Notes, so I wondered if we should include this issue. Fine with me to exclude it in 1.34 :) |
@bredamc I don't fully know the rules of LA, so I'll follow your lead on what we want to report. |
@andrewballantyne We can include this issue in the self-managed version of the 1.34 Release Notes. Here is some suggested text, please advise if we need to change it. If a workaround is available, please specify. " Red Hat OpenShift Data Science Operator V2 only: If pipelines are disabled in the DataScienceCluster object, users who are not cluster admins cannot access projects that they created. Red Hat OpenShift Data Science Operator V2 is a Limited Availability feature. |
@bredamc so we need to address this two ways:
So something like:
|
@andrewballantyne Thank you for the workaround -- is the following text correct? "
" |
@bredamc Small correction... it's a "CR" they are modifying, not a "CRD". The CRDs are definitions, "blueprints"; in this case it already supports the ability to disable. The CRs are resources, these are data. The patch command should work. |
Great -- thanks, Andrew! |
Describe the bug
When trying to access a Data Science Project using a non-cluster-admin user, we get a permission error related to pipelines-definition, which prevents us to use DS Projects UI
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors, user can use the DS Project UI page
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: