This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new 9b71e67 Use a JWT secret key from secrets configuration
9b71e67 is described below
commit 9b71e672e185eb7733b88fd7f9b5d43ba77fb99b
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Sep 9 14:39:19 2025 +0100
Use a JWT secret key from secrets configuration
---
atr/config.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/atr/config.py b/atr/config.py
index 96722c0..b1da58f 100644
--- a/atr/config.py
+++ b/atr/config.py
@@ -53,7 +53,7 @@ class AppConfig:
DEBUG = False
TEMPLATES_AUTO_RELOAD = False
USE_BLOCKBUSTER = False
- JWT_SECRET_KEY = decouple.config("JWT_SECRET_KEY",
default=secrets.token_hex(128 // 8))
+ JWT_SECRET_KEY = _config_secrets("JWT_SECRET_KEY", STATE_DIR,
default=None, cast=str) or secrets.token_hex(128 // 8)
SECRET_KEY = decouple.config("SECRET_KEY", default=secrets.token_hex(128
// 8))
WTF_CSRF_ENABLED = decouple.config("WTF_CSRF_ENABLED", default=True,
cast=bool)
DOWNLOADS_STORAGE_DIR = os.path.join(STATE_DIR, "downloads")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]