From 9eabc2a8f959e5dd89e79727c45d7ec339ac8712 Mon Sep 17 00:00:00 2001 From: "Albert (AJ) St. Aubin" Date: Wed, 4 Sep 2019 12:20:56 -0400 Subject: [PATCH] Added FERNET_KEY information to the CMS configuration (#21561) [ENT-2191] --- cms/envs/common.py | 5 +++++ cms/envs/production.py | 3 +++ 2 files changed, 8 insertions(+) diff --git a/cms/envs/common.py b/cms/envs/common.py index a06a9847b8..4d0abf7872 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -1999,6 +1999,11 @@ FACEBOOK_APP_ID = 'FACEBOOK_APP_ID' FACEBOOK_APP_SECRET = 'FACEBOOK_APP_SECRET' FACEBOOK_API_VERSION = 'v2.1' +############### Settings for django-fernet-fields ################## +FERNET_KEYS = [ + 'DUMMY KEY CHANGE BEFORE GOING TO PRODUCTION', +] + ### Proctoring configuration (redirct URLs and keys shared between systems) #### PROCTORING_BACKENDS = { 'DEFAULT': 'null', diff --git a/cms/envs/production.py b/cms/envs/production.py index 898f3b18e8..5fa8a79300 100644 --- a/cms/envs/production.py +++ b/cms/envs/production.py @@ -575,6 +575,9 @@ COMPLETION_VIDEO_COMPLETE_PERCENTAGE = ENV_TOKENS.get( COMPLETION_VIDEO_COMPLETE_PERCENTAGE, ) +############### Settings for django-fernet-fields ################## +FERNET_KEYS = AUTH_TOKENS.get('FERNET_KEYS', FERNET_KEYS) + ####################### Enterprise Settings ###################### # A default dictionary to be used for filtering out enterprise customer catalog.