Skip to content

[OCI] Audit log retention check fails with 404 error due to incorrect API path/endpoint #10209

@stonehenjii

Description

@stonehenjii

Issue search

  • I have searched the existing issues and this bug has not been reported yet

Which component is affected?

Prowler API

Cloud Provider (if applicable)

Not applicable

Steps to Reproduce

I am encountering a FAILED result for the check: Tenancy audit log retention period is 365 days or greater. Upon checking the Prowler logs, it appears that Prowler is attempting to call an incorrect OCI API endpoint, resulting in a 404 Not Found error. This causes the check to fail even when the actual OCI configuration is set correctly (365 days or more).

To Reproduce:

  1. Run Prowler against an OCI environment.

  2. Observe the check: audit_log_retention_period_365_days.

  3. Check the debug logs to see the API request path.

  4. Prowler hits a non-existent path/endpoint, returning a 404 error.

Expected behavior

Prowler should correctly call the Audit Configuration API (e.g., GET /audit/configuration) using the valid regional endpoint or the home region to retrieve the retention-period-days value.

Actual Result with Screenshots or Logs

I use Prowler opensource on enterprise environment, so I couldn't offer result with screenshots or Logs.

How did you install Prowler?

From pip package (pip install prowler)

Environment Resource

  1. EC2 instance
  2. I search the log prowler gets with Splunk - Then I found the error 404. I guess the path prowler goes is incorrect.

OS used

  1. Amazon Linux 2023

Prowler version

5.13.1

Python version

3.12

Pip version

pip3

Context

No response

Metadata

Metadata

Assignees

Labels

ai-issue-review[Experimental] Triggers AI-powered issue triage with coding-agent-ready fix plansbugprovider/ociIssues/PRs related with the OCI providerstatus/needs-triageIssue pending triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions