rancher: [BUG] Project role with Patch verb doesn't grant user Patch access rights

This is related to https://github.com/rancher/dashboard/issues/7897

There may be some UI work to done after this.

User Information

  • Standard User with Deployment resource - GET, LIST and PATCH permissions
  • NB: UPDATE is not granted

Describe the bug API doesn’t have a link / declare permissions for PATCH PATCH verb seemed to be based on UPDATE

To Reproduce Follow the steps here to reproduce original bug https://github.com/rancher/dashboard/issues/7897

Afterwards:

  • Go to View API and inspect the schema/response
  • User is missing the both PATCH and PUT verbs/links
  • Modify the created project role to include the UPDATE Verb
  • Schema shows that now user have both PATCH and UPDATE verbs

Result

  • User is not able to perform PATCH updates.
  • API doesn’t show user have PATCH permissions

Expected Result

  • User with PATCH access can perform PATCH on resource. Particularly deployments.

Screenshots image

image

image

image

image

Additional context

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 23 (20 by maintainers)

Most upvoted comments

@richard-cox Sorry for the lack of clarity - I agree that the root cause is in Steve and that Steve should work as the UI is expecting. What I meant there was more that the users should still be able to perform the scale operation without the UI if need be.