summaryrefslogtreecommitdiff
path: root/lib/api/internal.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add support for SSH certificate authenticationÆvar Arnfjörð Bjarmason2018-08-011-17/+38
| | | | | | | | | | | | | | | | | | | | Why and how to enable this is covered in the docs being changed here. This requires gitlab-org/gitlab-shell@2e8b670 ("Add support for SSH certificate authentication", 2018-06-14) which has been merged in and tagged as 8.0.0, so GITLAB_SHELL_VERSION needs to be bumped. Merging this closes gitlab-org/gitlab-ce#34572 see gitlab-org/gitlab-shell!207 for the gitlab-shell MR. Implementation notes: - The APIs being changed here are all internal, and their sole consumer is gitlab-shell. - Most of the changed code is a MR to gitlab-shell, see the gitlab-org/gitlab-shell!207 MR. That change covers why only some of the internal methods get a new "username" parameter, and why some others only get a "user_id".
* Merge branch 'zj-internal-repo-path' into 'master'Grzegorz Bizon2018-05-281-1/+5
|\ | | | | | | | | Don't pass the repository path to Gitlab Shell See merge request gitlab-org/gitlab-ce!19011
| * Return '/' as a bogus repo path to gitlab-shellzj-internal-repo-pathJacob Vosmaer2018-05-251-1/+5
| |
| * Don't pass the repository path to Gitlab ShellZeger-Jan van de Weg2018-05-171-1/+1
| | | | | | | | This isn't a requirement, and removes deprecated method calls
* | Replace Gitlab::REVISION with Gitlab.revision and handle installations ↵46600-fix-gitlab-revision-when-not-in-git-repoRémy Coutable2018-05-241-1/+1
|/ | | | | | without a .git directory Signed-off-by: Rémy Coutable <remy@rymai.me>
* Resolve "Make a Rubocop that forbids returning from a block"🙈 jacopo beschi 🙉2018-04-181-5/+5
|
* Remove support for absolute dirs from Git::EnvJacob Vosmaer (GitLab)2018-03-301-2/+1
|
* Use hashed storage in the specs40744-hashed-storage-specsNick Thomas2018-02-071-1/+1
|
* Moves project creationg to git access check for git pushTiago Botelho2018-02-061-10/+5
|
* Abstracts ProjectMoved and ProjectCreated into a BaseProjectTiago Botelho2018-02-061-2/+2
|
* Move new project on push logic to a serviceTiago Botelho2018-02-061-9/+7
|
* Add specsTiago Botelho2018-02-061-8/+1
|
* Adds remote messsage when project is created in a push over SSH or HTTPTiago Botelho2018-02-061-5/+12
|
* Adds option to push over SSH to create a new projectTiago Botelho2018-02-061-1/+14
|
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+1
|
* Backport authorized_keys branch 'find-key-by-fingerprint'Pablo Carranza2018-01-081-0/+12
| | | | | | | | | | | | | | | | | | | | | Add find key by base64 key or fingerprint to the internal API See merge request !250 Squashed changes: Add unique index to fingerprint Add new index to schema Add internal api to get ssh key by fingerprint Change API endpoint to authorized_keys Add InsecureKeyFingerprint that calculates the fingerprint without shelling out Add require for gitlab key fingerprint Remove uniqueness of fingerprint index Remove unique option from migration Fix spec style in fingerprint test Fix rubocop complain Extract insecure key fingerprint to separate file Change migration to support building index concurrently Remove those hideous tabs
* Gracefully handle orphaned write deploy keys in /internal/post_receivesh-handle-orphaned-deploy-keysStan Hu2017-12-241-3/+6
| | | | | | | | | On GitLab.com, there are write deploy keys with no associated users. Pushes with these deploy keys end with an Error 500 since we attempt to look up redirect message. If there is no user, don't attempt to display a redirect message. Closes #41466
* Allow git pull/push on project redirectsMayra Cabrera2017-12-081-2/+11
|
* Use relative git object paths to construct absolute ones before setting Envfix/git-env-repo-pathsAhmad Sherif2017-11-141-1/+3
|
* add username to authorized result, so that gitlab-shell can pass it to hooksDavid Turner2017-09-291-0/+7
|
* refactor users update serviceJames Lopez2017-09-281-1/+1
|
* refactor services to match EE signatureJames Lopez2017-09-281-1/+1
|
* Implement /internal/pre-receive for shell operationsAlejandro Rodríguez2017-09-051-0/+8
|
* Return a value to check if redis is available on /internal/checkAlejandro Rodríguez2017-09-051-1/+2
|
* Implement /internal/post_receive unified endpoint for PostReceive tasksgitaly-shell-redisAlejandro Rodríguez2017-08-311-1/+16
|
* Renamed Gitaly servicesAndrew Newdigate2017-07-181-1/+1
|
* Handle case when BroadcastMessage.current is nilStan Hu2017-07-131-1/+1
| | | | | | | Somehow Rails.cache.fetch occasionally returns `nil` values, which causes this endpoint to crash. Closes #35094
* Send Gitaly Repository with /api/internal/allowedgitaly-internal-allowed-send-repoKim "BKC" Carlbäcker2017-07-071-1/+2
| | | | | - Make single gitaly payload - Add feature-flag specs to verify payload
* update code based on feedbackJames Lopez2017-06-231-2/+4
|
* refactor update user service not to do auth checksJames Lopez2017-06-231-1/+1
|
* more refactoring based on feedbackJames Lopez2017-06-231-3/+4
|
* added service in the rest of controllers and classesJames Lopez2017-06-231-1/+1
|
* Allow discover by userid - issue 28517Matt Walsh2017-06-201-3/+8
|
* Add “Project moved” error to Git-over-SSHMichael Kozono2017-06-161-1/+1
|
* #13336 - display multiple messages in both the UI and git outputMike Ricketts2017-06-151-1/+9
|
* Remove unnecessary variablemk-fix-git-over-http-rejectionsMichael Kozono2017-06-051-3/+1
|
* Refactor construction of responseMichael Kozono2017-06-051-14/+6
|
* Refactor to let GitAccess errors bubble upMichael Kozono2017-06-051-18/+20
| | | | | | No external behavior change. This allows `GitHttpController` to set the HTTP status based on the type of error. Alternatively, we could have added an attribute to GitAccessStatus, but this pattern seemed appropriate.
* Prevent errors from non-functional notify_post_receive endpointfix-notify-post-receiveAlejandro Rodríguez2017-05-181-8/+9
|
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Pass GL_REPOSITORY in Workhorse responses29925-gitlab-shell-hooks-can-no-longer-send-absolute-paths-to-gitlab-ceAlejandro Rodríguez2017-05-051-1/+1
|
* Generate and handle a gl_repository param to pass around componentsAlejandro Rodríguez2017-05-031-4/+6
| | | | | | | | | This new param allows us to share project information between components that don't share or don't have access to the same filesystem mountpoints, for example between Gitaly and Rails or between Rails and Gitlab-Shell hooks. The previous parameters are still supported, but if found, gl_repository is prefered. The old parameters should be deprecated once all components support the new format.
* Wrong method call on notify_post_receive.Luigi Leoni2017-04-271-1/+1
|
* Remove unused user activities codeSean McGivern2017-04-141-10/+0
|
* Add user activity service and spec. Also added relevant - NOT offline - ↵James Lopez2017-04-141-0/+12
| | | | | | | migration It uses a user activity table instead of a column in users. Tested with mySQL and postgreSQL
* Set Git-specific env in /api/internal/allowedRémy Coutable2017-04-101-15/+9
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use Gitlab::Git::Repository#gitaly_... moreJacob Vosmaer2017-04-071-1/+1
|
* Incorporate Gitaly client for refs serviceAlejandro Rodríguez2017-04-041-1/+4
|
* Separate GRPC channels per repository storageJacob Vosmaer2017-03-291-1/+1
|
* Add internal endpoint to notify post-receive to Gitalygitaly-post-receiveAlejandro Rodríguez2017-03-011-0/+12
|