File: 0140-disable-ci-key-generation.patch

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (17 lines) | stat: -rw-r--r-- 794 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107585

--- a/db/fixtures/production/010_settings.rb
+++ b/db/fixtures/production/010_settings.rb
@@ -26,6 +26,9 @@
   save(settings, 'Prometheus metrics enabled flag')
 end
 
-settings = Gitlab::CurrentSettings.current_application_settings
-settings.ci_jwt_signing_key = OpenSSL::PKey::RSA.new(2048).to_pem
-save(settings, 'CI JWT signing key')
+# We need to disable this to allow running gitlab-rake db:seed_fu
+# to be able to create new projects (this creates default organization)
+# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107585 to learn more
+#settings = Gitlab::CurrentSettings.current_application_settings
+#settings.ci_jwt_signing_key = OpenSSL::PKey::RSA.new(2048).to_pem
+#save(settings, 'CI JWT signing key')