π‘οΈ Oracle IAM User has more than one active API keyπ’
- Contextual name: π‘οΈ IAM User has more than one active API keyπ’
- ID:
/ce/ca/oracle/iam/user-has-more-than-one-active-api-key - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Descriptionβ
Descriptionβ
This policy identifies active Oracle IAM Users that have more than one active API key. OCI API keys are long-term credentials used to sign programmatic requests to Oracle Cloud Infrastructure APIs.
Rationaleβ
Maintaining multiple active API keys for a single IAM user increases the number of long-lived credentials that can be exposed, misused, or left unmanaged. A second key should normally exist only during a planned rotation or migration window. Removing redundant active keys reduces credential sprawl and simplifies monitoring, ownership, and incident response.
Impactβ
Removing an API key can disrupt applications, scripts, integrations, or users that still depend on that key for OCI API access. Before deleting a redundant key, identify the workload that uses it, move the workload to the retained key or a more appropriate authentication method, and confirm that access remains functional.
Auditβ
This policy flags an Oracle IAM User as
INCOMPLIANTif theLifecycle Statefield is set to ACTIVE and the user has more than one related Oracle IAM User API Key whoseLifecycle Statefield is set to ACTIVE.... see more
Remediationβ
Remediationβ
Remove Redundant Active API Keysβ
Keep only the active API key that is still required for the user. Delete redundant active keys after confirming that dependent workloads, scripts, or integrations no longer use them.
From OCI CLIβ
List the user's API keys:
oci iam api-key list --user-id {{user-ocid}} --allAfter identifying the redundant key fingerprint, delete the key:
oci iam api-key delete \
--user-id {{user-ocid}} \
--fingerprint {{fingerprint}}Run the list command again and confirm that no more than one API key remains in the
ACTIVElifecycle state for the user.
policy.yamlβ
Linked Framework Sectionsβ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| πΌ CIS Oracle v3.1.0 β πΌ 1.17 Ensure there is only one active API Key for any single OCI IAM user (Automated) | 1 | no data | |||
| πΌ Cloudaware Framework β πΌ Credential Lifecycle Management | 32 | no data |