1. 19 Jan, 2021 2 commits
  2. 14 Jan, 2021 2 commits
    • Jacob Vosmaer's avatar
      Merge branch 'jv-git-http-routing' into 'master' · 383c058f
      Jacob Vosmaer authored
      Accept more paths as Git HTTP
      
      Closes gitlab#294007
      
      See merge request gitlab-org/gitlab-workhorse!670
      383c058f
    • Jacob Vosmaer's avatar
      Accept more paths as Git HTTP · ed69bfd6
      Jacob Vosmaer authored
      With the introduction of group wikis we also need to support repository
      paths on the toplevel.
      
      We can also make the matching for info refs requests a bit stricter,
      by checking for valid `service` parameters in the query string.
      ed69bfd6
  3. 12 Jan, 2021 3 commits
  4. 11 Jan, 2021 3 commits
    • Stan Hu's avatar
      Allow blank S3 regions to be used · c64bd8e3
      Stan Hu authored
      If consolidated object storage is used without a region, Workhorse will
      fall back to making a direct HTTP PUT call to the S3 endpoint because
      GitLab Rails does not send the multipart upload URLs in this mode.
      
      However, this will result a 411 Length Required error because multipart
      upload URLs must be used when the Content-Length header is not
      available.
      
      An S3 region is not strictly required, particularly with Minio. With
      Amazon S3, the region will default to US East (`us-east-1`). If the
      bucket does not exist in the region, S3 will return with a more
      informative error.
      
      Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/297227
      c64bd8e3
    • Alessio Caiazza's avatar
      Update VERSION to 8.59.0 · e25137d1
      Alessio Caiazza authored
      e25137d1
    • Alessio Caiazza's avatar
      Update CHANGELOG for 8.59.0 · 2ecf5538
      Alessio Caiazza authored
      [ci skip]
      2ecf5538
  5. 08 Jan, 2021 4 commits
  6. 07 Jan, 2021 1 commit
  7. 06 Jan, 2021 1 commit
  8. 05 Jan, 2021 1 commit
  9. 25 Dec, 2020 1 commit
  10. 10 Dec, 2020 4 commits
  11. 09 Dec, 2020 1 commit
  12. 08 Dec, 2020 2 commits
  13. 07 Dec, 2020 3 commits
  14. 02 Dec, 2020 5 commits
  15. 01 Dec, 2020 1 commit
    • Stan Hu's avatar
      Support alternate document root directory · 098d4474
      Stan Hu authored
      This will be useful for supporting no-downtime upgrades. Admins
      attempting to upgrade GitLab via our no-downtime upgrade procedure have
      found that CSS and JavaScript often don't load while the upgrade is in
      progress. This is because in a mixed deployment scenario with a load
      balancer, this can happen:
      
      1. User accesses node version N+1, which then makes a CSS/JS request on
      version N.
      2. User accesses node version N, which then makes a CSS/JS requests on
      version N+1.
      
      In both scenarios, the user gets a 404 since only one version of the
      assets exist on a given server.
      
      To fix this, we provide an alternate path where previous and future
      assets can be stored.
      
      Relates to https://gitlab.com/gitlab-org/gitlab-workhorse/-/issues/304
      098d4474
  16. 30 Nov, 2020 5 commits
  17. 27 Nov, 2020 1 commit
    • Stan Hu's avatar
      Fix uploader not returning 413 when artifact too large · a9abe0ab
      Stan Hu authored
      When an upload exceeds the maximum limit, `ErrEntityTooLarge` gets
      returned but is wrapped in multiple layers of errors when it is
      checked. As a result, when Google Cloud Storage were used to upload
      files, artifacts exceeding the maximum size would report a "500 Internal
      Server Error" instead of the correct "413 Request Entity Too Large"
      error message.
      
      To fix this, we check the state of `hardLimitReader` and set the error
      to `ErrEntityTooLarge` at the end of the `SaveFileFromReader` to ensure
      that this error will be returned.
      
      Closes https://gitlab.com/gitlab-org/gitlab-workhorse/-/issues/328
      a9abe0ab