Update logging for auto-generated SECRET_KEY
Remove the code that exposes the generated key in the log, as it poses a security risk.
This commit is contained in:
parent
f0a14f5fce
commit
8208a2bf48
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ def _get_or_create_secret_key():
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
new_key = secrets.token_hex(32)
|
new_key = secrets.token_hex(32)
|
||||||
logging.warning(f"SECURITY WARNING: Using auto-generated SECRET_KEY. Generated key: {new_key}")
|
logging.warning(f"SECURITY WARNING: Using auto-generated SECRET_KEY.")
|
||||||
return new_key
|
return new_key
|
||||||
|
|
||||||
class StorageFactory:
|
class StorageFactory:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue