Commit Graph

144 Commits

Author SHA1 Message Date
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
Nancy Butler 4b4130ba4d fix custom brand when subscription enabled 2021-08-18 15:06:16 -07:00
Vincent Fiduccia 13d8f70ee1
Hooks should be applied serially so later priorities can depend on earlier 2021-08-17 02:18:38 -07:00
Cody Jackson b6d170cfd1 Ensuring that secrets are added to the new auth model
The newly created auth model ends up missing secrets so we add them back before we attempt to resave the auth model.

https://github.com/rancher/dashboard/issues/3734
2021-08-09 14:31:10 -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 3dda914955
Merge pull request #3562 from richard-cox/refresh-auth-config-before-save
[master] Reload Auth Config before saving new principal id
2021-08-05 10:42:00 +01:00
Vincent Fiduccia 65457b7ddf
CloudCred 2->1, part one 2021-08-04 01:14:18 -07:00
Richard Cox 1dd35870f9 Ensure we don't generically `management/findAll` settings type before logging in
- 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)
2021-08-03 11:32:49 +01:00
Vincent Fiduccia 5ec2a77dcd
Bootstrap password cleanup, simplify setup 2021-07-29 13:08:51 -07:00
Richard Cox 9f023f3408 Reload Auth Config before saving new principal id
- When setting up an auth provider the config is tested and the user validates against said provider
- We then fetch the principals to find the authenticated user and save it in the auth config
- If however the config is updated by the backend as part of the test process we save a stale version overwriting those changes
- So ensure we reload the resource before proceeding
2021-07-28 20:34:16 +01:00
Vincent Fiduccia 60455debbf
Call save in the right order so members get added 2021-07-19 01:58:09 -07:00
Vincent Fiduccia 3122cee6a7
Fix cancel edit cloud credential (#3043) 2021-06-23 01:42:40 -07:00
Vincent Fiduccia ea7211a0bc
Generic reference[type] question support (#3304) 2021-06-22 23:35:09 -07:00
Vincent Fiduccia bb393202e5
Never remember fleet-default as the last-used namespace 2021-06-08 15:14:44 -07:00
Richard Cox 63c6df19a6 Ensure routing is correct for chart/install pages 2021-06-07 11:49:36 +01:00
Richard Cox b0c96cd9e5 Ensure we fetch `server-url` in auth-config correctly
- url part of `management/find` was incorrect
- url was never used as we normally have the resource, however there's some kind of log in bug #3160 where settings are missing, including server-url
- so server-url was never fetched... dodgy url threw exception... model was never fetched
- we don't have a pattern for $fetchState.error anywhere, which we could use here when fetch failed instead of continueing
- addresses #3137
2021-06-04 10:59:34 +01:00
Vincent Fiduccia 4f78aad2ad
Cluster templates 2021-06-04 01:45:47 -07:00
Richard Cox 488c7aeada Fix association of 'me' principal to OIDC provider
- When enabling oidc the principal tagged with me should be added to the providers `allowedPrincipalIds` collection
- This wasn't happenening due to a code change (`me` --> `principal`)
2021-06-02 11:27:11 +01:00
Nancy Butler c84e68c7dd reload principal when auth provider enabled/disabled 2021-06-01 07:51:27 -07:00
Nancy Butler e1ab34d649 fix auto-theme in brand mixin 2021-05-28 09:45:24 -07:00
Vincent Fiduccia 79026c8792
Cancel & Done behavior 2021-05-27 13:37:26 -07:00
Neil MacDougall 20cb1fd137
Merge pull request #3031 from nwmac/unified-ui
Ember page embedding enhancements
2021-05-27 16:31:24 +01:00
Neil MacDougall 9a5a277463 Fix feedback followign review 2021-05-26 13:58:45 +01:00
Richard Cox aada5c79a1
Merge pull request #3064 from richard-cox/oidc-auth-provider
Add Keycloak OIDC provider
2021-05-25 17:55:23 +01:00
Richard Cox f5539436d2 Add Keycloak OIDC provider
- Much of the grunt work is generic OIDC

Also fixed
- store's principalId was not updated after user enables any auth provider
- Colour of InfoBox title in dark mode
- Issue where some kind of errors when enabling provider were shown as an empty box (exceptionToErrorsArray is now used, which also uses a better catch all stringify)
- An issue where enabling and disabling a provider in the same visit meant lost defaults
- An issue where Auth / Groups would not display (async part had been removed)
- Resource instance validation would show all fields as invalid once one field had failed
2021-05-25 11:15:32 +01:00
Neil MacDougall 2cf2986da8 Add container metrics 2021-05-25 10:42:20 +01:00
Neil MacDougall 8699cc71be Changes to add v1 charts to cluster tools 2021-05-25 10:42:19 +01:00
Nancy Butler 82f79009b7 custom color 2021-05-24 10:29:51 -07:00
Vincent Fiduccia d12079875a
/v3/settings to /v1/management.cattle.io.setting
- /v3 doesn't exist if multi-cluster-management is disabled
- Use /v1/management.cattle.io.settings everywhere instead of /v3
- It now returns the public set of settings if retrieve with no auth, so
  the store needs to remember that even though we loaded "all" of them
that wasn't really ALL of them so that the full list gets loaded after
auth.
- Use new x-api-cattle-auth header to determine authentication state if present
- Use SETTINGS.* constants consistently
- `brand` -> `ui-brand` for consistency
- `eula-accepted=true` -> `eula-agreed=<timestamp>` to match Ember
2021-05-20 16:48:45 -07:00
codyrancher 90cc479e90
Merge pull request #2930 from codyrancher/project-migration
Migrating Projects from Ember to Vue
2021-05-17 11:20:35 -07:00
Cody Jackson 33d6918188 Migrating Projects from Ember to Vue
rancher/dashboard#2500
2021-05-17 08:49:54 -07:00
Vincent Fiduccia 93a0601c4b
Merge pull request #2997 from richard-cox/metric-poller-mixin
Fix refresh on node detail and list pages with SSR enabled
2021-05-16 13:07:07 -07:00
Nancy Butler 3dcbc33bde actually move routes, receivers, monitors into monitoring nav 2021-05-14 09:01:36 -07:00
Richard Cox 878417b482 Fix refresh on node detail and list pages with SSR enabled
- match fix that had been applied to cluster home page
- move out common Poll code into mixin
- note - in cluster home page poll was being stopped via beforeRouteLeave, whereas others were in beforeDestroy. I've tested this in both modes and it still works ok
- addresses #2984
2021-05-14 11:12:44 +01:00
Vincent Fiduccia bcc3ddf366
Use vendor/product in most places instead of hardcoded Rancher 2021-05-13 17:29:32 -07:00
Nancy Butler 5260e4c916 brand cookie 2021-05-13 07:54:08 -07:00
Nancy Butler 7dfba34e3f hide brand settings page 2021-05-13 07:54:08 -07:00
Nancy Butler 4d32ad7142 suse dark theme stylesheet; 2021-05-13 07:54:08 -07:00
Nancy Butler c35e252d61 start adding support for suse scss file 2021-05-13 07:54:08 -07:00
Neil MacDougall f9d0431999 Remove unused styling 2021-05-13 10:50:30 +01:00
Neil MacDougall c176323d5d Update about page to use plain layout 2021-05-13 09:22:17 +01:00
Neil MacDougall cf1b2e752d Use different layout for Account/API keys and preferences 2021-05-13 09:17:33 +01:00
Neil MacDougall 4f3e8aab42 FIx bugs with closeable cards 2021-05-11 13:57:53 +01:00
Neil MacDougall daee48414e Fix bug where landing page not respected 2021-05-11 11:16:38 +01:00
Neil MacDougall 770e605555 Fix lint issues. Rename to pageActions 2021-05-11 09:19:33 +01:00
Neil MacDougall fefb4dfd94 Add page header action that can be used to set login page 2021-05-11 09:18:48 +01:00
Vincent Fiduccia 2284315f40
Cluster Import 2021-04-27 10:20:42 -07:00
Nancy Butler 9f106198c4 ignore validation for oauth, service acct cred googleoauth 2021-04-26 11:49:42 -07:00
Neil MacDougall bab2724e82 [2.6] Home Page 2021-04-21 12:09:33 +01:00
Neil MacDougall 8646dfc9e9
Fix typo in comment 2021-04-13 20:42:55 +01:00