-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Refactor backend to add logging and error handling following modern best practice, for better code quality, observability and security.
The new error handling should take care of all known and unknown issues, log and return error for known issues, and log with stack trace for unknown issues.
The log injection vulnerabilities reported by CodeQL in #27 is NOT completely fixed, there are other points where user-controlled data flow into log. These must be fixed with the refactor using something like:
logging.error("action: %s", action) # New line characters auto escapedinstead of:
logging.error(f"action: {action}")and potentially sanitize it to prevent XSS when viewing log (Defense-in-depth, but may break things. Pending discussion).
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Type
Projects
Status
Todo