diff --git a/ee/app/controllers/ee/admin/application_settings_controller.rb b/ee/app/controllers/ee/admin/application_settings_controller.rb
index 22c6731ffc7302270370c024e091eeb079942fb2..4953133bb1d6a26db6dd7bb4f64332cd3ebd1fa7 100644
--- a/ee/app/controllers/ee/admin/application_settings_controller.rb
+++ b/ee/app/controllers/ee/admin/application_settings_controller.rb
@@ -140,7 +140,7 @@ def visible_application_setting_attributes
         end
 
         if License.feature_available?(:pre_receive_secret_detection) &&
-            ::Feature.enabled?(:secret_detection_application_setting)
+            ::Gitlab::CurrentSettings.gitlab_dedicated_instance?
           attrs << :pre_receive_secret_detection_enabled
         end
 
diff --git a/ee/app/views/admin/application_settings/security_and_compliance.html.haml b/ee/app/views/admin/application_settings/security_and_compliance.html.haml
index ad911e0a5fd10d937529cb1cbbec355c5c2ef17e..1dd719c2bd7ae9154c4b26d91c12c34480472433 100644
--- a/ee/app/views/admin/application_settings/security_and_compliance.html.haml
+++ b/ee/app/views/admin/application_settings/security_and_compliance.html.haml
@@ -14,7 +14,7 @@
   .settings-content
     = render 'license_compliance'
 
-- if Feature.enabled?(:secret_detection_application_setting) && License.feature_available?(:pre_receive_secret_detection)
+- if ::Gitlab::CurrentSettings.gitlab_dedicated_instance? && License.feature_available?(:pre_receive_secret_detection)
   %section.settings.as-secret-detection.no-animate#js-secret-detection-settings{ class: ('expanded' if expanded_by_default?), data: { testid: 'admin-secret-detection-settings' } }
     .settings-header
       %h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
diff --git a/ee/config/feature_flags/development/secret_detection_application_setting.yml b/ee/config/feature_flags/development/secret_detection_application_setting.yml
deleted file mode 100644
index 17b32abee9be5d0d08679ecf4742c08a4c3fcd6e..0000000000000000000000000000000000000000
--- a/ee/config/feature_flags/development/secret_detection_application_setting.yml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-name: secret_detection_application_setting
-introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/135273 
-rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/431584
-milestone: '16.7'
-type: development
-group: group::static analysis
-default_enabled: false
diff --git a/ee/spec/controllers/admin/application_settings_controller_spec.rb b/ee/spec/controllers/admin/application_settings_controller_spec.rb
index cabc7730b309e132696017547cc0ed7c0994f08c..a2a351b6fd33b864f0bd1ffdfb0a8df629a1735e 100644
--- a/ee/spec/controllers/admin/application_settings_controller_spec.rb
+++ b/ee/spec/controllers/admin/application_settings_controller_spec.rb
@@ -270,12 +270,16 @@
       let(:settings) { { pre_receive_secret_detection_enabled: true } }
       let(:feature) { :pre_receive_secret_detection }
 
+      before do
+        stub_application_setting(gitlab_dedicated_instance: true)
+      end
+
       it_behaves_like 'settings for licensed features'
 
-      context 'when secret_detection_application_setting feature flag is disabled' do
+      context 'when instance is not dedicated' do
         before do
           stub_licensed_features(feature => true)
-          stub_feature_flags(secret_detection_application_setting: false)
+          stub_application_setting(gitlab_dedicated_instance: false)
         end
 
         it 'does not update pre_receive_secret_detection_enabled setting' do
diff --git a/ee/spec/views/admin/application_settings/security_and_compliance.html.haml_spec.rb b/ee/spec/views/admin/application_settings/security_and_compliance.html.haml_spec.rb
new file mode 100644
index 0000000000000000000000000000000000000000..f394bbbb2945a974257e31665af9cf41d542e720
--- /dev/null
+++ b/ee/spec/views/admin/application_settings/security_and_compliance.html.haml_spec.rb
@@ -0,0 +1,61 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+RSpec.describe 'admin/application_settings/security_and_compliance.html.haml', feature_category: :software_composition_analysis do
+  using RSpec::Parameterized::TableSyntax
+
+  let_it_be(:user) { build_stubbed(:admin) }
+  let_it_be(:app_settings) { build(:application_setting) }
+
+  subject { rendered }
+
+  before do
+    assign(:application_setting, app_settings)
+    allow(view).to receive(:current_user).and_return(user)
+
+    stub_licensed_features(pre_receive_secret_detection: feature_available)
+  end
+
+  shared_examples 'renders pre receive secret detection setting' do
+    it do
+      render
+
+      expect(rendered).to have_css '#js-secret-detection-settings'
+    end
+  end
+
+  shared_examples 'does not render pre receive secret detection setting' do
+    it do
+      render
+
+      expect(rendered).not_to have_css '#js-secret-detection-settings'
+    end
+  end
+
+  context 'when instance is dedicated' do
+    before do
+      stub_application_setting(gitlab_dedicated_instance: true)
+    end
+
+    describe 'feature available' do
+      let(:feature_available) { true }
+
+      it_behaves_like 'renders pre receive secret detection setting'
+    end
+
+    describe 'feature not available' do
+      let(:feature_available) { false }
+
+      it_behaves_like 'does not render pre receive secret detection setting'
+    end
+  end
+
+  context 'when instance is not dedicated' do
+    let(:feature_available) { true }
+
+    describe 'feature available' do
+      it_behaves_like 'does not render pre receive secret detection setting'
+    end
+  end
+end