rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
463 stars 261 forks source link

Port project membership to the dashboard issues #3307

Open anupama2501 opened 3 years ago

anupama2501 commented 3 years ago

Addressing 3 issues in this ticket

Rancher server master-head 4d18400

  1. Create an rke2 node driver cluster in the rancher server master-head with 1 worker, 1 etcd, 1 cp from cluster explorer.
  2. Create two standard users user1, user2, user3 and user4 and once the cluster is active, create a project P1
  3. Add the users, user1 as Project owner, user2 as Project member, user3 as Read-only and user4 with custom Manage workloads access in the project P1 of the clusters from explore cluster --> project & namespaces -> Create Project --> Add

Issue1 - System account is visible in the members list for users with project owner, project member, read-only permissions

Screenshot for reference:

Screen Shot 2021-06-21 at 3 37 16 PM

Issue2 - If we login as user4 with custom permissions manage workloads, from the project members user is displayed as Project owner

Expected result:

Issue3 - Create option from the workload page can be removed for the users with Readonly and custom access

Related issue: https://github.com/rancher/dashboard/issues/2673

gaktive commented 3 years ago

Will fork item 2 into a ticket for 2.6; the others can wait for 2.6.x.

@anupama2501 for easier triage, can you file separate items for requests like this in the future?