Commit Graph

2108 Commits

Author SHA1 Message Date
Richard Cox 34fdaa2335 Ensure Cluster Tools only shows if user can access required resources
- cluster member gains visiblity of catalog app when they can see a namespace
- fixed in cluster side nav and single cluster info
2021-08-25 13:35:45 +01:00
Richard Cox 3f418ec177
Merge pull request #3992 from richard-cox/master-fix-route-warning
Fix mighty confused routing
2021-08-25 11:11:12 +01:00
Richard Cox 0ccf555427 Improve fix
- Basically, don't auto-select first group entry if we're already expanded
  - covers cases where group is pseudo expanded (root, always open)
- this removes almost all nav warnings
- Tested
  - Auth and Settings products (top level, no visual group root)
  - auth providers double click
  - cluster explorer all sections ('More Resource' doesn't autoselct as before)
  - cluster manager embedded pages
  - resource search (on click this doesn't auto-expand host group as before)
2021-08-25 09:28:20 +01:00
Vincent Fiduccia ee1808b2b7
Handle more types missing (#4009) 2021-08-25 01:14:28 -07:00
Vincent Fiduccia 2542485cb8
Don't set s3 at all for local snapshots 2021-08-25 00:13:19 -07:00
Vincent Fiduccia c3e57dba59
Use norman for rke1 node delete (#3996) 2021-08-25 00:13:19 -07:00
Richard Cox 6a60cc6cec Fix mighty confused routing
- Core Problem
  - Type component selects an item in the side menu... which then fires off groupSelected in Groups component
  - Group component groupSelected then replaces route with first item in group, regardless of the route Type that was just selected
  - Page however still stays on the Type's route and not what the $route now thinks is the current one
  - This leads to all sorts of errors when clicking around types in a group
- Problem from Issue #3989
  - There is a guard in Type that normally prevents the groupSelected from firing if you're on the same page
  - However for the auth provider, where we change the route to a configured provider on click, this compares '/c/local/auth/config' with '/c/local/auth/config/github'
  - This means we try to change the page, and GlobalLoading somehow gets stuck (we never receive the `finish` call, or even `failure` - https://nuxtjs.org/docs/2.x/features/loading#using-a-custom-loading-component
- Fix
  - Fixed for this specific issue by avoiding groupSelected when the group is the root (which means it's not a true group where the first should be selected)
  - This fixes the error, but also the error logs for the auth and setting products
  - This does not fix the error logs in groups where it's not root
- Future Fix?
  - Break the link between Type select and Group groupSelected. I have a feeling this is very situational and to do with automatic selection rather than user clicking on a specific type
2021-08-24 19:15:09 +01:00
Jordon Leach 091223c901
Merge pull request #3953 from jordojordo/3906
#3906 - Add basic formatting support to the custom banners
2021-08-23 13:59:56 -04:00
Jordon Leach aa9a2be4e8
Update FixedBanner.vue
remove unused object textAlignment.
2021-08-23 08:03:12 -04:00
Richard Cox 4870fb0375 Fix issue where drop down re-opens when clicking on collapse button
- This also fixes the blip when drop down is open and the selected value is clicked on again
- Investigated other fixes...
  - slot'ing a new open indicator in (doesn't handle clickes)
  - using document.activeElement (already set away from drop down)
  - this.raised (not applicable in some cases)
2021-08-23 11:50:13 +01:00
Vincent Fiduccia eb446d5b14
Exclude cloud cred keys from generic machine config (#3851) 2021-08-21 02:50:08 -07:00
reemus 26b8033465 #3913 - Add basic formatting support to the custom banners (header/footer) 2021-08-20 15:04:39 -04:00
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
Vincent Fiduccia 4e8d114be1
Look for PUT instead of PATCH 2021-08-18 14:09:57 -07:00
Vincent Fiduccia 63028c48f6
Merge pull request #3919 from vincent99/master
[Master] S3 secrets, revenge of the machineConfig edit
2021-08-18 14:08:30 -07:00
codyrancher de5e344a70
Merge pull request #3912 from codyrancher/membership-system-filtering
[master] Updating how we do binding filtering
2021-08-18 13:40:33 -07:00
Vincent Fiduccia 1817bddf65
Fix create S3 secret in selectorcreate (#3847) 2021-08-18 13:19:15 -07:00
Nancy Butler 303ffac53e fix clusterrolebinding creation for standard user 2021-08-18 12:34:14 -07:00
Phillip 2b5b8b80bd
Merge pull request #3897 from rak-phillip/bugfix/3662-protocols-dropdown
[master] Add more width to protocols dropdown

This adds a little more spacing to the protocol column by increasing the width to 90px. This also adds the col class to the labeled selects in order to satisfy the requirements for the style that defines minimum height.

#3662
2021-08-18 11:27:48 -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
Vincent Fiduccia 6354552ddb
Fleet set labels on norman object 2021-08-17 15:53:50 -07:00
Phillip Rak 14fed3a230 Add col class to service type and protocol containers 2021-08-17 14:50:57 -07:00
Phillip Rak 177de1c496 Increase width of protocols col to 90px 2021-08-17 14:50:25 -07:00
Richard Cox 9eaaf0cce7
Merge pull request #3889 from richard-cox/master-fix-iframe-cache
[master] Ensure iframe is cleared on log out
2021-08-17 16:25:56 +01:00
Neil MacDougall 6a51d8b2f0
Merge pull request #3882 from nwmac/markdown-relative-links
[master] Markdown: Don't render relative links as anchors
2021-08-17 16:25:43 +01:00
Richard Cox 7a7bf65af3
Merge pull request #3838 from richard-cox/master-fix-base-user-cluster-create
[master] Ensure base users with create cluster rights can create / manage cluster
2021-08-17 16:24:40 +01:00
Richard Cox bb6dbcc8d4 Ensure iframe is cleared on log out
- on auth/logout ensure the iframe is removed instead of waiting for the timer
- solution probably over implemented, but wanted to ensure timer is also cleared on logout
2021-08-17 14:57:26 +01:00
Vincent Fiduccia 20111b2f12
Simpler private registry option (rancher/rancher#34223) 2021-08-17 02:23:03 -07:00
Vincent Fiduccia 31e806d021
Define & use canList before findAlls instead of schemaFor 2021-08-17 02:16:39 -07:00
Vincent Fiduccia 16a495b4b6
Hide removed pools from list 2021-08-17 02:16:38 -07:00
Vincent Fiduccia 4b9e95fd38
Blocked create verb 2021-08-17 02:16:37 -07:00
Vincent Fiduccia 03b13ae31d
Show error if there's no KDM data 2021-08-17 02:16:36 -07:00
Cody Jackson 598eb10976 Migrating RBAC to use the norman API 2021-08-16 16:18:36 -07:00
Richard Cox b2234bcac2 Changes following review, fix norman schema check 2021-08-16 13:59:26 +01:00
Neil MacDougall 299449e952 Don't render relative links as anchors 2021-08-13 14:07:44 +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 aff33728db
Pick a credential for S3 restore 2021-08-11 23:24:06 -07:00
Vincent Fiduccia b39d0491e0
Use Cloud Creds for etcd s3 backups 2021-08-11 23:24:06 -07:00
Vincent Fiduccia eab1c63bd1
Show any managed by label instead of just helm (#3804) 2021-08-11 23:23:54 -07: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 71b5f1361b
Merge pull request #3787 from richard-cox/master-fix-non-admin-create-project
[master] Allow non-admins to create projects without supplying members
2021-08-11 15:40:55 +01: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
Nancy Butler e32529280a fix targetport typing 2021-08-10 11:07:06 -07:00
Phillip Rak d307897c35 Disable text area auto grow 2021-08-09 12:50:29 -07:00
Phillip Rak 77fe9a75e5 Disable generic form question 2021-08-09 12:48:32 -07:00
Richard Cox 3ad4d0d641 Fix a number of issues around having no access to a cluster 2021-08-09 13:55:24 +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