Commit Graph

9 Commits

Author SHA1 Message Date
Catherine Luse 1c975e11d4 RKE1 cluster create/edit forms no longer throw 404s 2022-12-13 18:06:25 -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
Cody Jackson 23da8e8b17 Adding a selected cis profile to the profile options if it's not present
When upgrading rancher the old 1.4 cis profiles were removed which prevented
the currently selected profile for scheduled scans to be selected.

This adds a selected profile to the options if it's not present allowing the
profile to be selected by default. If a different profile is selected and saved
the option will no longer be present. This option will also not be present in
the manual run scan modal.

rancher/rancher#27867
rancher/rancher#27866
rancher/rancher#27374
2020-07-20 15:25:56 -07:00
loganhz bbaad1a469 Fix run scan issue with invalid skip config
https://github.com/rancher/rancher/issues/26248
2020-03-25 19:51:41 +08:00
Cody Jackson 839b705626 Update the UX to reflect new requirements
rancher/rancher#26066
2020-03-18 12:13:10 -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
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 d7cebe4ced Use KDM to drive benchmark options and profile default
This will now allow KDM to drive what the benchmark options are and what
the default option is for profile selection given a kubernetes version.

The 'cisConfig' type is what we look up for this information.

rancher/rancher#25888
2020-03-11 16:43:54 -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