Skip to content

WIP: Propagate client identity to gitaly on SmartHTTP calls

Igor requested to merge gitaly-client-identity-smarthttp into master

This patch propagates client metadata to gitaly when forwarding SmartHTTP calls.

Workhorse knows the original IP address, and is optionally able to get username from the pre-authorization call into rails.

This allows gitaly to have user awareness, and makes correlation by username and remote_ip much easier, as those dimensions are available directly from within the gitaly logs.

Gitaly already supports these fields as per gitaly!2802 (merged).

There are plans to propagate this metadata in a more general way in labkit!93.

refs gitlab#232645 (closed)

Edited by Igor

Merge request reports