config: error messages may leak full file path #74

Closed
opened 2026-07-05 13:37:49 +00:00 by the.auditor · 0 comments
Owner

_parse_toml in src/kronai/config.py:113 includes the full path in the exception string:

msg = f"Invalid config file {path}: {e}"

If the path contains user-home or other sensitive directory info, it could leak in logs. Consider using path.name or path.resolve() depending on needs.

From PR #73 review suggestion.

`_parse_toml` in `src/kronai/config.py:113` includes the full `path` in the exception string: ```python msg = f"Invalid config file {path}: {e}" ``` If the path contains user-home or other sensitive directory info, it could leak in logs. Consider using `path.name` or `path.resolve()` depending on needs. _From PR #73 review suggestion._
fuzzy closed this issue 2026-07-05 16:00:58 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/kronai#74
No description provided.