Gitlab is installed on the server, I want to allow access to repositories via ssh only. Thus, only those people whose keys I added to their gitlab profiles can work on the project. In gitlab.rb I did not find such an option. Is it possible to make such a restriction?
1 answer
It’s not possible to do this with standard GitLab tools. There is an open Issue in Gitlab'e Gitlab'a, but so far so no one is itching.
As a temporary crutch, there is such a solution , but I, like its author, do not recommend changing the application code.
UPD : here is a curious suggestion to turn off the gitlab-workhorse (it appeared from version 8 with something, if memory serves me right), unfortunately I can't try it, the service is in production, but if you have the opportunity, it may work
- When gitlab-workhorse is disabled (
gitlab_workhorse['enable'] = false) - it’s impossible to log in to gitlab itself, I receive abad request- sanu0074 - @ sanu0074 if this is omnibus, then how everything is arranged there, I don’t know, but everything worked on my manually installed gitlab when the girlab-workhorse was not started - andreymal
- @andreymal and about the same, just all the settings live in
/etc/gitlab/gitlab.rb;gitlab_workhorse['enable']parameter, changetruetofalseand runsudo gitlab-ctl reconfigure- beheerder - @beheerder, I have an omnibus, so I just changed it to true, and it went down - sanu0074
|
.git? Or is it tough? - sanu0074