summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/middleware
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@15-5-stable-eev15.5.0-rc42GitLab Bot2022-10-201-10/+12
|
* Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42GitLab Bot2022-09-193-2/+3
|
* Add latest changes from gitlab-org/gitlab@15-3-stable-eev15.3.0-rc42GitLab Bot2022-08-182-4/+4
|
* Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42GitLab Bot2022-06-201-1/+8
|
* Add latest changes from gitlab-org/gitlab@14-8-stable-eev14.8.0-rc42GitLab Bot2022-02-181-0/+91
|
* Add latest changes from gitlab-org/gitlab@14-7-stable-eev14.7.0-rc42GitLab Bot2022-01-202-1/+43
|
* Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42GitLab Bot2021-11-183-0/+152
|
* Add latest changes from gitlab-org/gitlab@14-4-stable-eev14.4.0-rc42GitLab Bot2021-10-203-2/+53
|
* Add latest changes from gitlab-org/gitlab@14-3-stable-eev14.3.0-rc42GitLab Bot2021-09-201-0/+40
|
* Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42GitLab Bot2021-08-191-1/+2
|
* Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42GitLab Bot2021-05-192-33/+70
|
* Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43GitLab Bot2021-04-201-0/+94
|
* Add latest changes from gitlab-org/gitlab@13-9-stable-eev13.9.0-rc42GitLab Bot2021-02-181-30/+13
|
* Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42Robert Speicher2021-01-203-261/+8
|
* Add latest changes from gitlab-org/gitlab@13-6-stable-eeGitLab Bot2020-12-101-1/+6
|
* Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42GitLab Bot2020-11-193-288/+184
|
* Add latest changes from gitlab-org/security/gitlab@13-5-stable-eeGitLab Bot2020-10-302-5/+88
|
* Add latest changes from gitlab-org/gitlab@13-5-stable-eev13.5.0-rc42GitLab Bot2020-10-214-5/+105
|
* Add latest changes from gitlab-org/gitlab@13-4-stable-eeGitLab Bot2020-09-196-316/+467
|
* Add latest changes from gitlab-org/gitlab@13-3-stable-eeGitLab Bot2020-08-202-9/+15
|
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-209-9/+87
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-181-0/+24
|
* Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot2020-05-201-0/+11
|
* Add latest changes from gitlab-org/security/gitlab@12-10-stable-eeGitLab Bot2020-04-271-7/+102
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-151-0/+11
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-281-0/+107
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-251-1/+8
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-111-36/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-101-1/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-271-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-131-0/+78
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-181-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-171-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-261-1/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-191-9/+40
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-201-0/+7
|
* Merge branch 'local-test-failures' into 'master'Robert Speicher2019-08-291-1/+1
|\ | | | | | | | | git-user-related local test failures See merge request gitlab-org/gitlab-ce!31437
| * git-user-related local test failuresDavid H. Wilkins2019-08-021-1/+1
| | | | | | | | | | | | Some of the tests fail locally due to the git user being different than it is on the test runners. I'd really like to be able to run all of the tests locally.
* | Add frozen_string_literal to lib part 2Thong Kuah2019-08-235-0/+10
|/ | | | | Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
* Fix health checks not working behind load balancersStan Hu2019-03-121-0/+29
| | | | | | | | | | | | | | | | | | | The change in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24199 caused requests coming from a load balancer to arrive as 127.0.0.1 instead of the actual IP. `Rack::Request#ip` behaves slightly differently different than `ActionDispatch::Request#remote_ip`: the former will return the first X-Forwarded-For IP if all of the IPs are trusted proxies, while the second one filters out all proxies and falls back to REMOTE_ADDR, which is 127.0.0.1. For now, we can revert back to using `Rack::Request` because these middlewares don't manipulate parameters. The actual fix problem involves fixing Rails: https://github.com/rails/rails/issues/28436. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58573
* Allow sidekiq admin requests, regardless of rootAsh McKenzie2019-01-161-7/+27
|
* Fix multipart attachments not uploadingsh-fix-multipart-uploads-failureStan Hu2019-01-051-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | Mixing and matching the use of Rack::Request and ActionDispatch::Request in Rails 5 is bad, particularly if you have middleware that manipulates or accesses environment variables. `Gitlab::Middleware::Multipart` attempts to rewrite request parameters to the proper values (e.g. replacing `data_file` with `UploadedFile`). It does this by calling `Rack::Request#update_params`, which essentially updates `env['rack.request.form_hash']`. By changing to `ActionDispatch::Request`, the Go middleware was causing the request parameters to be stored inside `env['action_dispatch.request.request_parameters']`. Later calls to `Rack::Request#update_params` would not have any effect because it would attempt to update `env['rack.request.form_has']` instead of `env['action_dispatch.request.request_parameters']`. As a result, the controller still saw the old parameters. Since the Go middleware appears to be using `ActionDispatch::Request` for authorization methods, we can switch the multipart middleware to use it too. Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/9035
* Fix lint errorsmortyccp2019-01-031-3/+3
|
* Remove authentication via warden and PRIVATE_TOKEN headermortyccp2019-01-031-46/+18
|
* Fix rspec error in rails 4mortyccp2019-01-031-0/+1
|
* Allow basic authentication on go get middlewaremortyccp2019-01-031-0/+20
|
* Remove deprecated ActionDispatch::ParamsParserJasper Maes2018-12-161-1/+0
|
* Correct Gitlab Capitalization in code filesMarcel Amirault2018-09-211-1/+1
|
* Add public/uploads/tmp to allowed upload pathsjprovazn-fix-form-uploadsJan Provaznik2018-08-211-0/+20
| | | | | | | When direct_upload is enabled and a for file is being uploaded, then workhorse uses `public/uploads/tmp` path. If `uploads.storage_path` i sset to a different directory, then upload fails because `public/uploads/tmp` is not in allowed paths.
* Use /-/health instead of breaking /-/livenessStan Hu2018-07-281-4/+4
|