Use gitaly-upload-pack and gitaly-receive-pack
Closes https://gitlab.com/gitlab-org/gitaly/issues/193
We want to use Go Gitaly client executables in gitlab-shell because we cannot reliably use Ruby gems with C native extensions in Ruby executables launched by SSHD. This change adds such Go executables, for now without Gitaly support but that should change soon.
This change makes bin/compile
a mandatory installation step. All
git pull
and git push
sessions over SSH will start flowing through
these Go executables.
Merge request reports
Activity
assigned to @jacobvosmaer-gitlab
added 1 commit
- c138ee12 - Use gitaly-upload-pack and gitaly-receive-pack
mentioned in issue omnibus-gitlab#2304 (closed)
- Resolved by Jacob Vosmaer (GitLab)
- Resolved by Douwe Maan
This is WIP because gitlab-ce!11039 and omnibus-gitlab#2304 (closed) need to be resolved before it is safe to merge this. Otherwise it is ready for review.
assigned to @DouweM
- Resolved by Douwe Maan
@jacobvosmaer-gitlab Nice work, looks fairly straightforward! One suggestion.
assigned to @jacobvosmaer-gitlab
assigned to @DouweM
@jacobvosmaer-gitlab LGTM! Let me know when those other issues are resolved and this can be merged.
assigned to @jacobvosmaer-gitlab
Thanks @DouweM will assign back to you when ready.
Locked in WIP by https://gitlab.com/gitlab-org/omnibus-gitlab/issues/2304
Talking with @andrewn I realized it might be better to make the use of gitaly-{upload,receive}-pack conditional on the API response received from gitlab-ce. That way we can merge this independently of omnibus-gitlab#2304 (closed). And we want an on/off mechanism anyway. I was originally planning to have on/off inside gitaly-upload-pack but if we put it in bin/gitlab-shell it makes our life a little easier.
added 13 commits
-
de018a56...285c061e - 7 commits from branch
master
- 25a32cfa - Use gitaly-upload-pack and gitaly-receive-pack
- 33d583bf - Change signature of logger.Fatal
- e3dc9c76 - Check number of arguments
- 5fd923bd - Check go formatting in CI
- 2a163a17 - Explain chdir
- f3b83553 - Make gitaly executable mapping clearer
Toggle commit list-
de018a56...285c061e - 7 commits from branch
assigned to @DouweM
mentioned in commit db96f724
@jacobvosmaer-gitlab Nice work :)
mentioned in issue gitaly#124 (closed)
mentioned in issue gitaly#349