Commit Graph

104 Commits

Author SHA1 Message Date
GitLab Bot f62c9f693f Add latest changes from gitlab-org/gitlab@master 2022-12-02 12:08:02 +00:00
GitLab Bot 826cf5293f Add latest changes from gitlab-org/gitlab@master 2022-11-30 15:07:02 +00:00
GitLab Bot 35e5a7c845 Add latest changes from gitlab-org/gitlab@master 2022-11-25 15:09:28 +00:00
GitLab Bot 19db7fd1fe Add latest changes from gitlab-org/gitlab@master 2022-11-16 21:08:11 +00:00
GitLab Bot 6f9c158ef1 Add latest changes from gitlab-org/gitlab@master 2022-09-16 09:11:45 +00:00
GitLab Bot f8c7f38d02 Add latest changes from gitlab-org/gitlab@master 2022-09-08 15:12:29 +00:00
GitLab Bot 89a1014b46 Add latest changes from gitlab-org/gitlab@master 2022-05-04 03:08:09 +00:00
GitLab Bot bc3187f6d9 Add latest changes from gitlab-org/gitlab@master 2022-04-05 18:09:00 +00:00
GitLab Bot df2358a5f7 Add latest changes from gitlab-org/gitlab@master 2022-03-30 09:08:12 +00:00
GitLab Bot e4dad5d330 Add latest changes from gitlab-org/gitlab@master 2022-03-28 12:07:26 +00:00
GitLab Bot 191020103b Add latest changes from gitlab-org/gitlab@master 2021-11-04 09:12:56 +00:00
GitLab Bot 31a9181ed6 Add latest changes from gitlab-org/gitlab@master 2021-10-11 09:09:08 +00:00
GitLab Bot 9fcbd94aaa Add latest changes from gitlab-org/gitlab@master 2021-05-31 18:09:56 +00:00
GitLab Bot 4d6582cc54 Add latest changes from gitlab-org/gitlab@master 2021-04-03 00:09:02 +00:00
GitLab Bot b4e854a900 Add latest changes from gitlab-org/gitlab@master 2021-02-16 15:09:50 +00:00
GitLab Bot c083f926c5 Add latest changes from gitlab-org/gitlab@master 2020-10-15 21:09:12 +00:00
GitLab Bot 8e35232810 Add latest changes from gitlab-org/gitlab@master 2020-09-02 15:10:54 +00:00
GitLab Bot 540c69c58c Add latest changes from gitlab-org/gitlab@master 2020-08-28 06:10:45 +00:00
GitLab Bot 350fd8b878 Add latest changes from gitlab-org/gitlab@master 2020-08-10 18:09:54 +00:00
GitLab Bot c59765a50a Add latest changes from gitlab-org/gitlab@master 2020-06-24 18:09:03 +00:00
GitLab Bot 3795b229ab Add latest changes from gitlab-org/gitlab@master 2020-05-01 00:09:59 +00:00
GitLab Bot e33f87ac0f Add latest changes from gitlab-org/gitlab@master 2020-04-21 15:21:10 +00:00
GitLab Bot df2eda3f14 Add latest changes from gitlab-org/gitlab@master 2020-02-20 18:08:51 +00:00
GitLab Bot 784fae4b9d Add latest changes from gitlab-org/gitlab@master 2019-12-12 12:07:33 +00:00
Krasimir Angelov 4c63c63192 Extract Workhorse <-> GitLab authentication to make it reusable
Introduce JWTAutheticatable module that can be reused for ai=uthtication
between Pages and GitLab (the same way we use do now for Workhorse).

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/61927.
2019-09-04 11:03:20 +12:00
Jacob Vosmaer 85d88d67cc Support Gitaly feature flags in workhorse 2019-08-28 16:51:17 +00:00
Thong Kuah 8c42a0eac0 Add frozen_string_literal to lib part 2
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-08-23 00:15:24 +12:00
Stan Hu 583c12acf4 Use persistent Redis cluster for Workhorse pub/sub notifications
Previously, in Omnibus, Workhorse expected to listen via the Redis
shared state cluster for the `workhorse:notifications` publish/subscribe
channel, but the Rails code was using the Sidekiq queue cluster for
this. To fix this inconsistency, we make the Rails code use the
persistent cluster, since we don't want Workhorse to be looking at
anything Sidekiq-related.
2019-07-22 10:23:07 -07:00
Nick Thomas 4d52131dcf
Add a feature flag for subdirectory archives 2019-04-16 15:16:23 +01:00
Nick Thomas 670b2c1af5
JSON-encoded binary fields should use Base64::encode64
It is not interoperable to use Base64::urlsafe_encode64 for fields in
JSON that contain binary (as opposed to UTF8-safe) data. For instance,
the Golang JSON decoder (which is what gitlab-workhorse uses) insists
upon the standard base64 encoding.
2019-04-16 15:16:23 +01:00
Nick Thomas 2845e8d973
Revert "Revert "Merge branch '24704-download-repository-path' into 'master'""
This reverts commit 171818df0a.
2019-04-16 15:16:23 +01:00
Patrick Bajao 171818df0a Revert "Merge branch '24704-download-repository-path' into 'master'"
This reverts commit 6c75bd015c, reversing
changes made to 1be7f5aaa3.
2019-04-11 15:49:53 +08:00
Francisco Javier López 8a134f4c65 Renamed terminal_specification to channel_specification
We're moving from using terminology related to terminals when
we refer to Websockets connections in Workhorse.
It's more appropiate a concept like channel.
2019-04-04 18:32:02 +00:00
Patrick Bajao 6766a0a144 Download a folder from repository
Add `GetArchiveRequest` to git-archive params.

