Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-11-19Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42GitLab Bot
2020-07-20Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot
2020-03-12Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2020-01-27Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-19Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-17Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-11Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-04-01Add # frozen_string_literal to spec/modelsThong Kuah
Adds `# frozen_string_literal: true` to spec/models ruby files
2018-02-16Validate SSH keys through the sshkey gemRubén Dávila
2018-02-15Revert "Merge branch ↵Rubén Dávila
'rd-43185-revert-sanitize-extra-blank-spaces-used-when-uploading-a-ssh-key' into 'master'" This reverts commit e607fd796657afd214b8f25201919d3e33b3f35f.
2018-02-12Revert "Merge branch ↵Rubén Dávila
'rd-40552-gitlab-should-check-if-keys-are-valid-before-saving' into 'master'" This reverts commit a58f8c32c62bcf5824d1fe1d0de53e9bda974d65, reversing changes made to cd5d75c362cdf06efb8174eddfbd0f4b65687dec.
2018-02-02Merge branch 'rd-40552-gitlab-should-check-if-keys-are-valid-before-saving' ↵Douwe Maan
into 'master' Sanitize extra blank spaces used when uploading a SSH key Closes #40552 See merge request gitlab-org/gitlab-ce!16821
2018-02-02use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa
including/extending it
2018-02-02Sanitize extra blank spaces used when uploading a SSH keyRubén Dávila
2017-11-16Cache the number of user SSH keysYorick Peterse
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.
2017-10-03Ensure key fingerprints are generated correctly when modifiedNick Thomas
2017-09-20Stop using Sidekiq for updating Key#last_used_atYorick Peterse
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
2017-09-15created services for keyshaseeb
2017-08-30Rework the permissions model for SSH key restrictionsNick Thomas
`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.
2017-08-30Add settings for minimum key strength and allowed key typeNick Thomas
This is an amalgamation of: * Cory Hinshaw: Initial implementation !5552 * Rémy Coutable: Updates !9350 * Nick Thomas: Resolve conflicts and add ED25519 support !13712
2017-08-07Backport changes in ↵Nick Thomas
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2551 to CE
2017-08-03Merge branch 'use-rspec-support-helper' into 'master'Rémy Coutable
Don't include EmailHelpers manually, pick with rspec See merge request !13257
2017-08-03fix #35133 strip new lines from ssh keyshaseeb
2017-08-03Don't include EmailHelpers manually, pick with rspecLin Jen-Shin
`:mailer` is needed to pick it easily, while `type: :mailer` is needed for picking it automatically for tests located in spec/mailers/*_spec.rb It's a bit complicated in spec/services/notification_service_spec.rb but we'll leave it alone for now.
2017-07-27Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable
services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-02Lint our factories creation in addition to their buildRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-20Record used SSH keys only once per dayAdam Niedzielski
Use Gitlab::ExclusiveLease to make sure that we enqueue Sidekiq job at most once per day for given key.
2017-01-08Record and show last used date of SSH KeysVincent Wong
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
2016-12-12Merge CSSFilipa Lacerda
2016-12-06Now we need to include EmailHelpers for each testLin Jen-Shin
2016-12-06Use :maximum instead of :within for length validators with a 0..N rangeRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-22Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin
feature/1376-allow-write-access-deploy-keys * upstream/master: (497 commits) Use single quote for strings Ue svg from SVGs object Dont trigger CI builds [ci skip] Revert "Test only migrations" Add custom copy for each empty stage Fetch only one revision Highlight nav item on hover Test only migrations Fix migration paths tests Scroll CA stage panel on mobile Fix CSS declaration administer to administrator Move SVGs to JS objects for easy reuse Improve deploy command message No enough data to Not enough data Keep the cookie name as before Fix variable usage Evalute time_ago method instead of printing it Removed button styling from restricted visibility levels and added checkboxes with icons Do not show overview message if there’s already CA data ...
2016-11-18Use `Gitlab.config.gitlab.host` over `'localhost'`Lin Jen-Shin
This would fix long standing failures running tests on my development machine, which set `Gitlab.config.gitlab.host` to another host because it's not my local computer. Now I finally cannot withstand it and decided to fix them once and for all.
2016-11-18Add tests for key/deploy key notificationsLin Jen-Shin
2016-11-15Remove instance vars from key model testsSemyon Pupkov
2016-11-15Use setter for key instead AR callbackSemyon Pupkov
ref: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6763
2016-10-11Remove empty describe block on key spec modelSemyon Pupkov
2016-08-09adds second batch of tests changed to active tensetiagonbotelho
2016-08-02Tidy the key spec and fix failing user specKeith Pope
2016-08-02Add simple identifier to public SSH keysKeith Pope
2016-06-20Remove Duplicated keys add UNIQUE index to fingerprintPaco Guzman
2016-05-09Remove the annotate gem and delete old annotationsJeroen van Baarsen
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
2015-12-15Fixed Rubocop offensesGabriel Mazetto
2015-12-09Tag model specsDouwe Maan
2015-08-04Only publish ssh key-type and keyZeger-Jan van de Weg
2015-07-11Add error message for SSH key linebreaksNikita Verkhovin
2015-06-10ensure_length_of -> validate_length_ofRobert Speicher
2015-05-03Re-annotate modelsStan Hu
2015-04-12Remove the invalid key factoriesRobert Speicher
They're only used once each, and they're easy to build in-place.