Skip to content

Audit enhancements #4024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 8, 2025
Merged

Audit enhancements #4024

merged 5 commits into from
Jul 8, 2025

Conversation

ekazachkova
Copy link
Contributor

@ekazachkova ekazachkova commented Jul 4, 2025

relates to #3059

The following changes were added:

  • Support runID in audit log message with the following format: [run_id #12345] <message>. The runID shall be added to the audit logs for all PipeCLI commands that are run from Cloud Pipeline instances. To determine run ID the RUN_ID environment variable shall be used.
  • Log mount event to audit logs with the following format MOUNT <mount bucket>.
  • Log run share event to audit logs.

@ekazachkova ekazachkova requested a review from SilinPavel July 7, 2025 10:17
run_id = os.getenv('RUN_ID')
if not run_id:
return ''
return '[#%s] ' % run_id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to explicitly mention that # is a run, like [run_id #< runid >]?

@ekazachkova ekazachkova merged commit cd448d1 into develop Jul 8, 2025
4 checks passed
@ekazachkova ekazachkova deleted the issue-3059_audit-ench branch July 8, 2025 09:22
ekazachkova added a commit that referenced this pull request Jul 10, 2025
* Support run id in audit logs

* Support mount event for audit logs

* Support run share events for audit logs

* cleanup

* cleanup

(cherry picked from commit cd448d1)
ekazachkova added a commit that referenced this pull request Jul 10, 2025
* Support run id in audit logs

* Support mount event for audit logs

* Support run share events for audit logs

* cleanup

* cleanup

(cherry picked from commit cd448d1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants