Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rename ENV['PROTOCOL'] to ENV['GL_PROTOCOL'] and make it mandatory with no ↵ | Patricio Cano | 2016-07-05 | 1 | -7/+7 | |
| | | | | fallback value | |||||
* | Added better tests for the protocol check | Patricio Cano | 2016-07-05 | 4 | -1/+126 | |
| | ||||||
* | Simplify protocol assign, and populate ENV['PROTOCOL'] variable when calling ↵ | Patricio Cano | 2016-07-05 | 1 | -1/+1 | |
| | | | | hooks via SSH | |||||
* | Refactor repository paths handling to allow multiple git mount pointsshards | Alejandro Rodríguez | 2016-06-29 | 4 | -84/+112 | |
| | ||||||
* | Merge branch 'simplify-access-status' into 'master' | Valery Sizov | 2016-06-23 | 2 | -4/+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-status | Jacob Vosmaer | 2016-06-23 | 2 | -4/+4 | |
| | | | | | | | | | | Make the optional 'message' argument required. Remove unused 'to_json' method. | |||||
* | | Update PostReceive worker to provide enqueued_at timeenqueued_at_for_jobs | Paco Guzman | 2016-06-23 | 1 | -1/+3 | |
|/ | ||||||
* | Test password | Stan Hu | 2016-05-12 | 1 | -0/+14 | |
| | ||||||
* | Use Redis Ruby client instead of shelling out to redis-cli | Stan Hu | 2016-05-12 | 3 | -49/+51 | |
| | | | | Closes gitlab-org/gitlab-ce#17329 | |||||
* | Remove the update-head command since GitLab doesn't use it anymore | Rémy Coutable | 2016-04-28 | 1 | -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_jid | aiionx | 2016-04-19 | 1 | -1/+1 | |
| | ||||||
* | Remove branch functionality | Robert Schilling | 2016-04-19 | 1 | -34/+0 | |
| | ||||||
* | Remove rm-tag command | Robert Schilling | 2016-04-18 | 1 | -19/+0 | |
| | ||||||
* | Add encoding for the ssh key on the url | Pablo Carranza | 2016-03-24 | 2 | -2/+4 | |
| | ||||||
* | Change use of fingerprint for whole key | Pablo Carranza | 2016-03-24 | 3 | -3/+3 | |
| | ||||||
* | Change API endpoint to authorized_keys | Pablo Carranza | 2016-03-24 | 2 | -2/+2 | |
| | ||||||
* | Add authorized keys bin script to find keys by fingerprint | Pablo Carranza | 2016-03-24 | 1 | -4/+4 | |
| | ||||||
* | Add ssh-key resource get to gitlab_net | Pablo Carranza | 2016-03-24 | 4 | -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 deprecated | Pablo Carranza | 2016-03-24 | 1 | -3/+3 | |
| | ||||||
* | updated spec context ant comment [ci-skip]fix/git-annex-ssh | James Lopez | 2016-03-18 | 1 | -2/+2 | |
| | ||||||
* | added comment to clarify spec | James Lopez | 2016-03-16 | 1 | -0/+1 | |
| | ||||||
* | get git annex to work when using custom SSH port | James Lopez | 2016-03-16 | 1 | -1/+9 | |
| | ||||||
* | trying new workaround for shutdown_pipe issue | James Lopez | 2016-02-10 | 1 | -2/+14 | |
| | ||||||
* | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-shell into ↵ | James Lopez | 2016-02-10 | 1 | -1/+1 | |
|\ | | | | | | | fix/ruby-2.2-webrick | |||||
| * | Actually use the read_timeout config option | Jacob Vosmaer | 2016-02-09 | 1 | -1/+1 | |
| | | ||||||
* | | workaround for webrick issue on ruby 2.2 | James Lopez | 2016-02-09 | 1 | -0/+5 | |
|/ | ||||||
* | Merge branch 'remove-trailing-slashes' into 'master' v2.6.9 | Douwe Maan | 2015-12-14 | 1 | -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_url | Jacob Vosmaer | 2015-12-11 | 1 | -0/+6 | |
| | | | | | | | | | | They do not play nice with gitlab-workhorse (or rather Golang net/http DefaultServemux). | |||||
* | | Add spec for stricter exec_cmd checks | Jacob Vosmaer | 2015-11-25 | 1 | -0/+9 | |
| | | ||||||
* | | Limit availability of SSH_ORIGINAL_COMMAND | Jacob Vosmaer | 2015-11-25 | 1 | -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 socket | Kirill Smelkov | 2015-11-10 | 1 | -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 Vosmaer | 2015-10-01 | 1 | -0/+45 | |
|\ | | | | | | | no-init-on-gcryptsetup | |||||
| * | Handle broken symlinks in create-hookscreate-hooks-broken-symlink | Jacob Vosmaer | 2015-08-12 | 1 | -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-gcryptsetup | Jacob Vosmaer | 2015-08-11 | 1 | -0/+8 | |
|/ | | | | | 'gcryptsetup' is a special git-annex feature that does its own initialization. | |||||
* | Remove keys from authorized_keys in-place | Jacob Vosmaer | 2015-07-16 | 1 | -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-refactor | Douwe Maan | 2015-04-06 | 1 | -25/+22 | |
| | ||||||
* | Move setting/unsetting of GL_ID from lib to executables. | Douwe Maan | 2015-04-06 | 1 | -8/+0 | |
| | ||||||
* | Write GitlabShell error to stderr.nice-error-message | Douwe Maan | 2015-04-06 | 1 | -1/+1 | |
| | ||||||
* | Prevent character encoding issues by sending received changes as raw data. | Douwe Maan | 2015-03-15 | 1 | -3/+5 | |
| | ||||||
* | Stub repo path for tests | Dmitriy Zaporozhets | 2015-03-04 | 1 | -0/+1 | |
| | ||||||
* | Add tests. | Douwe Maan | 2015-02-23 | 1 | -7/+76 | |
| | ||||||
* | Improve broadcast message logicv2.5.1 | Dmitriy Zaporozhets | 2015-02-18 | 2 | -4/+4 | |
| | | | | | Expect broadcast message API endpoint to return 200 with empty JSON if no broadcast messages available | |||||
* | Disable git-annex by default | Dmitriy Zaporozhets | 2015-02-16 | 1 | -1/+7 | |
| | ||||||
* | Add more git-annex tests | Dmitriy Zaporozhets | 2015-02-16 | 1 | -1/+9 | |
| | ||||||
* | Enable git-annex on first command | Dmitriy Zaporozhets | 2015-02-13 | 1 | -24/+58 | |
| | ||||||
* | Log full Net::HTTP error. | Douwe Maan | 2015-02-12 | 1 | -5/+0 | |
| | ||||||
* | Show nice error message when internal API is unreachable. | Douwe Maan | 2015-02-11 | 3 | -4/+85 | |
| | ||||||
* | Refactor: Remove #tap for readability and performance and DRY up get/post. | Douwe Maan | 2015-02-11 | 1 | -1/+2 | |
| | ||||||
* | Print broadcast message if one is available. | Douwe Maan | 2015-02-09 | 4 | -0/+99 | |
| | ||||||
* | Revert "Revert "Merge branch 'git_hook_messages'"" | Valery Sizov | 2014-11-24 | 7 | -23/+25 | |
| | | | | This reverts commit f8453da5868dd7a23d0f2f3da7a45e33c441d1db. |