summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
* Added test for old Git LFS clients that submit an extra :oid argument to ↵Patricio Cano2016-09-061-0/+13
| | | | `git-lfs-authenticate`
* Refactored JSON header generation to its own class and added tests for itPatricio Cano2016-09-061-0/+21
|
* Added LFS support to SSHPatricio Cano2016-09-065-5/+22
| | | | - 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-264-3/+165
|
* Remove useless `.and_call_origin` from specsfeature/redis-sentinelGabriel Mazetto2016-08-191-17/+5
|
* Added specs for sentinel supportGabriel Mazetto2016-08-183-11/+29
|
* Merge branch 'dup-frozen-argv-key' into 'master' Robert Speicher2016-08-111-1/+1
|\ | | | | | | | | | | | | | | | | 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/+1
| | | | | | | | | | | | 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-111-22/+102
|\ \ | |/ |/| | | | | | | | | 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-121-22/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+7
| | | | | | | | That way the file is created if it does not exist.
* | Newline after "let"key-validationsJacob Vosmaer2016-08-101-0/+1
| |
* | Changes proposed during reviewJacob Vosmaer2016-08-101-2/+2
| |
* | Defense in depth for authorized_keys linesJacob Vosmaer2016-08-051-0/+26
| |
* | Add permission check tests, improve checkauthorized-keys-permission-checkJacob Vosmaer2016-08-031-1/+20
| |
* | Manage authorized_keys permissions continuouslykeys-chmodJacob Vosmaer2016-08-011-1/+1
|/ | | | | | 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-0/+78
| | | | running (after waiting some time)
* Add command to move repositories between repository storagesAlejandro Rodríguez2016-07-271-0/+37
|
* Allow gitlab-project's fork-project command to fork projects between ↵Alejandro Rodríguez2016-07-261-7/+32
| | | | different repository storages
* Rename ENV['PROTOCOL'] to ENV['GL_PROTOCOL'] and make it mandatory with no ↵Patricio Cano2016-07-051-7/+7
| | | | fallback value
* Added better tests for the protocol checkPatricio Cano2016-07-054-1/+126
|
* Simplify protocol assign, and populate ENV['PROTOCOL'] variable when calling ↵Patricio Cano2016-07-051-1/+1
| | | | hooks via SSH
* Refactor repository paths handling to allow multiple git mount pointsshardsAlejandro Rodríguez2016-06-294-84/+112
|
* Merge branch 'simplify-access-status' into 'master' Valery Sizov2016-06-232-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-statusJacob Vosmaer2016-06-232-4/+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/+3
|/
* Test passwordStan Hu2016-05-121-0/+14
|
* Use Redis Ruby client instead of shelling out to redis-cliStan Hu2016-05-123-49/+51
| | | | 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