Modifies `Git::Repository#archive_metadata` to append `path`
to `ArchivePrefix` so it'll not hit the cache of repository archive
when it already exists.
2019-04-02 22:07:16 +08:00
Bob Van Landuyt d36415b754 Allow multiple repositories per project
This changes the repository type from a binary `wiki?` to a type. So
we can have more than 2 repository types.

Now everywhere we called `.wiki?` and expected a boolean, we check
that type.
2019-03-26 13:21:03 +01:00
Nick Thomas 0ce7c29fb7
Update GitLab Workhorse to v8.0.0 2018-12-11 16:23:23 +00:00
Rubén Dávila 007b81b8e2 Add receive_max_input_size setting to Application settings
If user has configure the setting then it will be passed to gitlab-shell
and gitlab-workhorse
2018-09-07 12:27:35 -05:00
Jacob Vosmaer 723f74d49d Remove last flags from Blob and Workhorse 2018-07-11 12:59:15 +02:00
Douwe Maan 937d916b5f Merge branch 'gitaly-mandatory-20180709-jv' into 'master'
Use Gitaly for fetches and creating bundles

Closes gitaly#387, gitaly#874, gitaly#750, and gitaly#665

See merge request gitlab-org/gitlab-ce!20490
2018-07-10 10:22:05 +00:00
Lin Jen-Shin 9286f5b934 Use stable gitlab-styles and eliminate offenses 2018-07-09 21:13:08 +08:00
Jacob Vosmaer a4e75e7a83 Use Gitaly for fetches and creating bundles 2018-07-09 12:50:17 +02:00
Jacob Vosmaer (GitLab) 3082b7d1c2 Make blob and other RPC's mandatory 2018-07-09 10:02:02 +00:00
Jacob Vosmaer b012abee8b Make all Gitaly diff flags mandatory 2018-07-06 12:01:15 +02:00
Zeger-Jan van de Weg 94b209b32c
Move git archives downloading to Gitaly 2018-05-17 09:31:50 +02:00
Nick Thomas 672733aa66
Add an API endpoint to download git repository snapshots 2018-04-19 17:25:01 +01:00
James Ramsay 07f517d441 Add new repository archive route
Repository archives are always named `<project>-<ref>-<sha>` even if
the ref is a commit. A consequence of always including the sha even
for tags is that packaging a release is more difficult because both
the ref and sha must be known by the packager.

- add `<project>/-/archive/<ref>/<filename>.<format>` route using the
`-` separator to prevent namespace collisions. If the filename is
`<project>-<ref>` or the ref is a sha, the sha will be omitted,
otherwise the default filename will be used.
- deprecate previous archive route `repository/<ref>/archive`
2018-04-06 08:45:17 -04:00
Jacob Vosmaer (GitLab) e5e4cd96cf Gitlab-workhorse still needs RepoPath on Git HTTP 2018-03-29 08:35:33 +00:00
Jacob Vosmaer 23936ff20d Make all workhorse gitaly calls opt-out, take 2 2018-03-28 14:13:06 +02:00
Sean McGivern 06afa5a3ff Revert "Merge branch 'workhorse-gitaly-mandatory' into 'master'"
This reverts merge request !18002
2018-03-28 09:53:42 +00:00
Jacob Vosmaer (GitLab) c43e18fc49 Remove some easy cases of 'path_to_repo' use 2018-03-28 09:21:32 +00:00