summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-06 21:12:45 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-06 21:12:45 +0000
commit8ec004d6d8d92f00d0598e94ede4d31ab1e8f18e (patch)
tree525dcb81832e5ad142cc1f2aeff2f38c51f80aa4 /db
parente22c3819ad2321a0cf825877fe3b60e41268c5b3 (diff)
downloadgitlab-ce-8ec004d6d8d92f00d0598e94ede4d31ab1e8f18e.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20230127030015_add_deny_all_outgoing_requests_to_application_settings.rb9
-rw-r--r--db/schema_migrations/202301270300151
-rw-r--r--db/structure.sql1
3 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20230127030015_add_deny_all_outgoing_requests_to_application_settings.rb b/db/migrate/20230127030015_add_deny_all_outgoing_requests_to_application_settings.rb
new file mode 100644
index 00000000000..b12176a5541
--- /dev/null
+++ b/db/migrate/20230127030015_add_deny_all_outgoing_requests_to_application_settings.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddDenyAllOutgoingRequestsToApplicationSettings < Gitlab::Database::Migration[2.1]
+ enable_lock_retries!
+
+ def change
+ add_column :application_settings, :deny_all_requests_except_allowed, :boolean, default: false, null: false
+ end
+end
diff --git a/db/schema_migrations/20230127030015 b/db/schema_migrations/20230127030015
new file mode 100644
index 00000000000..411b65dcf17
--- /dev/null
+++ b/db/schema_migrations/20230127030015
@@ -0,0 +1 @@
+c957902ecdc96e1ae22d514f932c22bc04e07fd3e11dfd1bdbd45b077b6ee017 \ No newline at end of file
diff --git a/db/structure.sql b/db/structure.sql
index 8341c91b5e6..543b59b969e 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -11747,6 +11747,7 @@ CREATE TABLE application_settings (
allow_deploy_tokens_and_keys_with_external_authn boolean DEFAULT false NOT NULL,
security_policy_global_group_approvers_enabled boolean DEFAULT true NOT NULL,
projects_api_rate_limit_unauthenticated integer DEFAULT 400 NOT NULL,
+ deny_all_requests_except_allowed boolean DEFAULT false NOT NULL,
CONSTRAINT app_settings_container_reg_cleanup_tags_max_list_size_positive CHECK ((container_registry_cleanup_tags_service_max_list_size >= 0)),
CONSTRAINT app_settings_container_registry_pre_import_tags_rate_positive CHECK ((container_registry_pre_import_tags_rate >= (0)::numeric)),
CONSTRAINT app_settings_dep_proxy_ttl_policies_worker_capacity_positive CHECK ((dependency_proxy_ttl_group_policy_worker_capacity >= 0)),