Control: 1.4 Restrict user API key creation and service ID creation in the account via IAM roles
Description
Use IAM settings to restrict user API key creation and service ID (and related API key) creation in the account. Enable both settings to restrict all users in the account from creating user API keys and service IDs except those with an IAM policy that explicitly allows it.
Remediation
From Console
- Log in to IBM Cloud.
- Click Manage -> Access (IAM).
- Click Settings.
- In the Account section of the Settings page, ensure that Restrict API key creation and Restrict service ID creation are enabled.
- Once enabled, only users with the correct IAM policies will be able to create user API keys and service IDs.
Usage
Run the control in your terminal:
powerpipe control run ibm_compliance.control.cis_v100_1_4
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run ibm_compliance.control.cis_v100_1_4 --share
SQL
This control uses a named query:
iam_restrict_api_key_service_id_creation