gitlab-org--gitlab-foss/spec/lib/gitlab
Mayra Cabrera 3cefc5d7df Add RateLimiter to RawController
* Limits raw requests to 300 per minute and per raw path.
* Add a new attribute to ApplicationSettings so user can change this
value on their instance.
* Uses Gitlab::ActionRateLimiter to limit the raw requests.
* Add a new method into ActionRateLimiter to log the event into auth.log

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/48717
2019-07-24 19:49:31 +00:00
..
access Refactor code for protecting default branches 2019-01-16 14:25:14 +01:00
auth OAuth2 support for GitLab personal access tokens 2019-07-22 08:50:25 +00:00
background_migration Migrate null values for users.private_profile 2019-07-15 21:07:54 +00:00
badge Add :preparing status to HasStatus 2019-03-20 11:48:31 +11:00
bare_repository_import Send project name with Gitaly repository requests 2019-02-05 21:33:09 -08:00
bitbucket_import Avoid storing backtraces from Bitbucket Cloud imports in the database 2019-06-19 12:04:24 -07:00
bitbucket_server_import Fix issuables state_id nil when importing projects from GitHub 2019-05-06 19:45:17 +00:00
cache Wrap rugged calls with access disk block 2019-07-16 13:54:01 -07:00
chat Move ChatOps to Core 2019-02-20 21:29:48 +00:00
checks Add documentation and tests 2019-06-19 07:08:56 +00:00
ci Validate the existence of archived traces before removing live trace 2019-07-23 17:26:08 +07:00
cleanup Add rake task to clean orphan artifact files 2019-06-28 10:02:18 +02:00
cluster Monitor only final states 2019-06-12 12:33:34 +02:00
config Prevent Billion Laughs attack 2019-07-02 06:23:06 +00:00
conflict Remove dependencies on Linguist 2018-10-12 17:17:30 -07:00
cross_project_access Eliminate duplicated words 2018-11-22 01:01:23 +09:00
cycle_analytics Merge branch '52442-initial-mysql-support-removal' into 'master' 2019-07-23 21:44:53 +00:00
danger Document database review process 2019-07-19 17:33:48 +00:00
data_builder Fix label serialisation in issue and note hooks 2019-06-20 13:50:28 +01:00
database Enable tablesample count strategy by default 2019-07-24 17:00:34 +00:00
database_importers/common_metrics Prefer flat_map over map + flatten in specs 2019-07-24 08:19:15 +00:00
dependency_linker Add frozen_string_literal to new files 2019-03-04 23:19:19 -08:00
diff Refactor PositionTracer to support different types 2019-07-05 11:03:47 +00:00
discussions_diff Remove cleaned up OIDs from database and cache 2019-05-06 11:35:03 +01:00
downtime_check
email Upgrade to Rails 5.2 2019-07-12 10:15:31 +08:00
etag_caching Fix real-time updates for projects that contain a reserved word 2019-04-05 11:59:20 -07:00
external_authorization Adds identity information while making external authorization requests 2019-06-19 06:04:33 +00:00
fogbugz_import
gfm
git Add Rugged calls to performance bar 2019-07-23 21:38:05 -07:00
gitaly_client Extend MergeToRefService for creating merge ref from the other ref 2019-07-05 17:15:10 +07:00
github_import Setup Phabricator import 2019-05-31 09:40:54 +02:00
gitlab_import
gl_repository Allow multiple repositories per project 2019-03-26 13:21:03 +01:00
google_code_import
gpg Fix GPG signature verification with recent versions of GnuPG 2019-06-17 13:33:39 +00:00
grape_logging/loggers
graphql Added submodule links to Submodule type in GraphQL API 2019-07-17 13:06:19 +00:00
graphs
hashed_storage Fix storage migration check for non-empty queues 2019-03-17 00:27:38 +01:00
health_checks
hook_data Fix label serialisation in issue and note hooks 2019-06-20 13:50:28 +01:00
i18n
import Remove dead MySQL code 2019-07-23 16:53:03 +01:00
import_export Merge branch 'optimise-import-performance' into 'master' 2019-07-24 18:01:44 +00:00
kubernetes GitLab Managed App ensure helm version uses tls opts 2019-07-15 11:38:40 +10:00
legacy_github_import Show upcoming status for releases 2019-07-03 09:12:15 +00:00
lets_encrypt Use project depended feature flag for pages ssl 2019-06-25 10:30:12 +02:00
manifest_import
markdown_cache Banzai - avoid redis if attr is in DB cache 2019-07-10 21:35:43 -06:00
metrics Prefer flat_map over map + flatten in specs 2019-07-24 08:19:15 +00:00
middleware Fix health checks not working behind load balancers 2019-03-12 12:46:40 -07:00
patch Extract EE only oauth routes and add tests 2018-10-26 14:27:05 +08:00
phabricator_import Fetch users from Phabricator to link to issues 2019-07-10 17:15:43 +02:00
popen
prometheus Prefer flat_map over map + flatten in specs 2019-07-24 08:19:15 +00:00
query_limiting
quick_actions Extend quick actions dsl 2019-03-29 12:53:28 +02:00
redis
request_profiler Bring backward compatibility for request profiles 2019-07-23 09:30:00 +00:00
sanitizers Rake task for removing exif from uploads 2019-04-02 07:48:35 +00:00
search Build correct basenames for title search results 2019-06-20 18:05:12 +02:00
serializer Properly implement API pagination headers and add specs 2019-02-21 18:29:00 +01:00
sherlock
sidekiq_logging Re-enable MethodCallWithoutArgsParentheses Cop 2019-01-29 21:05:30 +02:00
sidekiq_middleware Migrate correlation and tracing code to LabKit 2019-04-18 09:57:16 +02:00
sidekiq_status
sidekiq_versioning
slash_commands Move ChatOps to Core 2019-02-20 21:29:48 +00:00
slug Introduce predictable environment slugs 2019-07-19 11:33:07 +10:00
sql Ignore min_chars_for_partial_matching unles trigrm 2019-07-04 10:56:13 -06:00
template Ensure that template is used once 2019-06-06 12:18:50 +02:00
untrusted_regexp Allow to use untrusted Regexp via feature flag 2019-04-04 15:00:56 +00:00
usage_data_counters Count wiki page creation 2019-07-21 01:26:19 +00:00
utils Prevent Billion Laughs attack 2019-07-02 06:23:06 +00:00
verify
view/presenter Fix typos in comments and specs 2018-11-01 08:59:20 +02:00
action_rate_limiter_spec.rb Add RateLimiter to RawController 2019-07-24 19:49:31 +00:00
allowable_spec.rb
app_logger_spec.rb
asciidoc_spec.rb Preserve footnote link ids 2019-07-17 08:40:50 +02:00
auth_spec.rb Add tests for when deploy token usernames are not unique 2019-07-17 20:08:58 +00:00
authorized_keys_spec.rb Update Gitlab::AuthorizedKeys specs to be clearer 2019-03-21 12:42:31 +08:00
background_migration_spec.rb Add methods to check dead and retrying jobs 2019-04-08 19:47:36 -03:00
batch_pop_queueing_spec.rb Efficient merge train locks 2019-07-11 13:44:12 +07:00
blame_spec.rb
blob_helper_spec.rb Fixing image lfs bug and also displaying text lfs 2018-12-27 16:51:07 +01:00
branch_push_merge_commit_analyzer_spec.rb Fix commit with two parents is set with wrong direct_ancestor 2018-12-07 21:00:47 +08:00
build_access_spec.rb
changes_list_spec.rb
chat_name_token_spec.rb
chat_spec.rb Move ChatOps to Core 2019-02-20 21:29:48 +00:00
ci_access_spec.rb
closing_issue_extractor_spec.rb Fix closing issue default pattern 2018-09-06 16:00:12 +02:00
color_schemes_spec.rb
contributions_calendar_spec.rb Autocorrect with RSpec/ExampleWording cop 2019-04-05 08:43:27 +00:00
cross_project_access_spec.rb
crypto_helper_spec.rb Improve token authenticable tests and exceptions 2018-11-27 14:34:05 +01:00
current_settings_spec.rb Upgrade to Rails 5.2 2019-07-12 10:15:31 +08:00
daemon_spec.rb
database_spec.rb Remove dead MySQL code 2019-07-23 16:53:03 +01:00
dependency_linker_spec.rb
downtime_check_spec.rb
encoding_helper_spec.rb Allow streaming io objects into Gitaly 2019-04-01 20:17:40 +02:00
exclusive_lease_helpers_spec.rb Lock writes to trace stream 2018-11-27 17:55:20 +01:00
exclusive_lease_spec.rb
external_authorization_spec.rb Move Contribution Analytics related spec in spec/features/groups/group_page_with_external_authorization_service_spec to EE 2019-04-09 15:38:58 +00:00
fake_application_settings_spec.rb Move some application setting examples to be shared 2019-03-19 13:01:37 +08:00
favicon_spec.rb EE backport to CE of favicon_spec.rb 2019-05-13 13:23:04 +01:00
file_detector_spec.rb Revert "Merge branch..." 2019-03-19 09:36:05 +00:00
file_finder_spec.rb
file_markdown_link_builder_spec.rb Uploads to wiki stored inside the wiki git repository 2018-09-04 10:39:08 +00:00
file_type_detection_spec.rb Uploads to wiki stored inside the wiki git repository 2018-09-04 10:39:08 +00:00
git_access_spec.rb Add documentation and tests 2019-06-19 07:08:56 +00:00
git_access_wiki_spec.rb Move magic '_any' string to constant 2019-01-02 15:31:31 +01:00
git_ref_validator_spec.rb Refactor spec to not use truthy or falsey 2019-05-03 03:02:59 +08:00
git_spec.rb Add start_sha to commits API 2019-07-18 09:19:18 +02:00
gitaly_client_spec.rb Fix Gitaly auto-detection caching 2019-07-19 10:03:41 -07:00
github_import_spec.rb Refactor GitHub Importer database helpers into helper methods 2018-08-24 05:34:38 -07:00
gl_repository_spec.rb Allow multiple repositories per project 2019-03-26 13:21:03 +01:00
global_id_spec.rb GraphQL support for Notes created in discussions 2019-07-10 12:13:48 +12:00
gon_helper_spec.rb Fix no avatar not showing in user selection box 2019-01-13 08:02:02 -08:00
gpg_spec.rb Update specs to exclude possible false positive pass 2018-12-18 10:21:30 +11:00
graphql_logger_spec.rb Apply reviewer feedback 2019-05-31 19:57:02 +12:00
group_search_results_spec.rb restrict user result set by the scoped group 2019-03-14 18:21:02 +01:00
highlight_spec.rb Bump rouge to 3.4.1 2019-06-21 13:20:41 +00:00
http_connection_adapter_spec.rb Add DNS rebinding protection settings 2019-05-30 10:47:57 -03:00
http_io_spec.rb
http_spec.rb Protect Gitlab::HTTP against DNS rebinding attack 2019-05-30 10:47:31 -03:00
i18n_spec.rb
identifier_spec.rb Removes idenfitication by commit from Gitlab::Identifier 2018-10-25 11:36:26 +01:00
import_sources_spec.rb Setup Phabricator import 2019-05-31 09:40:54 +02:00
incoming_email_spec.rb Use new unsubscribe link 2019-01-03 14:37:35 -06:00
insecure_key_fingerprint_spec.rb
issuable_metadata_spec.rb Expose merge requests count based on user access 2019-06-18 12:46:46 +03:00
issuable_sorter_spec.rb Replace 'JIRA' with 'Jira' 2019-06-28 13:25:56 +00:00
issuables_count_for_state_spec.rb
job_waiter_spec.rb
json_cache_spec.rb Parse the cached value when the it is false 2019-06-25 19:30:05 -03:00
json_logger_spec.rb Migrate correlation and tracing code to LabKit 2019-04-18 09:57:16 +02:00
kubernetes_spec.rb Select deployments that only has the app label 2019-06-21 20:45:06 +00:00
language_data_spec.rb Remove dependencies on Linguist 2018-10-12 17:17:30 -07:00
language_detection_spec.rb
lazy_spec.rb
lets_encrypt_spec.rb Remove auto ssl feature flags 2019-07-12 16:53:44 +00:00
lfs_token_spec.rb Geo: Remove Gitlab::LfsToken::LegacyRedisDeviseToken implementation 2019-05-22 16:11:08 +10:00
loop_helpers_spec.rb Remove expired artifacts periodically 2019-01-24 20:50:42 +09:00
markup_helper_spec.rb
metrics_spec.rb
multi_collection_paginator_spec.rb Eliminate duplicated words 2018-11-22 01:01:23 +09:00
namespaced_session_store_spec.rb CE port of "Require session with smartcard login for Git access" 2019-07-05 08:12:29 +02:00
null_request_store_spec.rb Use a null object with RequestStore 2018-09-24 12:11:26 -07:00
object_hierarchy_spec.rb Adds max_descendants_depth to ObjectHierarchy 2019-04-05 07:56:21 +08:00
omniauth_initializer_spec.rb Add client_auth_method test cases for OIDC 2019-07-15 14:56:24 -05:00
optimistic_locking_spec.rb Forbid the use of #reload and prefer #reset 2019-04-15 13:05:14 +02:00
other_markup_spec.rb
otp_key_rotator_spec.rb
pages_client_spec.rb
path_regex_spec.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
performance_bar_spec.rb Cache PerformanceBar.allowed_user_ids list locally and in Redis 2019-07-03 18:47:30 +02:00
plugin_spec.rb
polling_interval_spec.rb
popen_spec.rb
private_commit_email_spec.rb Match users better by their private commit email 2018-11-19 12:45:07 +00:00
profiler_spec.rb Fix Profiler to work with Ruby 5.1 2019-04-26 21:22:23 -07:00
project_authorizations_spec.rb Rename GroupHierarchy into ObjectHierarchy 2018-12-19 15:24:29 +01:00
project_search_results_spec.rb project's user search includes group members too 2019-03-14 18:21:02 +01:00
project_template_spec.rb Add Android template 2019-03-07 20:02:40 +01:00
project_transfer_spec.rb
prometheus_client_spec.rb Add a proxy method to PrometheusClient 2019-04-05 08:05:54 +00:00
push_options_spec.rb Use Gitlab::PushOptions for ci.skip push option 2019-04-09 10:03:26 +12:00
query_limiting_spec.rb
reference_counter_spec.rb
reference_extractor_spec.rb Replace 'JIRA' with 'Jira' 2019-06-28 13:25:56 +00:00
regex_spec.rb
repo_path_spec.rb Fall back to project repository type by default 2019-04-05 10:51:42 +00:00
repository_cache_adapter_spec.rb Cache Repository#exists? false in RequestStore 2018-09-27 18:22:37 -07:00
repository_cache_spec.rb Revert "Merge branch '3062-improve-project-cache' into 'master'" 2019-01-08 13:14:06 -08:00
request_context_spec.rb Fix test environment pollution in spec/lib/gitlab/request_context_spec.rb 2019-03-14 11:51:09 +00:00
request_forgery_protection_spec.rb
request_profiler_spec.rb Bring backward compatibility for request profiles 2019-07-23 09:30:00 +00:00
route_map_spec.rb Make CI refs matching to to use UntrustedRegexp 2019-03-15 14:38:28 +01:00
routing_spec.rb
rugged_instrumentation_spec.rb Add Rugged calls and duration to API and Rails logs 2019-07-18 06:53:39 -07:00
safe_request_store_spec.rb Change SafeRequestStore#write to accept an options hash 2018-12-17 19:57:03 -02:00
search_results_spec.rb Resolve: Milestones leaked via search API 2019-05-20 11:08:34 -03:00
sentry_spec.rb Add correlation id to all sentry errors 2019-05-13 13:27:41 -05:00
session_spec.rb Session stored globally per request 2019-05-02 12:28:26 +07:00
shard_health_cache_spec.rb
shell_spec.rb Remove hook directory requirement from Shell 2019-05-30 20:04:08 +02:00
sidekiq_config_spec.rb
sidekiq_signals_spec.rb Fix Sidekiq process group killing 2019-03-07 12:37:59 +00:00
sidekiq_status_spec.rb
sidekiq_versioning_spec.rb
snippet_search_results_spec.rb
ssh_public_key_spec.rb
string_placeholder_replacer_spec.rb
string_range_marker_spec.rb
string_regex_marker_spec.rb
tcp_checker_spec.rb
themes_spec.rb
time_tracking_formatter_spec.rb Rename to time_tracking_limit_to_hours 2019-06-25 09:31:23 +08:00
tracing_spec.rb Autocorrect with RSpec/ExampleWording cop 2019-04-05 08:43:27 +00:00
tree_summary_spec.rb Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
untrusted_regexp_spec.rb Make CI refs matching to to use UntrustedRegexp 2019-03-15 14:38:28 +01:00
uploads_transfer_spec.rb
url_blocker_spec.rb [ADD] outbound requests whitelist 2019-07-24 17:59:38 +00:00
url_builder_spec.rb Fix specs after routing change 2019-05-29 16:31:04 +03:00
url_sanitizer_spec.rb Hide password on import by url form 2019-05-29 14:03:50 +03:00
usage_data_spec.rb Count wiki page creation 2019-07-21 01:26:19 +00:00
user_access_spec.rb
utils_spec.rb [ADD] outbound requests whitelist 2019-07-24 17:59:38 +00:00
version_info_spec.rb Add variables to CI jobs for GitLab version components 2018-10-05 14:40:46 +02:00
visibility_level_spec.rb Squashed commits and modified visibility level output 2019-04-12 05:00:50 +00:00
wiki_file_finder_spec.rb
workhorse_spec.rb Use persistent Redis cluster for Workhorse pub/sub notifications 2019-07-22 10:23:07 -07:00
zoom_link_extractor_spec.rb Fetch latest link in the description for zoom link, add more tests and remove frontend spec unnecessary tests 2019-07-17 06:41:26 +00:00