Fedora Account System
Red Hat Associate
Red Hat Customer
Each addon factory registers GetValuesFunc in an order where later functions override earlier ones. GetValuesFromAddonAnnotation (addon-framework pkg/addonfactory/helper.go:24-37) reads ManagedClusterAddOn annotations and returns them as Helm values, overriding the hardcoded image set by the operator's environment variable. mandateValues (registered last) only re-asserts replicas and uninstall — it does not re-assert the image. A user who can annotate the namespaced ManagedClusterAddOn resource can override the governance-policy container image to an attacker-controlled image, which then runs with cluster-admin privileges on the managed cluster. Source: Project Glasswing AI-SAST audit of stolostron/governance-policy-addon-controller. Finding ID: FIND-001 Assurance: execution_proven Note: Live validation on running cluster did not reproduce (countersign conflict). Code-level vulnerability confirmed via static analysis.