Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/pygira/baresip_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def _write_config(
# It is mode 0600 inside a mode-0700 temporary directory, is never logged or
# passed as a process argument, and is unlinked immediately after startup.
account = _account_parameter(self.host, self.username, self._password)
# codeql[py/clear-text-storage-sensitive-data]
# lgtm [py/clear-text-storage-sensitive-data]: Baresip requires this
# short-lived 0600 file; the temporary directory is removed on close.
accounts_path.write_text(account + "\n", encoding="utf-8")
accounts_path.chmod(_CONFIG_MODE)
return accounts_path
Expand Down
Loading