From 09fc4bbc3ef66b02f0711dadaf3b10ed53d9d968 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 10 Dec 2025 12:57:14 -0600 Subject: Feature Flags: Generically deal with HTTP-based feature flags. * Define a default `FEATURE_FLAGS_HTTP` configuration variable that's an empty list to help defining http-based feature flags that can be used to turn on/off features * Build macro to include hidden fields for feature flags where necessary. * Extend flask's `url_for` function to deal with defined feature flags in a mostly transparent way --- uploader/default_settings.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'uploader/default_settings.py') diff --git a/uploader/default_settings.py b/uploader/default_settings.py index c5986ab..bb3a967 100644 --- a/uploader/default_settings.py +++ b/uploader/default_settings.py @@ -29,3 +29,7 @@ SESSION_FILESYSTEM_CACHE_HASH_METHOD = None # default: hashlib.md5 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. + + +## --- Feature flags --- +FEATURE_FLAGS_HTTP = [] -- cgit 1.4.1