BigW Consortium Gitlab
Exclude requesters from Project#members, Group#members and User#members ## What does this MR do? It excludes requesters from the `Project#members`, `Group#members` and `User#members` associations, and adds new `Project#requesters` and `Group#requesters` associations. ## Are there points in the code the reviewer needs to double check? No. ## Why was this MR needed? Without this, if you call `project.members`, requesters are included in the results! This is at best misleading, and at worst can lead to security issues. By excluding requesters from the `#members` associations, we avoid introducing security inadvertently since you have to call the `#requesters` association explicitly to get requesters. ## What are the relevant issue numbers? This is something I realized while fixing the security issue #19102. ## Does this MR meet the acceptance criteria? - [x] I don't think this needs a CHANGELOG since this is an internal change - Tests - [x] Added for this feature/bug - [ ] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !4946
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
abuse_reports_controller.rb | Loading commit data... | |
appearances_controller.rb | Loading commit data... | |
application_controller.rb | Loading commit data... | |
application_settings_controller.rb | Loading commit data... | |
applications_controller.rb | Loading commit data... | |
background_jobs_controller.rb | Loading commit data... | |
broadcast_messages_controller.rb | Loading commit data... | |
builds_controller.rb | Loading commit data... | |
dashboard_controller.rb | Loading commit data... | |
deploy_keys_controller.rb | Loading commit data... | |
groups_controller.rb | Loading commit data... | |
health_check_controller.rb | Loading commit data... | |
hooks_controller.rb | Loading commit data... | |
identities_controller.rb | Loading commit data... | |
impersonations_controller.rb | Loading commit data... | |
keys_controller.rb | Loading commit data... | |
labels_controller.rb | Loading commit data... | |
logs_controller.rb | Loading commit data... | |
projects_controller.rb | Loading commit data... | |
runner_projects_controller.rb | Loading commit data... | |
runners_controller.rb | Loading commit data... | |
services_controller.rb | Loading commit data... | |
spam_logs_controller.rb | Loading commit data... | |
system_info_controller.rb | Loading commit data... | |
users_controller.rb | Loading commit data... |