aboutsummaryrefslogtreecommitdiff
path: root/uploader/default_settings.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-07-26 16:39:39 -0500
committerFrederick Muriuki Muriithi2024-07-26 16:50:53 -0500
commitf50c9220b4baf2f02b078eb8be0de427243377d3 (patch)
tree5343be238d7839871f8459693929019b2c050867 /uploader/default_settings.py
parent38df25ac8a1b4385e5987d41bb5447ad267408c5 (diff)
downloadgn-uploader-f50c9220b4baf2f02b078eb8be0de427243377d3.tar.gz
Add module to handle the JSON Web Keys.
Diffstat (limited to 'uploader/default_settings.py')
-rw-r--r--uploader/default_settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/uploader/default_settings.py b/uploader/default_settings.py
index f7ca48c..26fe665 100644
--- a/uploader/default_settings.py
+++ b/uploader/default_settings.py
@@ -18,3 +18,6 @@ GN2_SERVER_URL = "https://genenetwork.org/"
SESSION_TYPE = "redis"
SESSION_PERMANENT = True
SESSION_USE_SIGNER = True
+
+JWKS_ROTATION_AGE_DAYS = 7 # Days (from creation) to keep a JWK in use.
+JWKS_DELETION_AGE_DAYS = 14 # Days (from creation) to keep a JWK around before deleting it.