More Info:
The OCI Audit service log captures API activity for OKE and is essential for security monitoring and incident investigation. Ensure access to these audit logs is available.Risk Level
HighAddress
SecurityCompliance Standards
- CIS OKE
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On any machine with OCI CLI access (can be outside the cluster), confirm Audit logs are enabled tenant‑wide (they are on by default) by listing recent events for the compartment that contains your OKE cluster:
Ensure that results are returned and include
com.oraclecloud.containerengineevents. -
On any machine with OCI Console access (web browser), verify you can view Audit logs:
- Open: Menu → Logging & Monitoring → Audit.
- Set the Compartment to the one containing the OKE cluster.
- Set a recent time range (e.g., last 2 hours).
- Confirm events appear and that you can filter on
Service = Container Engine for Kubernetes.
-
On any machine with OCI CLI access, ensure at least one principal (group or dynamic group) used by your security/operations team has permission to read Audit logs for the OKE compartment. Example to test an existing principal’s access using
--auth security_tokenor configuration for that user:If this fails with an authorization error, update IAM policies in the OCI Console (Menu → Identity & Security → Policies) to include a statement such as: -
On any machine with OCI Console access, optionally configure longer‑term retention or export for audit logs:
- For retention: Menu → Logging & Monitoring → Audit → Tenancy → Configure, and adjust retention (if option available in your tenancy).
- For export: Menu → Developer Services → Service Connectors → Create service connector to route Audit as source → Object Storage / Logging / Streaming as target.
-
On any control plane node (host shell via SSH), record evidence locally (for change tracking) that access to Audit logs is verified for OKE by saving a small report:
-
Verification (on any machine with OCI CLI access): rerun the audit-style check to confirm access to OCI Audit logs for OKE is functioning:
Successful output with OKE‑related events confirms the requirement is met.
Using kubectl
Using kubectl
kubectl cannot be used to configure or grant access to OCI Audit service logs, because this setting is managed at the OCI/OKE control-plane and tenancy level, not via Kubernetes API objects. Perform the required review and configuration in the OCI Console or your IaC for OKE as described in the Manual Steps section.
Automation
Automation

