summaryrefslogtreecommitdiff
path: root/spec/controllers
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/security/gitlab@12-7-stable-eeGitLab Bot2020-01-283-6/+112
|
* Add latest changes from gitlab-org/gitlab@12-7-stable-eeGitLab Bot2020-01-241-1/+1
|
* Add latest changes from gitlab-org/gitlab@12-7-stable-eeGitLab Bot2020-01-241-1/+1
|
* Add latest changes from gitlab-org/gitlab@12-7-stable-eeGitLab Bot2020-01-2154-273/+1111
|
* Add latest changes from gitlab-org/security/gitlab@12-6-stable-eeGitLab Bot2019-12-313-10/+135
|
* Add latest changes from gitlab-org/gitlab@12-6-stable-eeGitLab Bot2019-12-271-14/+34
|
* Add latest changes from gitlab-org/gitlab@12-6-stable-eeGitLab Bot2019-12-2045-408/+1227
|
* Merge branch 'security-filter-related-branches-from-activity-feed-12.5' into ↵GitLab Release Tools Bot2019-11-261-0/+37
|\ | | | | | | | | | | | | '12-5-stable' Related Branches Visible to Guests in Issue Activity See merge request gitlab/gitlabhq!3538
| * Restrict branches visible to guests in Issue feedKerri Miller2019-11-201-0/+37
| | | | | | | | | | Notes related to branch creation should not be shown in an issue's activity feed when the user doesn't have access to :download_code.
* | Add latest changes from gitlab-org/gitlab@12-5-stable-eeGitLab Bot2019-11-222-3/+2
|/
* Add latest changes from gitlab-org/gitlab@12-5-stable-eeGitLab Bot2019-11-1953-365/+2037
|
* Add latest changes from gitlab-org/gitlab@12-4-stable-eeGitLab Bot2019-11-042-6/+6
|
* Merge branch 'security-remove-leaky-401-responses-12.4' into '12-4-stable'GitLab Release Tools Bot2019-10-256-8/+8
|\ | | | | | | | | Private/internal repository enumeration via bruteforce on a vulnerable URL See merge request gitlab/gitlabhq!3491
| * Avoid #authenticate_user! in #route_not_foundKerri Miller2019-10-226-8/+8
| | | | | | | | | | | | | | | | | | | | | | This method, #route_not_found, is executed as the final fallback for unrecognized routes (as the name might imply.) We want to avoid `#authenticate_user!` when calling `#route_not_found`; `#authenticate_user!` can, depending on the request format, return a 401 instead of redirecting to a login page. This opens a subtle security exploit where anonymous users will receive a 401 response when attempting to access a private repo, while a recognized user will receive a 404, exposing the existence of the private, hidden repo.
* | Return 404 on LFS request if project doesn't existIgor Drozdov2019-10-251-1/+42
| |
* | Merge branch 'security-open-redirect-internalredirect-12-4' into '12-4-stable'GitLab Release Tools Bot2019-10-241-1/+2
|\ \ | | | | | | | | | | | | Use the '\A' and '\z' regex anchors in `InternalRedirect` to mitigate an Open Redirect issue. See merge request gitlab/gitlabhq!3488
| * | Use the '\A' and '\z' regex anchors in `InternalRedirect` to mitigate an ↵Joern Schneeweisz2019-10-221-1/+2
| |/ | | | | | | | | | | Open Redirect issue. Fixes https://dev.gitlab.org/gitlab/gitlabhq/issues/2934 and https://gitlab.com/gitlab-org/gitlab/issues/33569
* | Pick only those groups that the viewing user has access to,Aakriti Gupta2019-10-241-16/+19
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in a project members' list. Add tests for possible scenarios Re-factor and remove N + 1 queries Remove author from changelog Don't use memoisation when not needed Include users part of parents of project's group Re-factor tests Create and add users according to roles Re-use group created earlier Add incomplete test for ancestoral groups Rename method to clarify category of groups Skip pending test, remove comments not needed Remove extra line Include ancestors from invited groups as well Add specs for participants service Add more specs Add more specs use instead of Use public group owner instead of project maintainer to test owner acess Remove tests that have now been moved into participants_service_spec Use :context instead of :all Create nested group instead of creating an ancestor separately Add comment explaining doubt on the failing spec Imrpove test setup Optimize sql queries Refactor specs file Add rubocop disablement Add special case for project owners Add small refactor Add explanation to the docs Fix wording Refactor group check Add small changes in specs Add cr remarks Add cr remarks Add specs Add small refactor Add code review remarks Refactor for better database usage Fix failing spec Remove rubocop offences Add cr remarks
* Add latest changes from gitlab-org/gitlab@12-4-stable-eeGitLab Bot2019-10-2260-295/+2247
|
* Merge branch 'security-bypass-email-verification-using-salesforce' into ↵GitLab Release Tools Bot2019-09-261-9/+37
|\ | | | | | | | | | | | | '12-3-stable' Prevent Bypassing Email Verification using Salesforce See merge request gitlab/gitlabhq!3395
| * Add checking for email_verified keyMałgorzata Ksionek2019-09-231-9/+37
| | | | | | | | | | | | | | | | | | | | | | | | Fix rubocop offences and add changelog Add email_verified key for feature specs Add code review remarks Add code review remarks Fix specs
* | Merge branch 'security-sarcila-verify-saml-request-origin-12-3' into ↵GitLab Release Tools Bot2019-09-261-11/+47
|\ \ | | | | | | | | | | | | | | | | | | '12-3-stable' Check that SAML identity linking validates the origin of the request See merge request gitlab/gitlabhq!3396
| * | Validate that SAML requests are originated from gitlabSebastian Arcila Valenzuela2019-09-201-11/+47
| |/ | | | | | | | | | | | | | | If the request wasn't initiated by gitlab we shouldn't add the new identity to the user, and instead show that we weren't able to link the identity to the user. This should fix: https://gitlab.com/gitlab-org/gitlab-ce/issues/56509
* | Merge branch ↵GitLab Release Tools Bot2019-09-261-0/+41
|\ \ | | | | | | | | | | | | | | | | | | 'security-12717-fix-confidential-issue-assignee-visible-to-guests-12-3' into '12-3-stable' Display only participants that user has permission to see See merge request gitlab/gitlabhq!3421
| * | Display only participants that user has permission to seeAlexandru Croitor2019-09-231-0/+41
| |/
* | Merge branch 'security-64938-dont-disclose-path-12-3-ce' into '12-3-stable'GitLab Release Tools Bot2019-09-261-0/+29
|\ \ | | | | | | | | | | | | Redirect user to root path after unsubscribing from private resource See merge request gitlab/gitlabhq!3423
| * | Redirect user to root path after unsubscribing from private resourceAlexandru Croitor2019-09-231-0/+29
| |/ | | | | | | | | | | | | | | If user unsubsrcribes from a resource that they no longer have access to they should not be revealed the resource path, but be redirected to app root instead. https://gitlab.com/gitlab-org/gitlab-ce/issues/64938
* | Merge branch ↵GitLab Release Tools Bot2019-09-261-2/+69
|\ \ | | | | | | | | | | | | | | | | | | 'security-12718-project-milestones-disclosed-via-groups-12-3-ce' into '12-3-stable' Hide disabled project milestones in project settings on group level See merge request gitlab/gitlabhq!3424
| * | Hide disabled project milestones in project settings on group levelAlexandru Croitor2019-09-231-2/+69
| |/
* | Add latest changes from gitlab-org/gitlab@12-3-stable-eeGitLab Bot2019-09-241-2/+2
|/
* Add latest changes from gitlab-org/gitlab@12-3-stableGitLab Bot2019-09-204-165/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-191-6/+14
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-181-2/+109
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-181-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-187-5/+73
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-173-3/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-161-26/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-161-3/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-161-7/+31
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-161-0/+25
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-161-0/+34
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-3/+5
|
* Merge branch 'static-objects-external-storage' into 'master'Thong Kuah2019-09-112-0/+150
|\ | | | | | | | | Enable serving static objects from an external storage See merge request gitlab-org/gitlab-ce!31025
| * Enable serving static objects from an external storagestatic-objects-external-storageAhmad Sherif2019-09-102-0/+150
| | | | | | | | | | | | | | | | | | | | It consists of two parts: 1. Redirecting users to the configured external storage 1. Allowing the external storage to request the static object(s) on behalf of the user by means of specific tokens Part of https://gitlab.com/gitlab-com/gl-infra/infrastructure/issues/6829
* | Merge branch 'sh-fix-oauth-application-page' into 'master'Rémy Coutable2019-09-111-0/+10
|\ \ | | | | | | | | | | | | | | | | | | Optimize /admin/applications so that it does not timeout Closes #67228 See merge request gitlab-org/gitlab-ce!32852
| * | Optimize /admin/applications so that it does not timeoutsh-fix-oauth-application-pageStan Hu2019-09-091-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On our dev instance, /admin/applications as not loading because: 1. There was an unindexed query by `application_id`. 2. There was an expensive query that attempted to load 1 million unique entries via ActiveRecord just to find the unique count. We fix the first issue by adding an index for that column. We fix the second issue with a simple SELECT COUNT(DISTINCT resource_owner_id) SQL query. In addition, we add pagination to avoid loading more than 20 applications at once. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/67228
* | | Merge branch '65988-optimize-snippet-listings' into 'master'Thong Kuah2019-09-116-89/+66
|\ \ \ | | | | | | | | | | | | | | | | Optimize queries for snippet listings See merge request gitlab-org/gitlab-ce!32576
| * | | Add controller concern for paginated collections65988-optimize-snippet-listingsMarkus Koller2019-09-106-89/+66
| |/ / | | | | | | | | | | | | | | | We had similar code in a few places to redirect to the last page if the given page number is out of range. This unifies the handling in a new controller concern and adds usage of it in all snippet listings.
* | | Merge remote-tracking branch 'origin/master' into ↵Douglas Barbosa Alexandre2019-09-095-60/+151
|\ \ \ | |/ / | | | | | | camilstaps/gitlab-ce-new-66023-public-private-fork-counts
| * | Create new feature flagged UI for cloud providersEnrique Alcántara2019-09-093-6/+55
| | | | | | | | | | | | | | | | | | | | | - Create HAML UI select a cloud provider to create a cluster. - Add query param to :new cluster view to display a specific cluster provider form depending on the value of the provider query param. - Update unit tests and e2e tests to reflect these changes