Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-10534

PolicyGenerator sets incorrect remediationAction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • ACM 2.9.5
    • ACM 2.9.3
    • GRC
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • GRC Sprint 2024-06, GRC Sprint 2024-07
    • Moderate
    • No

      In certain cases the PolicyGenerator will set the `spec.remediationAction` on the Policy.

      In the case where the manifest is a ConfigurationPolicy that has the remediationAction set to "InformOnly" the generator will set `spec.remediationAction` to "InformOnly" which is not a valid value on a Policy.

      Setting the remediationAction on the policy definition in the generator is ignored when the root `spec.remediationAction` is set.

      This should output a Policy where `spec.remediationAction` is set to inform and the ConfigurationPolicy is set to InformOnly. Instead the output has InformOnly for both the Policy and the ConfigurationPolicy.

      policies: 
        - name: alert-clusterrole-unused
          remediationAction: inform
          manifests: 
            - path: alert-clusterrole-unused.yml
      

              rh-ee-jeluo Jeffrey Luo (Inactive)
              rhn-support-bjarvis Brian Jarvis
              Derek Ho Derek Ho
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: