IBM Cloud security model and authentication
Understand how Cortex XSIAM authenticates to IBM Cloud with a read-only service ID API key, and how Cortex XSIAM protects the key.
Cortex XSIAM follows a security-first approach for IBM Cloud onboarding. Every permission granted to Cortex XSIAM is read-only and has a clear purpose. This topic describes how Cortex XSIAM authenticates to your IBM Cloud account, and how it protects the credential you provide.
Why IBM Cloud uses an API key
For the other cloud service providers, Cortex XSIAM uses keyless trust, such as OIDC-based workload identity federation, so no long-lived credentials are stored. IBM Cloud doesn't support this type of trust for external identity providers. Instead, Cortex XSIAM authenticates with an API key that belongs to a read-only service ID in your account.
The Terraform authentication template creates the service ID and the API key. You then enter the API key in Cortex XSIAM when you manually connect the cloud instance. IBM Cloud is the only cloud service provider for which Cortex XSIAM stores a customer credential.
Security principles
Cortex XSIAM applies the following principles to IBM Cloud onboarding:
Read-only access: The service ID has only Viewer and Reader roles and read-only custom roles. It can't create, change, or delete any resource in your account.
Least privilege: Custom roles contain only the specific read actions that Cortex XSIAM needs, for the services where no built-in role grants only read access.
Permission transparency: The Terraform authentication template contains the complete set of roles and access policies. You can review the template before you run it.
Customer control: You own the service ID and the API key. You can disable or delete them in the IBM Cloud console at any time to revoke Cortex XSIAM access immediately.
How Cortex XSIAM protects the API key
Cortex XSIAM protects the API key in the following ways:
Encryption at rest: Cortex XSIAM encrypts the API key with a dedicated encryption key for your tenant in Google Cloud Key Management Service (Cloud KMS). Cortex XSIAM never stores the API key in plain text.
Separation of duties: The Cortex XSIAM service that receives and encrypts the API key can't decrypt it. Only the service that reads your account configuration can decrypt it.
Short-lived tokens: Cortex XSIAM doesn't send the API key with every request. It exchanges the API key for a short-lived IBM Cloud IAM access token, and uses the token to read your account configuration.
Masked display: After you connect the cloud instance, Cortex XSIAM displays only the last four characters of the API key.
Transport security: The API key travels from your browser to Cortex XSIAM over an encrypted connection only.
Authentication flow
Cortex XSIAM uses a single identity for all operations. The authentication flow works as follows:
Cortex XSIAM decrypts the stored API key when it needs to access your account.
Cortex XSIAM exchanges the API key for a short-lived IAM access token with the IBM Cloud IAM token service.
Cortex XSIAM uses the access token to read your account configuration as the service ID.
When the token expires, Cortex XSIAM requests a new one.
All requests run as the service ID, so you can audit Cortex XSIAM activity in IBM Cloud Activity Tracker by filtering on the service ID.
Credentials you manage
Two different IBM Cloud API keys are involved in onboarding. Keep them separate.
Your administrator API key (IC_API_KEY)
You, before onboarding
Authenticates Terraform when you run the authentication template.
No
Service ID API key
The Terraform authentication template
Authenticates Cortex XSIAM as the read-only service ID.
Yes, encrypted
API key lifecycle
The service ID API key doesn't expire on a schedule. Rotate it when your security policy requires it, or when you suspect the key is compromised. Rotation creates a new key while the current key is still valid, so Cortex XSIAM keeps reading your account without interruption. For details, see Rotate the IBM Cloud API key.
Last updated
Was this helpful?
