Use custom User-Agent for Google Artifact Registry interactions on the backend
It has been requested that we set a custom User-Agent when communicating with GAR using the backend client previously introduced in #425147 (closed). This will facilitate API usage metrics and attribution on the Google Cloud side.
Tasks
-
Check how to do so using the Google Cloud Ruby SDK; -
Define user-agent value. Recommendation: Append GitLab X.Y
to the user-agent string, whereX.Y
is the current version of GitLab; -
Modify user-agent accordingly.
Edited by David Fernandez