Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Consistently schedule Sidekiq jobsdm-application-worker | Douwe Maan | 2017-12-05 | 1 | -0/+1 |
| | |||||
* | Cache the number of user SSH keyscache-user-keys-count | Yorick Peterse | 2017-11-16 | 1 | -0/+8 |
| | | | | | | | | | By caching the number of personal SSH keys we reduce the number of queries necessary on pages such as ProjectsController#show (which can end up querying this data multiple times). The cache is refreshed/flushed whenever an SSH key is added, removed, or when a user is removed. | ||||
* | Ensure key fingerprints are generated correctly when modified | Nick Thomas | 2017-10-03 | 1 | -0/+1 |
| | |||||
* | Stop using Sidekiq for updating Key#last_used_atremove-use-key-worker | Yorick Peterse | 2017-09-20 | 1 | -6/+1 |
| | | | | | | | | | | | | | | | This makes things simpler as no scheduling is involved. Further we remove the need for running a SELECT + UPDATE just to get the key and update it, whereas we only need an UPDATE when setting last_used_at directly in a request. The added service class takes care of updating Key#last_used_at without using Sidekiq. Further it makes sure we only try to obtain a Redis lease if we're confident that we actually need to do so, instead of always obtaining it. We also make sure to _only_ update last_used_at instead of also updating updated_at. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/36663 | ||||
* | created services for keys | haseeb | 2017-09-15 | 1 | -5/+0 |
| | |||||
* | Address review comments | Nick Thomas | 2017-08-30 | 1 | -1/+0 |
| | |||||
* | Rework the permissions model for SSH key restrictions | Nick Thomas | 2017-08-30 | 1 | -25/+12 |
| | | | | | | | | | | | | | | | `allowed_key_types` is removed and the `minimum_<type>_bits` fields are renamed to `<tech>_key_restriction`. A special sentinel value (`-1`) signifies that the key type is disabled. This also feeds through to the UI - checkboxes per key type are out, inline selection of "forbidden" and "allowed" (i.e., no restrictions) are in. As with the previous model, unknown key types are disallowed, even if the underlying ssh daemon happens to support them. The defaults have also been changed from the lowest known bit size to "no restriction". So if someone does happen to have a 768-bit RSA key, it will continue to work on upgrade, at least until the administrator restricts them. | ||||
* | Add settings for minimum key strength and allowed key type | Nick Thomas | 2017-08-30 | 1 | -1/+44 |
| | | | | | | | | This is an amalgamation of: * Cory Hinshaw: Initial implementation !5552 * Rémy Coutable: Updates !9350 * Nick Thomas: Resolve conflicts and add ED25519 support !13712 | ||||
* | fix #35133 strip new lines from ssh keys | haseeb | 2017-08-03 | 1 | -2/+1 |
| | |||||
* | Don’t schedule workers from inside transactions | Douwe Maan | 2017-06-02 | 1 | -5/+4 |
| | |||||
* | Enable the Style/TrailingCommaInArguments cop | Rémy Coutable | 2017-05-10 | 1 | -1/+1 |
| | | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | Record used SSH keys only once per dayrecord-used-ssh-keys-once-per-day | Adam Niedzielski | 2017-01-20 | 1 | -1/+6 |
| | | | | | Use Gitlab::ExclusiveLease to make sure that we enqueue Sidekiq job at most once per day for given key. | ||||
* | Record and show last used date of SSH Keys | Vincent Wong | 2017-01-09 | 1 | -0/+4 |
| | | | | | | | | Addresses: Issue #13810 1. Adds a last_used_at attribute to the Key table/model 2. Update a key's last_used_at whenever it gets used 3. Display how long ago an ssh key was last used | ||||
* | Merge CSS | Filipa Lacerda | 2016-12-12 | 1 | -4/+12 |
|\ | |||||
| * | Use :maximum instead of :within for length validators with a 0..N range25209-improve-length-validators | Rémy Coutable | 2016-12-06 | 1 | -4/+12 |
| | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me> | ||||
* | | Don't notify user for deploy keys, feedback: | Lin Jen-Shin | 2016-11-18 | 1 | -4/+4 |
|/ | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7383#note_18517263 | ||||
* | Use setter for key instead AR callback | Semyon Pupkov | 2016-11-16 | 1 | -3/+4 |
| | | | | ref: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6763 | ||||
* | Add simple identifier to public SSH keys | Keith Pope | 2016-08-02 | 1 | -2/+3 |
| | |||||
* | Remove Duplicated keys add UNIQUE index to fingerprint18697-uniqueness-key-validation | Paco Guzman | 2016-06-20 | 1 | -1/+1 |
| | |||||
* | Add leading comment space copissue_15557 | Felipe Artur | 2016-05-31 | 1 | -1/+1 |
| | |||||
* | Remove the annotate gem and delete old annotations | Jeroen van Baarsen | 2016-05-09 | 1 | -15/+0 |
| | | | | | | | | | In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382 | ||||
* | Annotate the models | Zeger-Jan van de Weg | 2016-05-06 | 1 | -3/+3 |
| | |||||
* | Ensure "new SSH key" email do not ends up as dead Sidekiq jobsfix/ensure-no-new_ssh_key_email-dead-jobs | Rémy Coutable | 2016-03-15 | 1 | -1/+2 |
| | | | | | | | | Related to #2235. This is done by: 1. Delaying the notification sending after the SSH key is commited in DB 2. Gracefully exit the mailer method if the record cannot be found | ||||
* | Only publish ssh key-type and key | Zeger-Jan van de Weg | 2015-08-04 | 1 | -0/+5 |
| | |||||
* | Add error message for SSH key linebreaks | Nikita Verkhovin | 2015-07-12 | 1 | -0/+1 |
| | |||||
* | Re-annotate models | Stan Hu | 2015-05-03 | 1 | -0/+1 |
| | |||||
* | Refactor key fingerprint generation. | Douwe Maan | 2015-04-14 | 1 | -40/+4 |
| | |||||
* | The new fingerprint format wis incompatible with the previous regex. | Sašo Stanovnik | 2015-03-24 | 1 | -4/+11 |
| | |||||
* | Use 2 spaces for indentation, not 4. | Sašo Stanovnik | 2015-03-24 | 1 | -1/+1 |
| | |||||
* | Fixed generating SSH key fingerprints in OpenSSH 6.8. | Sašo Stanovnik | 2015-03-24 | 1 | -1/+18 |
| | |||||
* | Explicitly define ordering in models using default_scope | Dmitriy Zaporozhets | 2015-02-05 | 1 | -0/+1 |
| | |||||
* | Fix various typos | Steven Burgart | 2015-01-18 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | signe-in -> signed-in go_to_gihub_for_permissions -> go_to_github_for_permissions descendand -> descendant behavour -> behaviour recepient_email -> recipient_email generate_fingerpint -> generate_fingerprint dependes -> depends Cant't -> Can't wisit -> visit notifcation -> notification sufficent_scope -> sufficient_scope? levet -> level | ||||
* | Simplify SSH fingerprint regexp extraction | Ciro Santilli | 2014-12-28 | 1 | -1/+1 |
| | | | | [\d\h] is the same as \h | ||||
* | Add system hook for ssh key changes | Lukas Erlacher | 2014-09-03 | 1 | -0/+10 |
| | | | | | | Add system hook for ssh key create and destroy Update and fix documentation Update tests | ||||
* | Key strong params | Dmitriy Zaporozhets | 2014-06-26 | 1 | -2/+0 |
| | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | ||||
* | Re-annotate models | Dmitriy Zaporozhets | 2014-04-09 | 1 | -2/+2 |
| | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | ||||
* | Remove KeysObserver | Dmitriy Zaporozhets | 2014-04-02 | 1 | -0/+24 |
| | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | ||||
* | Adapt use of Gitlab::Popen to new style | Jacob Vosmaer | 2014-02-25 | 1 | -1/+1 |
| | |||||
* | Reannotate | Dmitriy Zaporozhets | 2013-08-21 | 1 | -8/+8 |
| | |||||
* | Validate fingerprint uniqueness | Jacob Vosmaer | 2013-07-17 | 1 | -14/+5 |
| | |||||
* | Use Tempfile.open for automatic cleanup | Jacob Vosmaer | 2013-07-17 | 1 | -6/+1 |
| | |||||
* | Merge branch 'master' into 6-0-dev | Dmitriy Zaporozhets | 2013-07-12 | 1 | -1/+1 |
|\ | |||||
| * | Allow ecdsa SSH keys | Akiva Levy | 2013-07-10 | 1 | -1/+1 |
| | | | | | | Update app/models/key.rb to permit SSH keys of type ecdsa rather than forcing dsa and rsa algorithms. | ||||
* | | store and display public key fingerprint | Dmitriy Zaporozhets | 2013-06-24 | 1 | -9/+31 |
| | | |||||
* | | Annotated | Dmitriy Zaporozhets | 2013-06-19 | 1 | -3/+3 |
|/ | |||||
* | More strict validation for SSH Key content | Dmitriy Zaporozhets | 2013-05-13 | 1 | -1/+1 |
| | |||||
* | Feature: Deploy keys between projects | Dmitriy Zaporozhets | 2013-05-06 | 1 | -4/+0 |
| | |||||
* | Create DeployKey & DeployKeysProject models. Bulding many to many relation ↵ | Dmitriy Zaporozhets | 2013-05-06 | 1 | -8/+3 |
| | | | | between deploy keys and projects | ||||
* | Update model methods | Andrey Kumanyaev | 2013-04-03 | 1 | -2/+2 |
| | |||||
* | remove unused code related to gitolite | Dmitriy Zaporozhets | 2013-02-26 | 1 | -9/+0 |
| |