Draft: Fix secrets manager audit logging issues

What does this MR do and why?

Update root_path logic for prod. env SM audit log

Prior to this change, we had implemented the logic to check if the auth token file path within the Rails root directory based on local GDK logic. It is different for production containers including CNG and Omnibus. This was causing error when validating the openbao Rails Auth token file path is validating

This change fixes the issue by updating the logic to match correctly the Rails app root path in production environments

[Discussion] Thread (gitlab-org/charts/gitlab!4549 (comment 2869604889))

Changelog: changed EE: true

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading