Skip to content

Track event when job token is authorized for a project with disabled scope

Erick Bajao requested to merge eb-track-job-token-auth-project-type into master

What does this MR do and why?

Addresses item 8 from #478522:

  1. Unique number of projects receiving authentications while having disabled scope and distinguish between same-project vs cross-project authentications - helps distinguish how many projects use CI_JOB_TOKEN but there is no need to populate the allowlist (same project) vs the cross-project where we need to populate the allowlist. The first numbers will also help calculate the number of projects not impacted at all (inactive or without inbound CI_JOB_TOKEN)

Also updated the module Gitlab::InternalEventsTracking to make track_internal_event usable inside class methods.

Merge request reports

Loading