Fedora Account System
Red Hat Associate
Red Hat Customer
IsClusterAdmin() decides whether a Subscription may deploy resources into arbitrary namespaces (and propagate cluster-admin: true to child Subscriptions). On the hub it relies on the ocm-mutating-webhook to stamp trusted user-identity/user-group annotations. On a managed cluster the webhook does not exist. The function then returns true whenever both user-settable annotations are present: apps.open-cluster-management.io/hosting-subscription (any non-empty value) and apps.open-cluster-management.io/cluster-admin: true. Any spoke user who can create a Subscription with these annotations gains multi-namespace deployment capability with the controller's privileged SA. Source: Project Glasswing AI-SAST audit of stolostron/multicloud-operators-subscription. Finding ID: FIND-002 Assurance: execution_proven