summaryrefslogtreecommitdiff
path: root/lib/api/deploy_keys.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make ruby lint happysh-backport-10-3-4-security-fixesOswaldo Ferreira2018-01-171-0/+1
|
* Merge branch 'sh-migrate-can-push-to-deploy-keys-projects-10-3' into ↵Douwe Maan2018-01-161-19/+45
| | | | | | | | | | | | 'security-10-3' [10.3] Migrate `can_push` column from `keys` to `deploy_keys_project` See merge request gitlab/gitlabhq!2276 (cherry picked from commit f6ca52d31bac350a23938e0aebf717c767b4710c) 1f2bd3c0 Backport to 10.3
* API: Use defined project requirementsrs-api-use-project-requirementsRobert Schilling2017-08-311-1/+1
|
* Conditionally destroy a ressourceRobert Schilling2017-08-281-4/+1
|
* API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling2017-08-281-0/+2
|
* Update grape gemdz-update-grapeDmitriy Zaporozhets2017-07-201-0/+1
| | | | | | | | New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix edit button for deploy keys available from other projectsAlexander Randa2017-06-201-1/+1
|
* Implement ability to update deploy keysAlexander Randa2017-06-021-0/+21
|
* Enable creation of deploy keys with write access via the APIMark Fletcher2017-04-051-0/+1
| | | | * Documentation was incorrectly advertising the missing param
* Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable2017-03-161-1/+1
| | | | | | API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
* API: Remove `DELETE projects/:id/deploy_keys/:key_id/disable`api-remove-deploy-key-disableRobert Schilling2017-02-201-19/+3
|
* Paginate all endpoints that return an arrayRobert Schilling2017-02-161-3/+11
|
* Remove /projects/:id/keys/.. endpointsRobert Schilling2017-02-071-89/+83
|
* Merge branch 'grapify-deploy-keys' into 'master' Rémy Coutable2017-01-241-9/+8
|\ | | | | | | | | Grapify all endpoints of the deploy keys API See merge request !8721
| * Grapify all endpoints of the deploy keys APIgrapify-deploy-keysRobert Schilling2017-01-231-9/+8
| |
* | Merge branch 'fix-users-deleting-public-deployment-keys' into 'security' Robert Speicher2017-01-231-3/+7
|/ | | | | Fix users being able to delete instance public deployment keys See merge request !2049
* Use declared_params helper in APIgrapify-declared-paramsRobert Schilling2016-11-141-1/+1
|
* Fixes various errors when adding deploy keys caused by not exiting the ↵Joshua Welsh2016-10-261-2/+7
| | | | | | | | | | | | | control flow. When adding a deploy key that already exists in the project the existing key would not be returned, resulting in an attempt to create a new one, which in turn caused a 500 error due to an ActiveRecord exception. When adding a deploy key that exists within another project the key would be joined to the project, but would also attempt to create a new one, which resulted in a 400 error due to the key already existing. Fixes #22741 Fixes #21754 Signed-off-by: Rémy Coutable <remy@rymai.me>
* Namespace EnableDeployKeyService under ProjectsZ.J. van de Weg2016-08-081-1/+2
|
* Create service for enabling deploy keysZ.J. van de Weg2016-08-051-3/+3
|
* Move deploy_key tests to deploy_key_spec.rbZ.J. van de Weg2016-08-041-5/+6
| | | | Also, fix the failing test in the process
* Use Grape DSL for deploy keys endpointsZ.J. van de Weg2016-08-031-39/+34
| | | | Also a minor clean up of the post endpoint
* Endpoints to enable and disable deploy keysZ.J. van de Weg2016-08-031-0/+31
| | | | Resolves #20123
* Change `return`s for `next`s to please rubocop (behaviour is the same)Alejandro Rodríguez2016-07-201-2/+2
|
* Add /deploy_keys API to retrieve all deploy keys regardless of project ↵Alejandro Rodríguez2016-07-201-53/+66
| | | | | | | affiliation Also, in favour of consistency, deprecate `/projects/:id/keys/...` routes in favour of `/projects/:id/deploy_keys/...`
* Improve error reporting on users APIjubianchi2014-09-161-1/+1
| | | | | | | | * users (#6878, #3526, #4209): Validation error messages are now exposed through 400 responses, 409 response are sent in case of duplicate email or username * MRs (#5335): 409 responses are sent in case of duplicate merge request (source/target branches), 422 responses are sent when submiting MR fo/from unrelated forks * issues * labels * projects
* Remove deprecated findersskv2014-01-191-2/+2
|
* API: set gitlab-ci service for projectDmitriy Zaporozhets2013-10-291-10/+0
|
* API: Protect project deploy keys from unauthorized accessDmitriy Zaporozhets2013-09-301-0/+1
|
* Split Project api on several parts: deploy_keys, hooks, snippets etcDmitriy Zaporozhets2013-06-061-0/+84