Skip to content

Add user_id to Gitaly via gRPC metadata

What does this MR do and why?

For #232645 (closed)

At the time of writing, Gitaly does not have user_id information when performing RPCs. This can be demonstrated in Gitaly logs. This information was not easy to extract from application context before. After user_id was added to application context in !101218 (merged), we can now extract it. Gitaly handled the remote_ip field automatically (here). We don't need to touch Gitaly in this MR.

How to set up and validate locally

  • Before

Screenshot_2022-11-10_at_21.56.38

  • After

Screenshot_2022-11-10_at_21.51.31

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Quang-Minh Nguyen

Merge request reports

Loading