From 7197b1796838c7271cebb74b59b9affede9c9649 Mon Sep 17 00:00:00 2001 From: Lubos Mjachky Date: Thu, 27 Jun 2024 20:25:10 +0200 Subject: [PATCH] Update the default value of SECRET_KEY to enable deployment checks closes #5529 --- CHANGES/5529.bugfix | 1 + pulpcore/app/settings.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 CHANGES/5529.bugfix diff --git a/CHANGES/5529.bugfix b/CHANGES/5529.bugfix new file mode 100644 index 00000000000..f4321210fb7 --- /dev/null +++ b/CHANGES/5529.bugfix @@ -0,0 +1 @@ +Added a note about the default value of the `SECRET_KEY` setting. diff --git a/pulpcore/app/settings.py b/pulpcore/app/settings.py index 6ba98056e4b..f1f3c677b60 100644 --- a/pulpcore/app/settings.py +++ b/pulpcore/app/settings.py @@ -61,7 +61,8 @@ # List of upload handler classes to be applied in order. FILE_UPLOAD_HANDLERS = ("pulpcore.app.files.HashingFileUploadHandler",) -SECRET_KEY = True +# SECURITY WARNING: this should be set to a unique, unpredictable value +SECRET_KEY = "" # Key used to encrypt fields in the database DB_ENCRYPTION_KEY = "/etc/pulp/certs/database_fields.symmetric.key"