π‘οΈ Oracle IAM User API keys are not rotated every 90 daysπ’
- Contextual name: π‘οΈ IAM User API keys are not rotated every 90 daysπ’
- ID:
/ce/ca/oracle/iam/user-api-keys-are-not-rotated-every-90-days - 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 User API keys that are older than 90 days. Oracle API keys are long-term credentials used to sign programmatic requests to Oracle Cloud Infrastructure APIs.
Rationaleβ
Long-lived API keys increase the exposure window for credential theft, accidental disclosure, and misuse. Rotating API keys at least every 90 days limits the time a compromised key can be used and supports a predictable credential lifecycle for users, scripts, and integrations.
Impactβ
Rotating an API key can disrupt applications, scripts, integrations, or users that still depend on the old key. Before deleting the stale key, create a replacement key, update all dependent workloads, and confirm that Oracle API access works with the new key.
Auditβ
This policy flags an Oracle IAM User API Key as
INCOMPLIANTif theLifecycle Statefield is set to ACTIVE and theTime Createdfield is older than 90 days.API keys whose
Lifecycle Statefield is not set to ACTIVE are marked asINAPPLICABLE. Active API keys with aTime Createdvalue within the last 90 days are marked asCOMPLIANT.
Remediationβ
Remediationβ
Rotate Stale API Keysβ
Create a replacement API key, update every dependent workload to use the new key, and delete the stale key after confirming that the old key is no longer required.
From OCI CLIβ
List the user's API keys:
oci iam api-key list --user-id {{user-ocid}} --allUpload a replacement public key for the user:
oci iam api-key upload \
--user-id {{user-ocid}} \
--key-file {{public-key-file}}Update dependent workloads to use the replacement key. After confirming that the stale key is no longer used, delete it by fingerprint:
oci iam api-key delete \
--user-id {{user-ocid}} \
--fingerprint {{stale-key-fingerprint}}
policy.yamlβ
Linked Framework Sectionsβ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| πΌ CIS Oracle v3.1.0 β πΌ 1.8 Ensure user API keys rotate within 90 days - Level 1 (Automated) | 1 | no data | |||
| πΌ Cloudaware Framework β πΌ Credential Lifecycle Management | 32 | no data |