Commit Graph

280 Commits

Author SHA1 Message Date
Catherine Luse 3670909b2e No longer see console error - 404 for clusterscan 2022-12-14 10:08:21 -07:00
Neil MacDougall 71b2471b6b Add banners for 2.7 v1 deprecations 2022-10-19 12:42:46 +01:00
Cody Jackson 6564d1349c Inform the user that Logging, CIS Scans, Istio and Pipelines aren't supported in k8s 1.21+
https://github.com/rancher/dashboard/issues/3589
2021-08-04 11:28:18 -07:00
Westly Wright 572830e3bd
fixes a couple more engine bugs (#4686) 2021-06-30 10:58:46 -07:00
Lauren Harden 85ad5adb0b
theme changes for vue (#4655)
* theme changes for vue WIP

* banners

* header fixes

* rm blarp

* avatar fix

* table and header fixes

* table fix

* modal

* fix annotation

* right button headers

* accordion

* header color fixes

* banner fix
2021-06-30 09:45:00 -07:00
Westly Wright 059aa1a08f
Merge pull request #4481 from codyrancher/envvar-k3s
Switching over to having the envVars just be keyValues
2021-03-01 18:12:53 -07:00
Cody Jackson c96c4e1828 Switching over to having the envVars just be keyValues
After some discussions we decided to simplify things since all that's actually needed are keyValues.

I made the changes within the existing component instead of switching to keyValue to reduce risk at this stage of the release.

rancher/rancher#31545
2021-03-01 17:56:26 -07:00
Westly Wright 2ab6db46c2
explicitly pass import provider for edit import
rancher/rancher#31547
2021-03-01 17:14:52 -07:00
Cody Jackson a6156fa4ed Fixing several issues with agentEnvVars
- Fixed issues with determining the provider when editing clusters that are still provisioning.
- Fixed empty values causing problems
- Fixed an issue where the default value wasn't getting set properly for configmaps and secrets when selecting the type and nothing else

https://github.com/rancher/rancher/issues/31023#issuecomment-784717552
2021-02-26 02:45:38 -07:00
Cody Jackson ef5afd4007 Adding the agent env vars to rke drivers.
rancher/dashboard#31023
2021-02-23 12:44:52 -07:00
Westly Wright 8a3a6f9760
Add etcdBackup to the list of preloads for RKE cluster
to ensure rotate encryption keys works from a fresh load of the ui at the cluster level

rancher/rancher#30553
2020-12-18 15:12:12 -07:00
Westly Wright b8ae49352b
hide local cluster from header & global clusters list if hide local true
if the new setting hide-local-cluster exists and is true we will hide the local cluster in the UI. this doesnt prevent api access.
additionally if the setting is true and a user attempts to navigate directly to a cluster or project route we will redirect them to the authenticated index route which redirects to global admin.

rancher/rancher#29325
2020-10-22 16:04:31 -07:00
Westly Wright d3d78e87c8
Upgrade Ember & Dependencies for LTS support >3.12
There are changes required for the ember upgrade but additional changes
for individual libs are also present. Commit has been squashed, see
individual commits if needed.

There are a bunch of HBS changes as well. These are to deal with a
couple new rules and there impact is low. The button one has bitten us a
few time so this seemed great to add IMO.

update ember 3.12.4

ember 3.13

fixes for new eslint rules

ember 3.13->3.14

ember3.14->3.16

ember3.16->3.20

3.20 lint rules

yarn upgrade

update ember-optional-feature

update deps that can go to patch versions

upgrade major versions that are possible

update ansi_up

only reset term var if we're not destroying

prevents new ember 'same computation' error

update async

upgrade dot-object

new-catalog - add set to deal with new warning
marked-down - drop call into next to ensure its called at the correct time

upgrade ember-assign

update ember-cli-clipboard

remove unused & deprecated ember-cli-release

remove unused drag-drop lib

use set on tracked prop

update ember-flatpickr && cli-test-loader

upgrade ember-href-to

update filesaver

update liquid-fire and ipaddr

upgrade jsondiffpatch

upgrade marked

upgrade semver

update xterm

Update ember-basic-dropdown

the library has changed quite a bit and no longer provides an addon for the content-item where we handling the click event to close the dropdown,
thus click events must be added manually to the items being clicked to close the dropdown.

udpate dompurify

fix page header project styles

Bump ember api store, remove npm-run-all

Autofix button types from hbs linting

this change looks large but only adds `type` button to any buttons that dont have a type, which should help to reduce weird side effects

more hbs lint changes for no-negate-condition

turned off a couple rules that could be too much to test right now
2020-10-07 16:52:22 -07:00
Westly Wright b95399afeb
Only show cluster explorer links if the cluster is ready
this prevents the user being sent to a non-existant page

rancher/rancher#29199
2020-09-28 10:18:36 -07:00
Westly Wright 1cdc2bf5d8
Merge pull request #4189 from deniseschannon/deprecation
Deprecation Messages and Restore/Backup to Rancher Backups
2020-09-27 10:56:03 -07:00
Westly Wright 9e0856fd85
fix missing scope service so dashboard link works
rancher/rancher#29088
2020-09-26 13:13:10 -07:00
Denise Schannon c4ea789f79 Change from info to warning for deprecation banners. Updated istio isnt enabled banner to info to match monitoring. 2020-09-26 11:14:34 -07:00
Westly Wright e1cd8d5e94
Add multi-cluster app and pipeline banner message
rancher/rancher#29179
2020-09-25 17:21:49 -07:00
Vincent Fiduccia 46610de6f5
Logging, Monitoring, CIS banners 2020-08-28 17:57:54 -07:00
Westly Wright 44ceaedaef
Update cluster model param provider
backend added there own provider param so this just renames the provider to clusterProvider

rancher/rancher#28355
2020-08-14 09:55:27 -07:00
Westly Wright af16527ff9
Exposes edit for RKE2 imported clusters 2020-07-23 10:24:31 -07:00
Westly Wright 3d13864e53
Amazon EKS V2
error handler

wip - dev for aws cloud creds

wip - refactor aws login

wip - kms key

wip - encrypt secrets

wip - private access & vpcs

wip - translations and formatting

wip - more cleanup

remove unneeded code

wip - node groups

add ability to disable value label

fix double import, fix double negative disable add button and expose
addbuttonenabled

clean up public access and node groups

cleanup variable names and default config

eks regions

wip - eks v2 select

differentiate v1/2 amazon eks providers

clean up node groups, translations

unionize top errors

Consolidate aws util statics

WIP - Import/Cloud Creds

tweak cloud cred events for eks driver

WIP new import selector

drop unneeded variables eks import

kms keys cleanup

allow user to enter if the kms keys call fails

firefox styles

drop vpc selection and group subnets by vpcs

import cluster name input if allClusters fails to load from eks

make eks import a bit more dynamic

fix bug in driver eks for default subnet

more imported cleanup

eks v2 edit

eks v2 vendors

remove use cloud creds temp branchs

push current version to version choices if it doesnt exist

eks v2 rename cloudcred param

fix eks v2 versions

clean up for pr
2020-07-22 16:09:14 -07:00
Cody Jackson 9925305f3c Changing the way configMaps get loaded for RunScanModal
The RunScanModal was not getting config map changes after the first
time the modal was opened. The results were getting cached. By creating
a new array each time loadAsyncConfigMap is loaded I can guarentee the
computed properties will get re-evaluated.

I also attempted to watch config maps through the project store but
unfortunately updating the data of the config map doesn't seem to
produce a websocket message. Even if the message was created I
don't think I'd be able to watch the value as I'd have to
watch a sub-object 'config.json' which has a period in it. This causes
problems with watching in ember.

rancher/rancher#26161
2020-03-23 02:09:20 -07:00
Cody Jackson d3c0f5dfe2 Adding yet another condition to the CIS Add Schedule button
This now checks to see if there's and RKE template.
If there is an RKE template and the scheduleScanned is disabled
the button will be disabled unless there's an override available for
the scheduledClusterScan.enabled field.

rancher/rancher#26150
2020-03-21 02:17:28 -07:00
Cody Jackson 30c0a9afa0 Make CIS schedule and alert buttons disabled more in line with run scan button
rancher/rancher#25997
2020-03-17 11:28:25 -07:00
Westly Wright 0d2838b7f7
Merge pull request #3846 from codyrancher/cis-na-nodes
When a test is N/A the nodes will also be N/A
2020-03-16 15:50:55 -07:00
Cody Jackson be3a635e3d When a test is N/A the nodes will also be N/A
rancher/rancher#26067
2020-03-16 14:48:19 -07:00
Cody Jackson c6ae9d07a3 Adding support for CIS error messages
We now support displaying an error message when CIS scan fails to execute
properly.

rancher/rancher#25792
2020-03-16 13:44:04 -07:00
Cody Jackson 56366207ee Various CIS fixes
- Label change for scheduled scans
- Fixed a table rendering bug that occured due to the incorrect value
  of colspan
- Disabled the alert and scheduled scan button on the cis page for
windows clusters
- Fixed an issues where two scans couldnt run at the same time due
  to a profile not being defined for a second run scan modal.

rancher/rancher#26009
rancher/rancher#26021
rancher/rancher#25987
rancher/rancher#25983
2020-03-16 10:36:37 -07:00
Westly Wright bc080e64a0
Merge pull request #3843 from codyrancher/improve-backups-page
Improve the UX of our Snapshots page
2020-03-16 08:59:44 -07:00
Cody Jackson 4c7af6523a Improving the UX of the run scan modal
We are going to add a section beneath the profile selector of the run
scan modal. This section is responsible for informing the user of which
tests will not be run and why.

There will be two subsections Not Applicable and Skipped tests.
Skipped tests will only be shown for permissive profiles since
hardened tests shouldn't skip anything.

rancher/rancher#25961
2020-03-15 23:03:46 -07:00
Cody Jackson 9485a3c4b4 Improve the UX of our Snapshots page
- Added a Snapshot Now button to the top of the table
- Added a Restore Snapshot option to the actions of each row which will
  select the current row when opening the modal

rancher/rancher#25511
2020-03-15 03:22:32 -07:00
Cody Jackson 16f4295442 Make several small tweaks to the CIS UI
- Make table sorting work with scheduled scans
- Make the cis table fit on laptop screen
- Add an appropriate placeholder for the scheduled scans cron field

rancher/rancher#25937
rancher/rancher#25939
2020-03-11 14:50:04 -07:00
Cody Jackson 604e647907 Remove CIS skip button and total number
We're removing the CIS skip button because we decided the current UX
is poort and we don't want to spend a tremendous amount of effort
making a marginally better UX in the short time we have left.

We also removed the 19 of 59 from the main CIS page as the total was
misleading and wasn't actionable.

rancher/rancher#25863
2020-03-10 16:50:18 -07:00
Cody Jackson ebd73129a1 Add profile column to CIS Scans page and modify cron default
rancher/rancher#25890
rancher/rancher#25933
2020-03-10 11:39:23 -07:00
Cody Jackson cb1cf1e991 Make CIS visual tweaks
- Changed Set Alert and Set Schedule to Add Alert and Add Schedule
- Updated all references of Security Scan to CIS Scan
- Updated the CIS action buttons to have spaces on the CIS Scans page

rancher/rancher#25852
2020-03-09 16:19:21 -07:00
Westly Wright 33f8b2d684
Merge pull request #3806 from codyrancher/cis-na
Adding the Not Applicable column to CIS Scans
2020-03-09 10:19:11 -07:00
Cody Jackson bc11ad5a1f Adding the Not Applicable column to CIS Scans
rancher/rancher#25857
2020-03-09 10:09:06 -07:00
Cody Jackson 79c283fd5e Resolve RKE Template issue caused by CIS
The profile helper methods were attached to the cluster model.
Unfortunately, the cluster isn't available when creating a new rke
template.

To resolve this I moved all of the cis helpers out of the cluster model
and utils and moved them into a cisHelpers service so they could be
used without access to the cluster itself.
2020-03-06 15:36:29 -07:00
Cody Jackson f58807bff1 Wired up the scheduling for cis 2020-03-06 12:16:06 -07:00
Cody Jackson 9dddea78c9 Adding support for N/A state and creating a better profile 2020-03-06 12:15:27 -07:00
Cody Jackson 355d592051 Large refectoring of CIS to improve UX
- Added Set Alert button
  - This will set the appropriate options for cis
- Added Set Schedule button
  - This will scroll the settings into view
- Added a modal so profiles can be picked
2020-03-06 12:15:27 -07:00
Westly Wright 12cdab229b
get k3sVersions if k3s cluster 2020-02-27 11:16:55 -07:00
Cody Jackson 93b505199c Refactor how cis scans are disabled.
This refactoring removed code duplication and
provides a more cohesive experience across all
of the pages that you can run a scan.

This will also now check and ensure the following
- there aren't running ClusterScans
- this isn't a windows cluster
- systemProject is available
- the cluster is active
- the action link is available

When the above isn't the case Run CIS Scan will not be present in
the cluster action drop downs and the Run CIS Scan but
 will be disabled on the CIS Scans and CIS Scan Detail
pages.

rancher/rancher#24759
rancher/rancher#25298
2020-02-07 12:08:28 -07:00
Cody Jackson e6b4232390 Improve UX of CIS
Improving the UX of CIS based on the feedback that was received during
the review.

- Sort scans by date so newest will be on top.
- Details should be sorted by state in Fail, Skipped, Pass order
- Add a Run CIS Scan action to the cluster menu.
2020-02-03 10:44:01 -07:00
Cody Jackson 9dc1769e1c Add support for lettered suffixes when sorting
When sorting CIS scan tests by number the lettered suffixes weren't
sorting properly. This adds support for sorting numbers such as
1.1.37b.

rancher/rancher#24715
2020-01-17 13:25:51 -07:00
Cody Jackson e8de1d7360 Adding the clear button to the detail page search input
rancher/rancher#24750
2020-01-17 09:56:15 -07:00
Cody Jackson 2f58374c39 Ensure skipping works for multiple cis versions
We validating the security scan config appropriately when
a version was already present in the skip list. This now
ensures a version exists before verifying that it contains an array.

We were also replacing the existing skip object in the
security-scan-config which prevented us from storing
multiple versions at a time. We now extend the object
instead using the spread operator.

rancher/rancher#24733
rancher/rancher#24742
2019-12-23 10:14:07 -07:00
Cody Jackson 51c1d34dfa Provide empty configMap when it can't be retrieved
When the user doesn't have access to the systemProject we just
return an empty configMap so the page can proceed without error.

We also disable the runScan button if the systemProject isn't available.

rancher/rancher#24644
2019-12-20 16:10:12 -07:00
Cody Jackson 867239fa1b Conditionally show node links in CIS Scans
If nodes have been deleted previous reports with missing nodes were
breaking. To resolve that we now only show links to nodes that we can
find.

rancher/rancher#24676
2019-12-20 09:14:16 -07:00