gitlab-org--gitlab-foss/lib/api
Rémy Coutable 670b2eb5c0
Merge branch 'api-fix-project-group-sharing' into 'security'
API: Share projects only with groups current_user can access

Aims to address the issues here: https://gitlab.com/gitlab-org/gitlab-ce/issues/23004

* Projects can be shared with non-existent groups
* Projects can be shared with groups that the current user does not have access to read

Concerns:

The new implementation of the API endpoint allows projects to be shared with a larger range of groups than can be done via the web UI.

The form for sharing a project with a group uses the following API endpoint to index the available groups: 494269fc92/lib/api/groups.rb (L17). The groups indexed in the web form will only be those groups that the user is currently a member of.

The new implementation allows projects to be shared with any group that the authenticated user has access to view. This widens the range of groups to those that are public and internal.

See merge request !2005

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-11 20:36:26 +02:00
..
helpers New AccessRequests API endpoints for Group & Project 2016-08-10 19:07:05 +02:00
access_requests.rb Use Grape DSL to document methods and their params 2016-10-05 11:20:27 +02:00
api.rb Replace undefined Grape routing code from 400 to 404 2016-10-10 16:32:32 +03:00
api_guard.rb Remove some dead code from the Grape API 2016-09-19 12:27:36 +01:00
award_emoji.rb GrapeDSL for Award Emoji endpoints 2016-10-03 10:32:09 +02:00
boards.rb Added Issue Board API support 2016-10-05 13:12:07 -03:00
branches.rb Fix failing tests relating to backporting ee!581. 2016-08-16 13:42:34 +05:30
broadcast_messages.rb Add BroadcastMessage API implementation 2016-08-31 17:03:18 -03:00
builds.rb Incorporate feedback 2016-08-18 21:10:53 +02:00
commit_statuses.rb Fix an error where we were unable to create a CommitStatus for running state 2016-09-12 12:20:18 +02:00
commits.rb multi-file commit 2016-10-05 17:42:52 +00:00
deploy_keys.rb Namespace EnableDeployKeyService under Projects 2016-08-08 20:59:51 +02:00
deployments.rb Add deployment endpoints 2016-08-18 21:10:52 +02:00
entities.rb Added Issue Board API support 2016-10-05 13:12:07 -03:00
environments.rb
files.rb Add optional 'author' param when making commits 2016-09-19 10:00:26 -07:00
groups.rb fix group links 404 2016-10-05 09:57:54 +01:00
helpers.rb Merge branch 'memoize_shell_secret_token' into 'master' 2016-10-07 10:35:03 +00:00
internal.rb Handle LFS token creation and retrieval in the same method, and in the same Redis connection. 2016-09-28 12:13:48 -05:00
issues.rb Fix API issues sorting 2016-09-09 16:10:01 +01:00
keys.rb GrapeDSL for Keys endpoint 2016-10-01 11:11:41 +02:00
labels.rb
license_templates.rb
lint.rb Improve curl commend, remove blank lines 2016-09-07 12:54:02 +02:00
members.rb Use Grape DSL to document methods and their params 2016-10-05 11:20:27 +02:00
merge_request_diffs.rb Add single merge request diff API endpoint 2016-08-12 14:44:49 +03:00
merge_requests.rb
milestones.rb Small improvements thanks to Robert's feedback 2016-09-30 12:02:54 +02:00
namespaces.rb GrapeDSL for Namespace endpoint 2016-10-04 07:47:29 +02:00
notes.rb Fix API notes endpoint when posting only emoji 2016-09-16 16:28:53 +02:00
notification_settings.rb Add notification_settings API calls 2016-09-09 17:08:06 +00:00
pipelines.rb Use PipelinesFinder in Pipelines API 2016-09-07 15:38:03 +02:00
project_hooks.rb api: expose wiki_page_events project hook field in the API 2016-08-24 10:33:51 -04:00
project_snippets.rb
projects.rb Merge branch 'api-fix-project-group-sharing' into 'security' 2016-10-11 20:36:26 +02:00
repositories.rb
runners.rb
services.rb
session.rb Small refactor and syntax fixes. 2016-08-18 16:47:26 -05:00
settings.rb
sidekiq_metrics.rb
subscriptions.rb
system_hooks.rb
tags.rb
templates.rb Load issues and merge requests templates from repository 2016-08-16 15:50:17 -03:00
todos.rb Recover usage of Todos counter cache 2016-08-12 18:21:36 +02:00
triggers.rb
users.rb Add User#organization to users api 2016-09-27 14:04:39 +03:00
variables.rb