Introduce a deploy-token-{id} identifier

Context

This task introduces a deploy-token-{id} identifier to properly distinguish deploy tokens from users in the GitLab authentication system. This is part of a larger effort to fix authentication parameters for Git streaming audit events HTTP requests.

Currently, when deploy tokens are used for Git operations, they are treated as users in the GlId generation, creating a potential issue where a deploy token ID could collide with a user ID. This task is the second step in a three-part plan to address this problem.

Plan

  1. Introduce a deploy-token-{id} identifier (this task)
  2. Fix GlId generation for DeployToken
  3. Migrate the Audit system from using username for authentication to use identifier

References

!203895 (comment 2749901109)

#562516

Edited by 🤖 GitLab Bot 🤖