Commit Graph

87 Commits

Author SHA1 Message Date
Nick Thomas dcc680d516
Update GitLab Workhorse to v8.10.0 2019-09-01 13:38:43 +01:00
Jan Provaznik 41d52bbfe9 Add direct upload support for personal snippets 2019-08-23 11:19:14 +02:00
Stan Hu 23c78b4974 Bump GitLab Workhorse to v8.8.0
This sanitizes some log messages to be consistent with CE.

Full list of changes:
https://gitlab.com/gitlab-org/gitlab-workhorse/blob/master/CHANGELOG
2019-08-09 09:10:32 -07:00
Nick Thomas 072a80c6f4
Update Workhorse to v8.7.0 2019-04-24 17:18:29 +01:00
Francisco Javier López 704d183f4c Update GitLab Workhorse to v8.6.0 2019-04-11 14:49:06 +00:00
Nick Thomas 44b1597eb0
Update GitLab Workhorse to v8.5.1 2019-04-10 13:49:30 +01: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 71ec6a4dcf Update gitaly and workhorse version to stable 2019-04-02 22:07:16 +08: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
Jan Provaznik a466d97e62 Rake task for removing exif from uploads
Adds a rake task which can be used for removing EXIF
data from existing uploads.
2019-04-02 07:48:35 +00:00
Nick Thomas 7994d7c2c5
Update Workhorse to v8.3.1 2019-02-13 09:51:49 +00:00
Nick Thomas 1907858135
Update Workhorse to v8.3.0 2019-02-06 12:48:10 +00:00
Nick Thomas 01103ea0b2
Update Workhorse to v8.2.0 2019-02-04 15:37:33 +00:00
Nick Thomas 5b075413d9
Verify that LFS upload requests are genuine
LFS uploads are handled in concert by workhorse and rails. In normal
use, workhorse:

* Authorizes the request with rails (upload_authorize)
* Handles the upload of the file to a tempfile - disk or object storage
* Validates the file size and contents
* Hands off to rails to complete the upload (upload_finalize)

In `upload_finalize`, the LFS object is linked to the project. As LFS
objects are deduplicated across all projects, it may already exist. If
not, the temporary file is copied to the correct place, and will be
used by all future LFS objects with the same OID.

Workhorse uses the Content-Type of the request to decide to follow this
routine, as the URLs are ambiguous. If the Content-Type is anything but
"application/octet-stream", the request is proxied directly to rails,
on the assumption that this is a normal file edit request. If it's an
actual LFS request with a different content-type, however, it is routed
to the Rails `upload_finalize` action, which treats it as an LFS upload
just as it would a workhorse-modified request.

The outcome is that users can upload LFS objects that don't match the
declared size or OID. They can also create links to LFS objects they
don't really own, allowing them to read the contents of files if they
know just the size or OID.

We can close this hole by requiring requests to `upload_finalize` to be
sourced from Workhorse. The mechanism to do this already exists.
2019-01-31 16:52:48 +01:00
Andrew Newdigate 51322670a8 Upgrade gitlab-workhorse to 8.1.0 2019-01-22 17:32:19 +00:00
Nick Thomas 0ce7c29fb7
Update GitLab Workhorse to v8.0.0 2018-12-11 16:23:23 +00:00
Andrew Newdigate 99b1c34360 Upgrade to workhorse 7.6.0: 2018-12-10 21:58:24 +00:00
Francisco Javier López cf8b8ff99b Add feature flag for workhorse content type calculation 2018-12-06 21:22:39 +00:00
Stan Hu ec6c9b24e0 Upgrade GitLab Workhorse to v7.4.0 2018-12-04 09:39:41 -08:00
Nick Thomas 457cabbfcf
Upgrade GitLab Workhorse to v7.3.0 2018-11-30 21:00:10 +00:00
Stan Hu 476080bc0d Bump GitLab Workhorse to 7.2.1
https://gitlab.com/gitlab-org/gitlab-workhorse/blob/master/CHANGELOG
2018-11-28 10:22:32 -08:00
Stan Hu 2e87c0b3c1 Bump GitLab Workhorse to 7.1.1
This version now supports redis[s]:// URL schemes.
2018-11-14 03:48:57 -08:00
Andrew Newdigate cc8805295d Update GitLab-Workhorse to 7.1.0 2018-11-07 15:38:38 +00:00
Alejandro Rodríguez e652d71e2a Update Workhorse to 7.0.0 for Gitaly's new auth scheme 2018-10-01 23:00:35 +00:00
Stan Hu a2e8a13f21 Bump gitlab-workhorse to 6.1.1 to fix custom error handling 2018-09-27 10:32:21 -04:00
Stan Hu 262b974123 Fix attachments not displaying inline with Google Cloud Storage
There were several issues:

