Remove token value from log messages in legacy router files #35
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/major-domo-database#35
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Several router files log the raw bearer token on 401 failures (e.g.
plays.py:37:logger.warning(f"patch_play - Bad Token: {token}")). Thehandle_db_errorsdecorator correctly redacts tokens, but explicit logger.warning calls bypass that protection.Priority: medium | Labels: security
Fixed in PR #45: #45
Removed raw bearer token interpolation from 22 router files. All
logger.warning(f'... Bad Token: {token}')calls converted to static strings likelogger.warning('... Bad Token'). No token value is now logged on 401 failures.