-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: Remove secret from DB and enforce env #6748
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
app/instance.py
Outdated
else: | ||
random_secret = secrets.token_hex() | ||
app.logger.warning(f'Using random secret "{ random_secret }" for development server. ' | ||
'This is NOT recommended. Set proper SECRET_KEY in .env or environment variables') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuation line over-indented for visual indent
Codecov Report
@@ Coverage Diff @@
## development #6748 +/- ##
===============================================
- Coverage 65.42% 65.39% -0.04%
===============================================
Files 300 300
Lines 15330 15332 +2
===============================================
- Hits 10030 10026 -4
- Misses 5300 5306 +6
Continue to review full report at Codecov.
|
Issues
======
- Added 1
Complexity increasing per file
==============================
- app/instance.py 2
See the complete overview on Codacy |
exit(1) | ||
else: | ||
random_secret = secrets.token_hex() | ||
app.logger.warning(f'Using random secret "{ random_secret }" for development server. ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue found: invalid syntax
Fix for #6093