-
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
[Bug]: 403 error creating model server with restricted permissions #1776
Comments
@christianvogt you tested this on a cluster / ie not running it locally? The Service Account should manage this 🤔 -- is this reproducible on ODH? |
@andrewballantyne this was found on Red Hat Developer Sandbox |
oh wow, we fixed the rolebinding creation, but this seems to be targeted to the logic that adds an annotation in the project, this might totally be reproducible in ODH I think. |
It seems that our permissions are right, we might wanna check wether the dev sandbox has modified those permissions. |
This occurs because the An investigation into what is the correct permission to apply here needs to be done. At first thought it's likely that we should check if the user has |
@christianvogt @andrewballantyne @lucferbux do you think it is a real use case? If so, we should add this in our testing. |
@bdattoma It is a real use-case
This will error out. Our fix it to release some permission pressure. Essentially we are looking for "do you have the ability to write to the Project resource" and in reality we should be looking to see if you can create something IN the project... or view the project. We just are stopping the case of "I'm going to make the service account add the modelmesh label to someone else's project"... which is good for sanity, but we took it too far (first creation of Model Server) for non Admins of the project. Once the label is added, no problem exists. |
@andrewballantyne if the admin creates the project from RHODS Dashboard, the MM label should be automatically added, shouldn't it? |
@bdattoma Yes gitops is a type of flow we have to start supporting better. Also creating the Project itself is done when you cannot allow your users to self provision new projects. These two points are real world use-cases we need to support in the Dashboard. We are also removing it on initial creation. Adding it back on adding of the server. Two reasons for this:
|
Understood. Wouldn't it be better to have a clear set of requirements for the GitOps flow? So instead of adding some improvements here and there when it happens, we could have a clear view of what we need to implement and what is already in place. |
@bdattoma gitops flows are one of many reasons why we need to support a lazy add of the modelmesh. Should we have clear requirements for what needs to happen? Yes, but no one is writing them and it's just been sorta adhoc to what we do about it as it's reported. I'll inquire from Jeff to see if he has this on his roadmap. |
Thank you! Keep us updated with that discussion :) |
@lucferbux If you would like to include this issue in the 1.34 Release Notes, please provide the text for the "Known issues" section. |
This just happens in our dev sandbox, I guess it can be included but it's not something our customers will face in their clusters. @bredamc |
As I noted in the release notes doc... but I'll reply here as well for posterity. We need to be careful about limitations being swept away as "only on x deployment"... if it is a problem on any cluster, it is a problem for the product. The priority is the only thing that changes. This issue is not cluster specific, but is the flow to creating DS Projects specifically. Admins creating the project for the user & not granting them admin but edit over it, is that that far fetched. #1776 (comment) |
In that case, I think we should document it -- can one of you please provide the text for the release notes? |
@andrewballantyne @bdattoma This issue is already documented in the 1.33 Release Notes with the following text: Is that text correct, or should we replace it with the following text (or something similar): |
We could try merging the 2, sth like:
|
I agree with Berto's text... I think the example helps out the explanation. |
Do we want to change the section title, if the issue covers a wider range of problems? " If you do not have administrator permissions for a project that you own, you cannot access some features, and the error messages do not explain why. For example, when you create a model server in an environment where you only have access to a single namespace, an Maybe "Error messages when project owner does not have project administrator privileges" or something similar? |
@bredamc I think if we want to split hairs down to fine grain... we should say "Error messages when user does not have project administrator privileges". There is technically no special "ownership" to projects... just who is admin inside it. |
Thank you, @andrewballantyne -- I am a big fan of fine grain :) |
Migrated to: https://issues.redhat.com/browse/RHOAIENG-548 |
Is there an existing issue for this?
Deploy type
Downstream version (eg.
RHODS 1.29
)Version
1.32
Current Behavior
Dev sandbox is a restricted multi-tenant environment where users only have access to a single namespace.
When trying to create a model server, an error is presented to the user but the model server seems to be created successfully.
The error occurs as ODH attempts to update the namespace resource for which it does not have access.
Expected Behavior
No error with successful model server creation.
OR
If the update to the namespace is crucial, then the model server probably shouldn't be created in the first place.
OR
Better messaging because it's not clear what is going on to the user even though the model server was created.
Steps To Reproduce
Red Hat OpenShift Data Science
Data Science Projects
Add Server
Observe the 403 error but also that the model server is successfully created as seen when the modal is closed.
Workaround (if any)
No response
What browsers are you seeing the problem on?
No response
Anything else
No response
The text was updated successfully, but these errors were encountered: