Commit Graph

18 Commits

Author SHA1 Message Date
Cody Jackson 2c1e67e7ca Now directly create and interact with norman bindings
Removed binding filtering and now just use norman bindings. The backend actually does the filtering when using norman.

https://github.com/rancher/dashboard/issues/3768#issuecomment-901827980
2021-08-20 09:28:38 -07:00
Nancy 6fb0752b20
Merge pull request #3915 from mantis-toboggan-md/bugfix-cluster-members
[master] fix clusterrolebinding creation for standard user
2021-08-19 06:22:34 -07:00
Nancy Butler 303ffac53e fix clusterrolebinding creation for standard user 2021-08-18 12:34:14 -07:00
Cody Jackson 6ec898197f Updating how we do binding filtering
We now filter based on the binding.user.isSystem setting.
2021-08-18 10:43:25 -07:00
Richard Cox b2234bcac2 Changes following review, fix norman schema check 2021-08-16 13:59:26 +01:00
Richard Cox 24b2ae0fce Ensure users can only see cluster/project membership details if they have perms to 2021-08-13 11:32:10 +01:00
Vincent Fiduccia 2d0db36acc
Merge pull request #3799 from mantis-toboggan-md/bugfix-projects-permissions
[master]remove references to /v1/users in membershipeditor
2021-08-11 18:52:59 -07:00
Vincent Fiduccia e34468e7eb
This filter doesn't work 2021-08-11 13:42:50 -07:00
Nancy Butler ae6b165c0b remove references to users in membershipeditor 2021-08-11 10:53:14 -07:00
Richard Cox 633b606601 Allow non-admins to create projects without supplying members
- Non-admin create was blocked (create button disabled) given their lack of rights to the binding type
- When non-admins create their project they get this binding automatically, so count case as valid

Also
- Disable remove of a member binding if there is only one user
  - covers case where a non-admin can remove themselves when editing their project and not re-add
2021-08-11 13:21:13 +01:00
Richard Cox dea7b53c5e Ensure we wait for requried resources before leaving cluster import / create rke2
- Previously nav away was occurring inside `this.save` before we could wait for the mgmt cluster
- This meant some info was missing when we arrived at the next page
- So move wait and role change into after hook and rely on native nav in this.save again
2021-08-08 11:56:10 +01:00
Richard Cox 5dff739587 Fix creation of group cluster and project template bindings
- make userPrincipal id/name properties generic in mgnt binding types
  - userPrincipalName becomes principalName
  - principalId comes from this.principalName || this.userPrincipalName || this.groupPrincipalName
- use principal to determine user/group and properties in norman to save
- removed properties in norman save bindings that weren't needed
2021-08-05 14:47:01 +01:00
Cody Jackson 1381306897 Making the default admin show up for default/system projects
Making an exception for cluster/project owners when filtering out system bindings. Also making sure we filter out the default binding when evaluating newBindings since this yielded us adding a second admin to project pages.

https://github.com/rancher/dashboard/issues/3550#issuecomment-891359765
2021-08-04 14:52:14 -07:00
Nancy bf3e098dfe
Merge pull request #3489 from mantis-toboggan-md/bugfix-projects-list
Project/namespace fixes
2021-07-22 09:12:09 -07:00
Vincent Fiduccia 60455debbf
Call save in the right order so members get added 2021-07-19 01:58:09 -07:00
Nancy Butler a9c502953c project-ns-list-fixes 2021-07-16 08:20:01 -07:00
Cody Jackson 82e94843d8 Updating how we check if a clusterRoleTemplateBinding isSystem
Turns out `authz.management.cattle.io/creator-owner-binding` is more a reflection on the current state of something rather than the origin of something.

rancher/dashboard#3296
2021-07-12 15:04:46 -07:00
Cody Jackson 578a4b8888 Adding cluster membership to the rke2 pages
rancher/dashboard#3183
2021-07-07 15:59:57 -07:00