summaryrefslogtreecommitdiff
path: root/GITLAB_WORKHORSE_VERSION
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-01-08 17:57:58 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2019-01-31 16:52:48 +0100
commit5b075413d95606949a305c0c65154a81e7b8a85d (patch)
treea3416a278a2e9e08a1214c9dcbe0a5e9bf31b708 /GITLAB_WORKHORSE_VERSION
parent66744469d4f2c444c0248b84096d252db749d01c (diff)
downloadgitlab-ce-5b075413d95606949a305c0c65154a81e7b8a85d.tar.gz
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.
Diffstat (limited to 'GITLAB_WORKHORSE_VERSION')
-rw-r--r--GITLAB_WORKHORSE_VERSION2
1 files changed, 1 insertions, 1 deletions
diff --git a/GITLAB_WORKHORSE_VERSION b/GITLAB_WORKHORSE_VERSION
index da156181014..0e79152459e 100644
--- a/GITLAB_WORKHORSE_VERSION
+++ b/GITLAB_WORKHORSE_VERSION
@@ -1 +1 @@
-8.1.0 \ No newline at end of file
+8.1.1