Track page visits to the secrets manager

What does this MR do and why?

This adds tracking functionality for the secrets manager, in both project and group contexts. This MR tracks page visits; we will iterate on the other instrumentation we need in future MRs.

To be tracked:

Page visits in the PROJECT context use the visit_project_secrets_manager action, while page visits in the GROUP context use visit_group_secrets_manager. Both categories can have the following labels based on which page is visited:

  • secrets_table_page
  • secret_details_page
  • create_form
  • edit_form

References

Partially implements #577449.

Docs for Internal Event Tracking on the frontend

Screenshots or screen recordings

Screen_Recording_2025-10-31_at_00.06.38

How to set up and validate locally

  1. Upload a Premium+ license.
  2. Enable the feature flags secrets_manager and secrets_manager_group.
  3. Set up openbao on your gdk.
  4. Enable the Secrets Manager on gdk for a project.
  5. Go to Secure > Secrets manager and verify that page visits and UI interactions trigger the track_event request on the Network tab.

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.

Edited by Mireya Andres

Merge request reports

Loading