1. With Google Cloud Storage, we can't override the Content-Type with
Response-Content-Type once it is set.  Setting the value to
`application/octet-stream` doesn't buy us anything. GCS defaults to
`application/octet-stream`, and AWS uses `binary/octet-stream`. Just remove
this `Content-Type` when we upload new files.

2. CarrierWave and fog-google need to support query parameters:
https://github.com/fog/fog-google/pull/409/files, https://github.com/carrierwaveuploader/carrierwave/pull/2332/files.
CarrierWave has been monkey-patched until an official release.

3. Workhorse also needs to remove the Content-Type header in the request
(ef80978ff8/internal/objectstore/object.go (L66)),
or we'll get a 403 error when uploading due to signed URLs not matching the headers.
Upgrading to Workhorse 6.1.0 for https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/297
will make Workhorse use the headers that are used by Rails.

Closes #49957
2018-09-05 17:01:54 -07:00
Jacob Vosmaer b8297c122f Use gitlab-workhorse 6.0.0 2018-08-16 11:04:33 +02:00
Nick Thomas 2114f597b3
Update GitLab Workhorse to v5.1.0 2018-07-30 11:14:27 +01:00
Nick Thomas fff2f77649
Update Workhorse to v5.0.0 2018-07-04 12:26:39 +01:00
Nick Thomas 0cae8fd3a9
Update to GitLab Workhorse v4.3.1 2018-06-07 11:41:44 +01:00
Nick Thomas 60c4f2840e
Update to GitLab Workhorse v4.3.0 2018-06-01 15:19:46 +01:00
Alessio Caiazza 49a9d9d85e
Upgrade workhorse to v4.2.1 2018-05-22 17:39:16 +02:00
Jacob Vosmaer 8cb6f4f2b7 Use gitlab-workhorse 4.2.0 2018-05-01 15:04:10 +02:00
Nick Thomas cbcf46e7ae
Update GitLab Workhorse to v4.1.0 2018-04-12 01:36:29 +01:00
Kamil Trzciński 65c0754550 Upgrade Workhorse to 4.0.0 2018-03-07 16:48:58 +01:00
Andrew Newdigate 960f981db7 Upgrade GitLab Workhorse to 3.8.0 for structured logging support 2018-03-02 10:25:11 +00:00
Kamil Trzciński 11f882ca43 Upgrade GitLab Workhorse to v3.6.0 2018-02-06 15:34:44 +01:00
Jacob Vosmaer 2f7a97590e Use gitlab-workhorse 3.5.1 2018-01-22 14:34:53 +01:00
Jacob Vosmaer d805cd3606 Add option to disable git archive caching in workhorse 2018-01-09 16:59:46 +01:00
Jacob Vosmaer dca85d4bad Use workhorse 3.4.0 2018-01-08 15:38:24 +01:00
Nick Thomas d387b0addd
Update gitlab-workhorse to v3.3.1 2017-11-14 13:05:45 +00:00
Nick Thomas 527f87dfdb
Support show-all-refs for git over HTTP 2017-10-30 15:20:36 +00:00
Alejandro Rodríguez a646947bd4 Update required Workhorse version to v3.2.0 2017-10-05 16:05:10 -03:00
Jacob Vosmaer 9b10dec49d Use gitlab-workhorse 3.1.0 2017-09-20 13:58:54 +02:00
Ahmad Sherif 08ce213c41 Migrate Workhorse SendBlob to Gitaly 2017-07-11 16:55:00 +02:00
Nick Thomas 392f7de075 Upgrade GitLab Workhorse to v2.3.0 2017-07-06 13:06:48 +01:00
Jacob Vosmaer 517cbdcfcb Use gitlab-workhorse 2.2.0 2017-06-22 16:15:34 +02:00
Nick Thomas b106cd306e Update gitlab-workhorse to v2.1.1 2017-06-09 17:14:02 +01:00
Jacob Vosmaer 35f1490408 Use gitlab-workhorse 2.0.0 2017-05-03 16:22:05 +02:00
Jacob Vosmaer 90e0b2dfc4 Use gitlab-workhorse 1.4.3 2017-04-05 16:29:56 +02:00