Add ssh-upload-pack endpoint to handle Git over SSH requests
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/456116 **Problem** For Cells and Geo needs we want to route Git over SSH requests to the correct instance. **Solution** Introduce an HTTP Workhorse endpoint that accepts requests coming from GitLab-Shell and responds with git upload pack data. Changelog: added EE: true
显示
- app/controllers/repositories/git_http_controller.rb 7 个添加, 0 个删除app/controllers/repositories/git_http_controller.rb
- config/routes/git_http.rb 3 个添加, 0 个删除config/routes/git_http.rb
- ee/app/controllers/ee/repositories/git_http_controller.rb 14 个添加, 0 个删除ee/app/controllers/ee/repositories/git_http_controller.rb
- ee/config/feature_flags/beta/geo_proxy_fetch_ssh_to_primary.yml 9 个添加, 0 个删除...fig/feature_flags/beta/geo_proxy_fetch_ssh_to_primary.yml
- ee/lib/ee/gitlab/geo_git_access.rb 3 个添加, 0 个删除ee/lib/ee/gitlab/geo_git_access.rb
- ee/spec/lib/gitlab/git_access_spec.rb 3 个添加, 0 个删除ee/spec/lib/gitlab/git_access_spec.rb
- ee/spec/requests/repositories/git_http_controller_spec.rb 71 个添加, 0 个删除ee/spec/requests/repositories/git_http_controller_spec.rb
- ee/spec/support/shared_examples/lib/gitlab/git_access_shared_examples.rb 2 个添加, 0 个删除.../shared_examples/lib/gitlab/git_access_shared_examples.rb
- spec/controllers/repositories/git_http_controller_spec.rb 11 个添加, 0 个删除spec/controllers/repositories/git_http_controller_spec.rb
- workhorse/_support/lint_last_known_acceptable_go1.21.txt 7 个添加, 17 个删除workhorse/_support/lint_last_known_acceptable_go1.21.txt
- workhorse/_support/lint_last_known_acceptable_go1.22.txt 7 个添加, 17 个删除workhorse/_support/lint_last_known_acceptable_go1.22.txt
- workhorse/go.mod 1 个添加, 1 个删除workhorse/go.mod
- workhorse/go.sum 2 个添加, 2 个删除workhorse/go.sum
- workhorse/internal/git/ssh.go 66 个添加, 0 个删除workhorse/internal/git/ssh.go
- workhorse/internal/git/ssh_test.go 94 个添加, 0 个删除workhorse/internal/git/ssh_test.go
- workhorse/internal/gitaly/gitaly.go 7 个添加, 0 个删除workhorse/internal/gitaly/gitaly.go
- workhorse/internal/gitaly/gitaly_test.go 7 个添加, 0 个删除workhorse/internal/gitaly/gitaly_test.go
- workhorse/internal/upstream/routes.go 1 个添加, 0 个删除workhorse/internal/upstream/routes.go
加载中
想要评论请 注册 或 登录