Uploaded image for project: 'Red Hat Advanced Cluster Security'
  1. Red Hat Advanced Cluster Security
  2. ROX-30821

RHCOS BSI Profile in RHACS appears under 'Others' tab

    • False
    • Hide

      None

      Show
      None
    • False
    • Rox Sprint 4.10E, Rox Sprint 4.10F, Rox Sprint 4.10G

      USER PROBLEM

      RHCOS BSI profile appears under 'others'

      CONDITIONS
      What conditions need to exist for a user to be affected? Is it everyone? Is it only those with a specific integration? Is it specific to someone with particular database content? etc.

      This is reproducible 100% of time.

      1. Install CO
      2. Schedule any RHCOS BSI profile using RHACS
      3. Wait for results & inspect them

       

      ROOT CAUSE
      What is the root cause of the bug?

      Initially we decided to extract the benchmark information from the profile CRD (see CMP-2579). As a temporary solution we embedded some configuration files to map benchmarks to profiles. These configuration files need to be updated every time there’s a new profile in the Compliance Operator, otherwise we will see this issue.

      FIX
      How was the bug fixed (this is more important if a workaround was implemented rather than an actual fix)?

      • While we wait for CMP-2579, a solution would be to add regex rules to map profiles to benchmarks (e.g. a profile name containing cis can be mapped to CIS). This will not work if a new profile that maps to a completely new benchmark is added, but at least new versions will be automatically mapped. Since new versions happen fairly frequently and new benchmarks don’t, we think the regex solution is a good trade-off.

              rh-ee-mtodorov Mladen Todorovic
              sluetzen Steffen Lützenkirchen
              Lance Bragstad, Luis Valero Martin
              ACS Sensor & Ecosystem
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: