gitlab-org--gitlab-foss/config/initializers
Nick Thomas 6ddefe7cad
Correctly handle data-loss scenarios when encrypting columns
If the EncryptColumns background migration runs in a sidekiq with a
stale view of the database schema, or when the purported destination
columns don't actually exist, data loss can result. Attempt to work
around these issues by reloading schema information before running
the migration, and raising errors if the model reports that any of its
source or destination columns are missing.
2018-11-27 18:24:18 +00:00
..
0_acts_as_taggable.rb Enable Layout/TrailingWhitespace cop and auto-correct offenses 2017-08-15 13:44:37 -04:00
0_as_concern.rb Properly implement prepending for Concern 2018-09-11 18:45:49 +08:00
0_inflections.rb Incorporate review 2017-09-04 15:44:46 +02:00
0_post_deployment_migrations.rb Ensure the schema is loaded with post_migrations included 2018-09-11 18:41:14 -07:00
01_secret_token.rb Upgrade to Ruby 2.4.4 2018-05-29 15:19:33 -07:00
1_settings.rb Make GitLab pages support access control 2018-10-05 13:41:11 +00:00
2_gitlab.rb Eliminate constants warnings by: 2018-06-01 13:46:46 +08:00
5_backend.rb Reinstall shell on the test env if it's outdated 2017-06-19 17:06:17 -04:00
6_validations.rb Migrate storage nesting check to Gitaly 2018-06-27 16:20:03 +00:00
7_prometheus_metrics.rb Add experimental support for Puma 2018-10-25 17:50:15 +01:00
7_redis.rb Support multiple Redis instances based on queue type 2017-07-11 03:35:47 +00:00
8_gitaly.rb Remove option to disable Gitaly completely 2017-07-07 12:48:34 +02:00
8_metrics.rb Merge branch 'sh-fix-generators-not-always-working' into 'master' 2018-11-01 22:51:31 +00:00
9_fast_gettext.rb Define custom base controller for Doorkeeper 2018-04-30 11:40:51 +02:00
action_mailer_hooks.rb Implement action mailer delivery metrics observer 2018-07-16 13:40:55 +02:00
active_record_array_type_casting.rb [Rails5] Update `type_cast_*_database` methods 2018-04-06 10:57:19 +00:00
active_record_avoid_type_casting_in_uniqueness_validator.rb Fix rails 5 deprecation warnings 2018-09-11 18:14:37 +02:00
active_record_data_types.rb Mysql fixes for Rails 5 2018-06-21 22:06:50 +02:00
active_record_lifecycle.rb Add experimental support for Puma 2018-10-25 17:50:15 +01:00
active_record_locking.rb Updates from `rubocop -a` 2018-07-09 21:13:08 +08:00
active_record_migration.rb Use data_source_exists? instead of table_exists? 2018-06-14 08:39:43 +02:00
active_record_mysql_timestamp.rb Make sure MySQL would not use CURRENT_TIMESTAMP 2017-08-15 19:07:28 +08:00
active_record_preloader.rb Do not try to preload Commits when using Note.includes(:noteable) 2017-05-31 11:12:26 -05:00
active_record_schema_ignore_tables.rb Ignore temporary table in schema 2017-12-11 12:38:22 -08:00
active_record_table_definition.rb Rails5 MySQL fix rename_column as part of cleanup_concurrent_column_type_change 2018-07-09 23:27:06 +02:00
active_record_verbose_query_logs.rb Rails5: Enable verbose query logs 2018-08-16 08:25:06 +02:00
application_controller_renderer.rb [Rails5] Update files by `rails app:update` 2018-03-22 09:37:57 +11:00
ar5_batching.rb [Rails5] Update ar5_batching initializer 2018-03-21 09:15:42 +11:00
ar5_pg_10_support.rb [Rails5] Update ar5_pg_10_support initializer 2018-03-21 09:21:33 +11:00
ar_native_database_types.rb Address review comments. 2018-03-16 13:35:27 +01:00
ar_speed_up_migration_checking.rb Make `ActiveRecord::Migrator` idempotent again in test env 2017-05-29 14:09:24 +02:00
attr_encrypted_no_db_connection.rb Correctly handle data-loss scenarios when encrypting columns 2018-11-27 18:24:18 +00:00
backtrace_silencers.rb Include the ee/ directory in backtraces 2018-03-12 10:14:52 +00:00
batch_loader.rb Batchload blobs for diff generation 2017-11-21 13:53:26 +01:00
bootstrap_form.rb Replace label-light with label-bold. Because it's bold, not light 2018-07-19 17:11:31 -05:00
bullet.rb Enable the `bullet_logger` setting; enable `raise` in test environment 2017-04-03 17:15:09 -04:00
carrierwave_patch.rb Fix attachments not displaying inline with Google Cloud Storage 2018-09-05 17:01:54 -07:00
chronic_duration.rb
connection_fix.rb
console_message.rb better handle a missing gitlab-shell version 2018-05-30 11:52:36 -05:00
cookies_serializer.rb
date_time_formats.rb Port some non-EE-specific config/ changes to CE 2018-01-25 14:14:53 +01:00
default_url_options.rb
deprecations.rb Conditionally add Gitaly deprecation warnings based on ENV variable 2018-05-17 10:35:34 -07:00
devise.rb Fix grammar (setup to set-up) in code comments, spec, views, etc. 2018-09-17 09:17:33 +00:00
devise_password_length.rb.example
direct_upload_support.rb Update validator 2018-06-04 22:31:01 +02:00
doorkeeper.rb Enabling Doorkeeper reuse_access_token option 2018-06-29 09:40:41 +00:00
doorkeeper_openid_connect.rb Don't hash user ID in OIDC subject claim 2018-06-28 15:31:47 +02:00
etag_caching.rb
fill_shards.rb Fix syntax error in initializers/fill_shards 2018-11-07 17:25:29 +00:00
fix_local_cache_middleware.rb Move ModuleWithInstanceVariables to Gitlab namespace 2017-11-22 17:06:57 +08:00
flipper.rb Ensure Flipper memoizer is used in Sidekiq's context 2018-05-18 12:25:54 +02:00
fog_google_https_private_urls.rb Fix attachments not displaying inline with Google Cloud Storage 2018-09-05 17:01:54 -07:00
forbid_sidekiq_in_transactions.rb Ensure we're using Rails, not Sidekiq::Rails 2018-05-04 15:58:18 +10:00
gettext_rails_i18n_patch.rb Frontend: Proper gettext extraction with gettext-extractor 2018-08-16 19:03:57 +00:00
gitlab_shell_secret_token.rb
gitlab_workhorse_secret.rb
go_get.rb
grpc.rb Add grpc.log for Gitaly 2017-10-03 11:28:40 +00:00
hamlit.rb Enable the Style/TrailingCommaInArguments cop 2017-05-10 18:25:45 +02:00
health_check.rb
hipchat_client_patch.rb Prevent SSRF attacks in HipChat integration 2018-10-02 23:04:37 -04:00
kaminari_config.rb
kubeclient.rb Remove monkeypatch as now present in upstream 2018-11-27 21:05:34 +13:00
lograge.rb Add User-Agent to production_json.log 2018-09-05 14:43:09 -07:00
macos.rb Add experimental support for Puma 2018-10-25 17:50:15 +01:00
mime_types.rb register ico mime type 2018-06-05 16:20:20 +02:00
mini_magick.rb force minimagick to use graphicsmagick 2018-06-05 16:20:22 +02:00
mysql_ignore_postgresql_options.rb
mysql_set_length_for_binary_indexes.rb Fix index for mysql adapter 2018-11-14 12:38:30 +01:00
new_framework_defaults.rb [Rails5] Update files by `rails app:update` 2018-03-22 09:37:57 +11:00
omniauth.rb Disable SAML if OmniAuth is disabled 2018-07-20 18:54:46 +08:00
pages.rb Add gitlab-pages admin ping rake task 2018-04-27 11:01:54 +00:00
peek.rb Remove peek-sidekiq 2018-09-12 10:13:19 +02:00
postgresql_cte.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
postgresql_limit_fix.rb
postgresql_opclasses_support.rb Fix undefined format_options method in SchemaDumper for MySQL db 2018-09-26 12:03:42 +03:00
premailer.rb
query_limiting.rb Track and act upon the number of executed queries 2018-02-01 17:00:46 +01:00
rack_attack.rb.example
rack_attack_git_basic_auth.rb
rack_attack_global.rb Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5876 2018-05-29 15:25:43 +03:00
rack_attack_logging.rb
rack_lineprof.rb
rbtrace.rb Add experimental support for Puma 2018-10-25 17:50:15 +01:00
relative_naming_ci_namespace.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
relative_url.rb.sample
request_context.rb
request_profiler.rb
routing_draw.rb Put EE routes in EE files under EE directories 2018-10-26 14:27:05 +08:00
rspec_profiling.rb Move ModuleWithInstanceVariables to Gitlab namespace 2017-11-22 17:06:57 +08:00
sentry.rb Replace Gitlab::REVISION with Gitlab.revision and handle installations without a .git directory 2018-05-24 10:14:01 +02:00
server_uptime.rb 31616-add-uptime-of-gitlab-instance-in-admin-area 2017-05-29 15:46:25 -05:00
session_store.rb Display and revoke active sessions 2018-05-02 08:08:16 +00:00
sherlock.rb
sidekiq.rb Clear BatchLoader context between Sidekiq jobs 2018-11-22 09:22:12 -08:00
smtp_settings.rb.sample
static_files.rb Fix rails 5 deprecation warnings 2018-09-11 18:14:37 +02:00
time_zone.rb
trusted_proxies.rb [Rails5] Fix trusted proxies 2018-05-03 20:14:20 +11:00
warden.rb Guard against a login attempt with invalid CSRF token 2018-09-26 12:20:43 -07:00
workhorse_multipart.rb Update form to properly set the path 2017-08-22 11:33:18 +02:00
wrap_parameters.rb