diff options
author | Frederick Muriuki Muriithi | 2024-07-18 16:54:07 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-07-31 09:30:21 -0500 |
commit | 8a3a16f25f6d87b6cf679c888eacba816415baa9 (patch) | |
tree | 7331f7c89ada5074a798c7fed923b9c8ab052498 /gn_auth/__init__.py | |
parent | ddb2b6804672c982568be891b35a5352cc6263b0 (diff) | |
download | gn-auth-8a3a16f25f6d87b6cf679c888eacba816415baa9.tar.gz |
Remove obsoleted SSL_PRIVATE_KEY configuration
With the key rotation in place, eliminate the use of the
SSL_PRIVATE_KEY configuration which pointed to a specific non-changing
JWK.
Diffstat (limited to 'gn_auth/__init__.py')
-rw-r--r-- | gn_auth/__init__.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gn_auth/__init__.py b/gn_auth/__init__.py index b3df070..ee7ceb1 100644 --- a/gn_auth/__init__.py +++ b/gn_auth/__init__.py @@ -24,7 +24,7 @@ def check_mandatory_settings(app: Flask) -> None: undefined = tuple( setting for setting in ( "SECRET_KEY", "SQL_URI", "AUTH_DB", "AUTH_MIGRATIONS", - "OAUTH2_SCOPE", "SSL_PRIVATE_KEY", "CLIENTS_SSL_PUBLIC_KEYS_DIR") + "OAUTH2_SCOPE", "CLIENTS_SSL_PUBLIC_KEYS_DIR") if not ((setting in app.config) and bool(app.config[setting]))) if len(undefined) > 0: raise ConfigurationError( @@ -64,8 +64,6 @@ def parse_ssl_keys(app): __parse_key__(Path(key_storage_dir).joinpath(key)) for key in os.listdir(key_storage_dir))} - app.config["SSL_PRIVATE_KEY"] = __parse_key__( - Path(app.config["SSL_PRIVATE_KEY"])) def create_app( config: Optional[dict] = None, |