- 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
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
- Partial settings are loaded before logging in via the `_ALL_IF_AUTHED` flag
- Any other attempt to findAll without flag will result in list marked as `haveAll` with the partial set of results
- Any attempt afterwards to findAll would just return the partial list and not refetch
- There were a couple of places this happened pre-log in, resulting in partial list of settings after log in
- This was needed to show version info (and to populate settings page)
- Ensure we don't clean out non-command properties from container after saving command (#3379)
- Ensure the container reference isn't broken (fixes change of container image after changing command)
- Filter out namespaces with no projects instead of including 'undefined' in 'toMove'
- (not related to this PR.. but same area) As per #3469 only show projects from current cluster
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
- Normally this is the local cluster for admins
- For non-admins (restricted-admins, standard users, etc) who don't have access to the local cluster this causes this causes 403 errors
- So for cases where we don't have a cluster default to a 'blank' one which we don't fetch
- Still need to check places where we assume 'local' cluster, including in routes, where we should use the new blank cluster... and pages/components that assume we have a currentCluster
- Use new newUserSetPassword string
- Removed unused USERNAME query param definition
- Tidied up some boolean logic, removed need for lodash fn
- Fixed issue where if a user didn't reset their password (for example due to page refresh) they were stuck in a loop until session times out
- During these tweaks i broke some of the original logic, so fixed. Some of the changes are just different ways of doing the same thing given changes above
Unrelated to PR but whilst in the area...
- Ensure value of mustChangePassword is correct when editing a user
- Added error handling to step 1 of setup
- Setup password text suggests using random password, so start with that selected
- vertical position won't jiggle on toggling password type
- Use a new generic prompt (displays customisable text and provides action to execute)
- Also fixed an issue where previous button was shown after uninstalling v1
- Only show if there are multiple versions associated with the chart
- #3285
Also
- Improved generic step 2 text to be more fitting for clusters (instead of apps)
- Tweak some translations
- Remove used alwaysGroup
- Fix RKE1 scale pool & reactivity
- Show management pool table if rke2 or have machines
- Show node pool table if not management pool and have nodes
- Cleaned up `roles()` function (and made common fn)
- Converted some 'clusterId' property names to 'mgmtClusterId'
- Add a Node list grouped by Node Pools
- Both Node/Node Pools are of type 'management'
- For pools...
- Show node count next to pool label
- Show description of pool underneath pool label
- Show convenience scale down/up buttons (normally scale by cluster config)
- Show node pool action menu
- For nodes
- Link to kube node
- Show node role/s
- Update Machine/Machine Pool List
- For pools
- Like Node Pools add a description of machine pool underneath label
- Like Node Pools Show convienience scale down/up buttons (normally scale by cluster config)
- For machines
- Like Nodes link to kube node
- Like Nodes show node machine role/s
- Add resource descriptions (shown on lists) for machine, machine deployment and machine set
- Addresses #3291
- Includes #3016, #493