Commit 2b556843 authored by Adam Hegyi's avatar Adam Hegyi

Merge branch '199716_extend_database_with_static_objects_external_storage_auth_token' into 'master'

Extend database with encrypted field for static objects tokens

See merge request gitlab-org/gitlab!75334
parents 49ec5517 0eed6096
# frozen_string_literal: true
class AddEncryptedStaticObjectsExternalStorageAuthToken < Gitlab::Database::Migration[1.0]
def up
# rubocop:disable Migration/AddLimitToTextColumns
# limit is added in 20211126113029_add_text_limit_for_static_objects_external_storage_auth_token
add_column :application_settings, :static_objects_external_storage_auth_token_encrypted, :text
# rubocop:enable Migration/AddLimitToTextColumns
end
def down
remove_column :application_settings, :static_objects_external_storage_auth_token_encrypted
end
end
# frozen_string_literal: true
class AddTextLimitForStaticObjectsExternalStorageAuthToken < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
def up
add_text_limit :application_settings, :static_objects_external_storage_auth_token_encrypted, 255
end
def down
remove_text_limit :application_settings, :static_objects_external_storage_auth_token_encrypted
end
end
cdb85c8633687338a11ebce0603f82f5cab00e7c58f923d30b68a877b94e2db2
\ No newline at end of file
96abde258e6527a2b09bb60e1cc0cb90802c8a7e43a2132e9956536390a8aab8
\ No newline at end of file
......@@ -10477,6 +10477,7 @@ CREATE TABLE application_settings (
sentry_dsn text,
sentry_clientside_dsn text,
sentry_environment text,
static_objects_external_storage_auth_token_encrypted text,
CONSTRAINT app_settings_container_reg_cleanup_tags_max_list_size_positive CHECK ((container_registry_cleanup_tags_service_max_list_size >= 0)),
CONSTRAINT app_settings_dep_proxy_ttl_policies_worker_capacity_positive CHECK ((dependency_proxy_ttl_group_policy_worker_capacity >= 0)),
CONSTRAINT app_settings_ext_pipeline_validation_service_url_text_limit CHECK ((char_length(external_pipeline_validation_service_url) <= 255)),
......@@ -10485,6 +10486,7 @@ CREATE TABLE application_settings (
CONSTRAINT app_settings_yaml_max_size_positive CHECK ((max_yaml_size_bytes > 0)),
CONSTRAINT check_17d9558205 CHECK ((char_length((kroki_url)::text) <= 1024)),
CONSTRAINT check_2dba05b802 CHECK ((char_length(gitpod_url) <= 255)),
CONSTRAINT check_32710817e9 CHECK ((char_length(static_objects_external_storage_auth_token_encrypted) <= 255)),
CONSTRAINT check_3def0f1829 CHECK ((char_length(sentry_clientside_dsn) <= 255)),
CONSTRAINT check_4f8b811780 CHECK ((char_length(sentry_dsn) <= 255)),
CONSTRAINT check_51700b31b5 CHECK ((char_length(default_branch_name) <= 255)),
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment