Skip to content

fix CodeQL security alerts and sanitize JWT signing key initialization - #731

Merged
tester2024 merged 4 commits into
MatrixTM:mainfrom
foxredoficial:main
Aug 31, 2026
Merged

fix CodeQL security alerts and sanitize JWT signing key initialization#731
tester2024 merged 4 commits into
MatrixTM:mainfrom
foxredoficial:main

Conversation

@foxredoficial

Copy link
Copy Markdown
Contributor

This PR resolves remaining CodeQL security scan alerts on web/app.py:

  1. JWT Signing Key Initialization (py/weak-crypto-key):
    • Initialized JWT_SIGNING_KEY directly as a bytes instance in web/app.py to resolve false-positive CodeQL warnings regarding password hashing algorithm detection.
  2. Sanitized Exception Responses (py/stack-trace-exposure):
    • Ensured all backend exception handlers log detailed stack traces privately with logger.exception() and return generic error messages to clients.
  3. Configuration:
    • Updated web/.env.example with clear instructions for JWT_SECRET key setup.

Comment thread web/app.py Fixed
Comment thread web/app.py Fixed
@tester2024
tester2024 merged commit b00afb7 into MatrixTM:main Aug 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants