summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Properly rescue from JSON parse.lfs-authenticate-supportPatricio Cano2016-09-081-2/+6
|
* Style fixes and better tests.Patricio Cano2016-09-062-3/+3
|
* Refactored LFS auth logic to use its own API endpoint.Patricio Cano2016-09-064-18/+40
|
* Refactored JSON header generation to its own class and added tests for itPatricio Cano2016-09-062-10/+24
|
* Added LFS support to SSHPatricio Cano2016-09-063-5/+27
| | | | - Required changes to GitLab Shell include the actual handling of the `git-lfs-authenticate` command and the retrieval of the correct credentials.
* Add option to recover 2FA via SSHDrew Blessing2016-08-262-9/+56
|
* Sentinel connection parameters in `config.yml` fileGabriel Mazetto2016-08-181-0/+6
|
* Merge branch 'dup-frozen-argv-key' into 'master' Robert Speicher2016-08-111-1/+2
|\ | | | | | | | | | | | | | | | | In order to use chomp! on the input later, we need to dup the ARGV input string for keys Also updated the gitlab_key tests to freeze the ARGV variables. Fixes https://gitlab.com/gitlab-org/gitlab-shell/issues/56 See merge request !84
| * In order to use chomp! on the input later, we need to dup the ARGV input ↵dup-frozen-argv-keyDJ Mountney2016-08-101-1/+2
| | | | | | | | | | | | string for keys Also updated the gitlab_key tests to freeze the ARGV variables.
* | Merge branch 'feature/new-merge-request-url' into 'master' Douwe Maan2016-08-112-1/+36
|\ \ | |/ |/| | | | | | | | | Show Merge request link after pushing if new brach This is part of implementation for issue https://gitlab.com/gitlab-org/gitlab-ce/issues/18266 See merge request !77
| * print new merge request urls after push receivedScott Le2016-08-122-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update spec different text for new and existing merge request update spec fix style switch order of messages enhance message appearance remove extra spaces
* | Update the keys permission check to open the file in write mode.DJ Mountney2016-08-101-2/+2
| | | | | | | | That way the file is created if it does not exist.
* | Changes proposed during reviewJacob Vosmaer2016-08-101-1/+1
| |
* | Defense in depth for authorized_keys linesJacob Vosmaer2016-08-051-0/+5
| |
* | Refactor 'GitlabKey' class awaysmall-fixesJacob Vosmaer2016-08-041-15/+11
| | | | | | | | | | It is not nice to have both 'GitlabKeys' and 'GitlabKey'. We also do not need GitlabKey to be a class when it has no state.
* | Add permission check tests, improve checkauthorized-keys-permission-checkJacob Vosmaer2016-08-031-3/+3
| |
* | Improve authorized_keys checkJacob Vosmaer2016-08-021-0/+13
| | | | | | | | | | | | The old check only looked if authorized_keys exists. With this change, we look whether we can actually open the file for reading and writing. When this fails we try to print useful diagnostic information.
* | Manage authorized_keys permissions continuouslykeys-chmodJacob Vosmaer2016-08-011-4/+11
|/ | | | | | We can lazily create authorized_keys and set its permissions. This adds negligible overhead and it allows us to remove a setup step from GitLab both on source and in omnibus-gitlab.
* Track ongoing pushes and reject mv-storage commands if there are push ↵mv-storageAlejandro Rodríguez2016-07-273-3/+76
| | | | running (after waiting some time)
* Add command to move repositories between repository storagesAlejandro Rodríguez2016-07-271-0/+32
|
* Allow gitlab-project's fork-project command to fork projects between ↵Alejandro Rodríguez2016-07-261-1/+8
| | | | different repository storages
* Add an error message when using shell commands with incompatible GitLab versionsAlejandro Rodríguez2016-07-061-0/+1
|
* Make use of a constant for the used SSH protocolPatricio Cano2016-07-051-2/+3
|
* Rename ENV['PROTOCOL'] to ENV['GL_PROTOCOL'] and make it mandatory with no ↵Patricio Cano2016-07-053-3/+3
| | | | fallback value
* Simplify protocol assign, and populate ENV['PROTOCOL'] variable when calling ↵Patricio Cano2016-07-051-1/+2
| | | | hooks via SSH
* Allow GitLab Shell to check for allowed access based on the used Git protocol.Patricio Cano2016-07-053-5/+7
|
* use STDERR to output error messagesValery Sizov2016-07-051-3/+3
|
* Refactor repository paths handling to allow multiple git mount pointsshardsAlejandro Rodríguez2016-06-297-42/+34
|
* Simplify custom hook output handlingcustom-hook-outputJacob Vosmaer2016-06-241-29/+16
|
* Merge branch 'gitlab-redis' into 'master' Stan Hu2016-06-233-2/+3
|\ | | | | | | | | | | | | Put Redis loading code in one place Before this change you could not run the gitlab_net specs in isolation. See merge request !64
| * Put Redis loading code in one placegitlab-redisJacob Vosmaer2016-06-233-2/+3
| |
* | Merge branch 'simplify-access-status' into 'master' Valery Sizov2016-06-231-5/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | Simplify the GitAccessStatus class Make the optional 'message' argument required. Remove unused 'to_json' method. See merge request !65
| * | Simplify the GitAccessStatus classsimplify-access-statusJacob Vosmaer2016-06-231-5/+4
| |/ | | | | | | | | Make the optional 'message' argument required. Remove unused 'to_json' method.
* | Update PostReceive worker to provide enqueued_at timeenqueued_at_for_jobsPaco Guzman2016-06-231-1/+6
|/
* Put redis library in lib/vendor/ and adjust LOAD_PATHuse-redis-rb-clientStan Hu2016-05-1216-20/+21
|
* Add redis-rb as a vendored libraryStan Hu2016-05-1216-2/+5284
| | | | `make update-redis` will clone the library and adjust the paths properly
* Use Redis Ruby client instead of shelling out to redis-cliStan Hu2016-05-123-26/+25
| | | | Closes gitlab-org/gitlab-ce#17329
* Remove the update-head command since GitLab doesn't use it anymoreRémy Coutable2016-04-281-17/+0
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Revert "Remove unused #list_remote_tags"revert-53Rémy Coutable2016-04-251-0/+22
| | | | | | This reverts commit f5e87590d463b4b3d1bf5cd6b49a9d0d60acd552. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Update post receive worker so it logs a unique JID in sidekiqaiionx/gitlab-shell-aiionx-post_receive_jidaiionx2016-04-191-2/+4
|
* Remove branch functionalityRobert Schilling2016-04-191-15/+0
|
* Remove rm-tag commandRobert Schilling2016-04-181-7/+0
|
* Remove unused #list_remote_tagsRobert Schilling2016-04-161-22/+0
|
* Revert "Do not prune objects during 'git gc'"Jacob Vosmaer2016-04-061-1/+1
| | | | | | | This reverts commit 1ca8a44f0baa1728650308fe992f42660170ae16. Never pruning loose objects at all is not really a solution for anything, and it causes annoying `git gc --auto` warnings.
* Add new command to list tags from a remote repo.Rubén Dávila2016-03-311-1/+24
| | | | | | The output of the `git ls-remote` command is written to the STDOUT so the client can read and parse the list of tags. If there is an error it's also written to STDOUT.
* Add the ability to fetch remote repo without tags.gl_ee_issue_116Rubén Dávila2016-03-301-2/+6
| | | | | | When fetching remote repo with tags the new remote tags are mixed in with the local tags (all tags are saved under refs/tags), this affects the UI of the Project given that we're showing up tags of a remote repo.
* Add encoding for the ssh key on the urlPablo Carranza2016-03-241-1/+1
|
* Change use of fingerprint for whole keyPablo Carranza2016-03-241-2/+2
|
* Change API endpoint to authorized_keysPablo Carranza2016-03-241-1/+1
|
* Add authorized keys bin script to find keys by fingerprintPablo Carranza2016-03-243-13/+19
|