From 6140fe3eb21eaa8bc0e663e5b1073d66ac5872a7 Mon Sep 17 00:00:00 2001 From: Meng Han Date: Wed, 9 Oct 2024 16:05:20 -0700 Subject: [PATCH] add one more setting --- confidant/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/confidant/settings.py b/confidant/settings.py index facb8b9d..15785f55 100644 --- a/confidant/settings.py +++ b/confidant/settings.py @@ -693,6 +693,10 @@ def str_env(var_name, default=''): CUSTOM_CERTIFICATE_AUTHORITIES = json.loads(b64decode(decrypted_custom_cas)) \ if decrypted_custom_cas else {} + +# provide a JSON with the following format: +# {"staging": "some_kid", "production": "some_kid"} +CUSTOM_CA_ACTIVE_KEYS = json.loads(str_env('CUSTOM_CA_ACTIVE_KEYS', '{}')) # Configuration validation _settings_failures = False