Performance: Secret key configuration
MEDIUM IMPACT
This affects the security and integrity of session management and CSRF protection, indirectly impacting user experience and page responsiveness.
import os app.secret_key = os.environ.get('SECRET_KEY') or os.urandom(24)
app.secret_key = 'hardcoded_insecure_key'| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Hardcoded weak key | No direct DOM impact | 0 | 0 | [X] Bad |
| Secure environment key | No direct DOM impact | 0 | 0 | [OK] Good |