summaryrefslogtreecommitdiff
path: root/spec/gitlab_keys_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Ensure rm-key works with only IDMichael Kozono2017-06-281-0/+17
|
* Add list-key-ids commandMichael Kozono2017-06-281-2/+28
|
* Instrument GitLab Shell and log metrics data to a filePaco Guzman2016-10-111-2/+2
|
* 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.
* 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.
* 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'.
* 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
* Improve coverage.Gabor Nagy2014-06-231-0/+20
|
* Create keys fixtures in testDmitriy Zaporozhets2014-05-311-0/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Put authorized_keys.lock in the .ssh directoryJacob Vosmaer2014-05-301-1/+12
|
* Use lock file when add or remove keys from authorized_keys fileDmitriy Zaporozhets2014-04-181-0/+36
| | | | | | This prevents concurrent modification of authorized_keys file Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add gitlab-keys batch-add-keysJacob Vosmaer2014-03-141-0/+42
| | | | | This command is intended to be called by the GitLab Rails code when restoring an application backup.
* Stub file writing in testsJacob Vosmaer2013-11-251-6/+11
|
* Fix return values in GitlabKeysJacob Vosmaer2013-11-201-4/+23
|
* Refactor file writing testsJacob Vosmaer2013-11-201-33/+34
|
* More file writing tests for GitlabKeysJacob Vosmaer2013-11-051-27/+33
|
* Remove sed invocation from GitlabKeysJacob Vosmaer2013-11-021-5/+10
|
* Use Kernel#open to append lines to authorized_keysJacob Vosmaer2013-10-311-2/+5
|
* Use Tempfile instead of `sed -i`Jacob Vosmaer2013-07-191-1/+4
| | | | | | The syntax for `sed -i` is incompatible between GNU sed and BSD sed. By Tempfile from the Ruby standard library we can avoid using the `-i` option of sed.
* Use :warn instead of :error for invalid commands.ash2013-05-181-2/+2
|
* Add logging specs for gitlab-keys.ash2013-05-171-0/+21
|
* Fix tests and version up to 1.4.0v1.4.0Dmitriy Zaporozhets2013-04-301-1/+1
|
* test GitlabKeys execDmitriy Zaporozhets2013-03-111-19/+35
|
* fix keys testsDmitriy Zaporozhets2013-02-091-1/+1
|
* Updated with #{}Michael2013-02-071-2/+2
|
* Read auth keys file from configMichael2013-02-071-2/+2
|
* Fix key removeDmitriy Zaporozhets2013-02-051-1/+1
|
* add/remove keys by idDmitriy Zaporozhets2013-02-051-6/+6
|
* gitlab-initDmitriy Zaporozhets2013-02-051-1/+1
|
* gitlab-keys with testsDmitriy Zaporozhets2013-02-051-0/+47