Status of PostReceivePack RPC
~Conversation #353 (closed)
The PostReceivePack RPC is part of the Git HTTP protocol. We are set to ship this RPC disabled behind a feature flag in GitLab 9.1.
We are also trying to add support for running Gitaly on another server than gitlab-ce. There is an unresolved issue regarding Git hooks (part of git push
, which uses the PostReceivePack RPC) when Gitaly runs on a different server https://gitlab.com/gitlab-org/gitlab-ce/issues/29925.
This situation is not clearly documented at the moment. The feature flag to enable PostReceivePack is not documented. It is not documented that there may/will be issues when using PostReceivePack when running Gitaly on a different server. It is not documented how to run Gitaly on a different server because we are still debating how we want to do it #74 (closed).
I think the current situation is too complicated to properly explain. I wonder if the best thing to do would be to say that PostReceivePack is not ready to be used, and to make a change in gitlab-ce that prevents administrators from even enabling that RPC. The effort spent implementing this RPC would not be wasted because the same effort gave us PostUploadPack which is ready for experimentation without caveats.