Git hooks should pass correlation_id to /internal/allowed calls
On Friday we attempted to trace the result of push rule checks to diagnose https://gitlab.com/gitlab-org/gitlab/-/issues/216345:
- User clicks merge
- Sidekiq
MergeWorker
runs - This spawns a
UserMerge
RPC to Gitaly - Gitaly calls the gitlab-shell hooks for
pre-receive
-
pre-receive
makes an internal API call/api/v4/internal/allowed
-
/api/v4/internal/allowed
fails
We got all the data for 1-3, but the correlation_id
isn't propagated to the last step.