Fedora Account System
Red Hat Associate
Red Hat Customer
When IBMPowerVSCluster.Spec.Ignition is set, the cluster-api-provider-ibmcloud controller uploads bootstrap Ignition to a COS bucket and constructs a stub Ignition pointing at that object. To authorize the fetch, ignitionUserData() in cloud/scope/powervs_machine.go calls authenticator.GetIAMAuthenticator().GetToken() — minting an IAM bearer token from the controller's own IBMCLOUD_APIKEY — and embeds it verbatim as an 'Authorization: Bearer <token>' HTTP header inside the stub. The stub is base64-encoded and passed as PowerVS instance userData, readable by any root process on the instance via config-drive/cloud-init, and persists in the PowerVS instance record for the VM's lifetime. IBM IAM bearer tokens derived from an API key inherit the full IAM policy of that key and are not scoped to a single COS object. The CAPIBM bootstrap key typically has broad rights (create/delete VPCs, PowerVS instances, transit gateways, COS buckets, load balancers) across the resource group. This collapses the worker-node/management-plane trust boundary that CAPI is designed to enforce. An attacker with code execution on a freshly-provisioned PowerVS worker can read the token from user-data within the ~60 minute validity window and use it to enumerate and manipulate all infrastructure managed by the API key. Upstream: https://github.com/openshift/cluster-api-provider-ibmcloud Audited commit: 8b6396a4c78f4791b7f3c5ec404a78b499f8546b Contact: Karthik Bhat