rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
459 stars 261 forks source link

[BUG] Default CIS Scan Profile should be based on the K8s version running in the cluster #9459

Open Priyashetty17 opened 1 year ago

Priyashetty17 commented 1 year ago

Rancher Server Setup

Information about the Cluster

User Information

Describe the bug When creating a new CIS scan in the Rancher UI, the default profile chosen from the drop-down menu is always "CIS 1.7 Permissive" and does not align with the K8s version running in the cluster.

Steps to Recreate:

  1. Create a Rancher server v2.7-head.
  2. Create a downstream cluster with K8s version v1.24.15.
  3. Install the "rancher-cis-benchmark" on the downstream cluster (Chart version "4.2.0-rc3")
  4. Navigate to: CIS Benchmark > Scans > Click on "Create"

Issue/Actual Result: The default CIS scan profile is always "CIS 1.7 Permissive," irrespective of the Kubernetes version of the cluster leading to confusion.

Expected Result: The default CIS scan profile should align with the Kubernetes version of the cluster. For example:

Screenshots Here's a screenshot from a K3s cluster running K8s v1.24.15: defaultCIS

gaktive commented 1 year ago

Pushing to Q4 since this doesn't look like a blocker and Q3 is approaching code freeze. @Priyashetty17 let me know if this is more urgent.