summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Pipe RPUSH command to Redis via stdin to avoid overrunning command-lineuse-stdinStan Hu2016-05-101-8/+11
| | | | Closes gitlab-org/gitlab-ce#17329
* Remove the update-head command since GitLab doesn't use it anymoreRémy Coutable2016-04-281-27/+0
| | | | 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-1/+1
|
* Remove branch functionalityRobert Schilling2016-04-191-34/+0
|
* Remove rm-tag commandRobert Schilling2016-04-181-19/+0
|
* Add encoding for the ssh key on the urlPablo Carranza2016-03-242-2/+4
|
* Change use of fingerprint for whole keyPablo Carranza2016-03-243-3/+3
|
* Change API endpoint to authorized_keysPablo Carranza2016-03-242-2/+2
|
* Add authorized keys bin script to find keys by fingerprintPablo Carranza2016-03-241-4/+4
|
* Add ssh-key resource get to gitlab_netPablo Carranza2016-03-244-0/+168
| | | | | This provides the integration point to the internal API to get the ssh key from the internal API.
* Drop bang in stub method as it is deprecatedPablo Carranza2016-03-241-3/+3
|
* updated spec context ant comment [ci-skip]fix/git-annex-sshJames Lopez2016-03-181-2/+2
|
* added comment to clarify specJames Lopez2016-03-161-0/+1
|
* get git annex to work when using custom SSH portJames Lopez2016-03-161-1/+9
|
* trying new workaround for shutdown_pipe issueJames Lopez2016-02-101-2/+14
|
* Merge branch 'master' of gitlab.com:gitlab-org/gitlab-shell into ↵James Lopez2016-02-101-1/+1
|\ | | | | | | fix/ruby-2.2-webrick
| * Actually use the read_timeout config optionJacob Vosmaer2016-02-091-1/+1
| |
* | workaround for webrick issue on ruby 2.2James Lopez2016-02-091-0/+5
|/
* Merge branch 'remove-trailing-slashes' into 'master' v2.6.9Douwe Maan2015-12-141-0/+6
|\ | | | | | | | | | | | | | | Remove trailing slashes from gitlab_url They do not play nice with gitlab-workhorse (or rather Golang net/http DefaultServemux). See merge request !35
| * Remove trailing slashes from gitlab_urlJacob Vosmaer2015-12-111-0/+6
| | | | | | | | | | They do not play nice with gitlab-workhorse (or rather Golang net/http DefaultServemux).
* | Add spec for stricter exec_cmd checksJacob Vosmaer2015-11-251-0/+9
| |
* | Limit availability of SSH_ORIGINAL_COMMANDJacob Vosmaer2015-11-251-24/+24
|/ | | | | Hoping this makes it more obvious when code touches the very unsafe contents of this variable.
* Add support to connect gitlab-shell to Unicorn via UNIX socketKirill Smelkov2015-11-101-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is well known that UNIX sockets are faster than TCP over loopback. E.g. on my machine according to lmbench[1] they have ~ 2 times lower latency and ~ 2-3 times more throughput compared to TCP over loopback: *Local* Communication latencies in microseconds - smaller is better --------------------------------------------------------------------- Host OS 2p/0K Pipe AF UDP RPC/ TCP RPC/ TCP ctxsw UNIX UDP TCP conn --------- ------------- ----- ----- ---- ----- ----- ----- ----- ---- teco Linux 4.2.0-1 13.8 29.2 26.8 45.0 47.9 48.5 55.5 45. *Local* Communication bandwidths in MB/s - bigger is better ----------------------------------------------------------------------------- Host OS Pipe AF TCP File Mmap Bcopy Bcopy Mem Mem UNIX reread reread (libc) (hand) read write --------- ------------- ---- ---- ---- ------ ------ ------ ------ ---- ----- teco Linux 4.2.0-1 1084 4353 1493 2329.1 3720.7 1613.8 1109.2 3402 1404. The same ratio usually holds for servers. Also UNIX sockets, since they reside on filesystem, besides being faster with less latency, have one another nice property: access permissions to them are managed the same way access to files is. Because of lower latencies and higher throughput - for performance reasons, and for easier security, it makes sense to interconnect services on one machine via UNIX sockets and talk via TCP only to outside world. All internal services inside GitLab can talk to each other via UNIX socket already and only gitlab-shell was missing support to talk to Unicorn via UNIX socket. Let's teach gitlab-shell to talk via UNIX sockets. [1] http://www.bitmover.com/lmbench/ ~~~~ In this patch we - add URI::HTTPUNIX to handle http+unix:// URI scheme - add Net::HTTPUNIX to handle "connect via unix socket and then talk http" - adjust GitlabNet#http_client_for() accordingly - adjust documentation in config.yml.example The http+unix:// scheme is not reinvented anew: the idea about its structure is quite logical an was already established at least in requests-unixsocket python package: http://fixall.online/theres-no-need-to-reinvent-the-wheelhttpsgithubcommsabramorequests-unixsocketurl/241810/ https://github.com/msabramo/requests-unixsocket
* Merge branch 'master' of gitlab.com:gitlab-org/gitlab-shell into ↵Jacob Vosmaer2015-10-011-0/+45
|\ | | | | | | no-init-on-gcryptsetup
| * Handle broken symlinks in create-hookscreate-hooks-broken-symlinkJacob Vosmaer2015-08-121-0/+45
| | | | | | | | | | | | | | If a repository contained a broken symlink named 'hooks', this would raise ENOENT in lib/gitlab_projects.rb, which got ignored in bin/create-hooks. This commit fixes that by making sure we handle broken symlinks in lib/gitlab_projects.rb.
* | Skip 'git annex init' when using 'gcryptsetup'no-init-on-gcryptsetupJacob Vosmaer2015-08-111-0/+8
|/ | | | | 'gcryptsetup' is a special git-annex feature that does its own initialization.
* Remove keys from authorized_keys in-placeJacob Vosmaer2015-07-161-3/+5
| | | | | | This will speed up the rm-key operation. The downside is that authorized_keys will not shrink when you remove a key. If this ever becomes a problem it can be fixed by running 'rake gitlab:shell:setup'.
* Update GitlabShell tests.gl-id-refactorDouwe Maan2015-04-061-25/+22
|
* Move setting/unsetting of GL_ID from lib to executables.Douwe Maan2015-04-061-8/+0
|
* Write GitlabShell error to stderr.nice-error-messageDouwe Maan2015-04-061-1/+1
|
* Prevent character encoding issues by sending received changes as raw data.Douwe Maan2015-03-151-3/+5
|
* Stub repo path for testsDmitriy Zaporozhets2015-03-041-0/+1
|
* Add tests.Douwe Maan2015-02-231-7/+76
|
* Improve broadcast message logicv2.5.1Dmitriy Zaporozhets2015-02-182-4/+4
| | | | | Expect broadcast message API endpoint to return 200 with empty JSON if no broadcast messages available
* Disable git-annex by defaultDmitriy Zaporozhets2015-02-161-1/+7
|
* Add more git-annex testsDmitriy Zaporozhets2015-02-161-1/+9
|
* Enable git-annex on first commandDmitriy Zaporozhets2015-02-131-24/+58
|
* Log full Net::HTTP error.Douwe Maan2015-02-121-5/+0
|
* Show nice error message when internal API is unreachable.Douwe Maan2015-02-113-4/+85
|
* Refactor: Remove #tap for readability and performance and DRY up get/post.Douwe Maan2015-02-111-1/+2
|
* Print broadcast message if one is available.Douwe Maan2015-02-094-0/+99
|
* Revert "Revert "Merge branch 'git_hook_messages'""Valery Sizov2014-11-247-23/+25
| | | | This reverts commit f8453da5868dd7a23d0f2f3da7a45e33c441d1db.
* Revert "Merge branch 'git_hook_messages'"Jacob Vosmaer2014-11-207-25/+23
| | | | | | | | | | At least the following things were broken: - missing require for 'gitlab_access_status' in lib/gitlab_net.rb - gitlabhq master internal API returns 'true' or 'false', gitlab-shell expects JSON This reverts commit 11311a95545f967a5736cd16ab5fc37f7e658519, reversing changes made to 45444597aef3e434571de2491934ae92357ad231.
* Show error message when git access is rejectedValery Sizov2014-11-147-23/+25
|
* Merge pull request #177 from feedhenry/keys_listDmitriy Zaporozhets2014-10-281-0/+13
|\ | | | | Added list-keys command, with associated spec
| * Added list-keys command and specDavid Martin2014-10-151-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed puts and tidied up regex Address the hound Address the hound, again Use single quotes Add back travis.yml file Remove travis.yml, only keep on fh-master Use single quotes Use single quotes
* | Merge pull request #179 from feedhenry/projects_listDmitriy Zaporozhets2014-10-281-0/+16
|\ \ | | | | | | Added list-projects command & spec
| * | Added list-projects command & specDavid Martin2014-10-151-0/+16
| |/ | | | | | | | | | | | | | | | | | | list-projects command usage Single quotes Use single quotes Use single quotes
* | Fix indentationDmitriy Zaporozhets2014-10-201-4/+4
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | add secret tokenValery Sizov2014-10-158-7/+29
|/