You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 55f3278
Browse filesBrowse the repository at this point in the historyBrowse files
fix(security): stop writing access tokens to the debug log (GHSA-r3r9-3mrh-x966)
setup_logging called logging.basicConfig(level=DEBUG, filename=...), which installs a handler on the ROOT logger, so third-party records were captured too — including httpx's INFO line, which prints the full request URL. The Graph API takes access_token as a query parameter, so every API call wrote the operator's token in full into a 0644 file that is never rotated. The package's own request logging masked it; httpx's did not.
The handler now belongs to this package's logger with propagate=False, httpx and httpcore are held at WARNING so the line is not emitted into host-configured logging either, the default level is INFO (META_ADS_LOG_LEVEL=DEBUG restores it), and the log file is 0600 inside a 0700 directory, narrowed on startup if an earlier version left them wider.
Credential prefixes (token[:10]) in log lines and in the get_login_link response are replaced by redact_secret(), which reports the length only.
The pipeboard_auth.py query-string half of the report no longer applies: that module was removed in 1.0.121 and no credential is placed in a URL by this package today.
Bumps to 1.0.128 and documents the advisory in SECURITY.md, including deleting existing logs and rotating the token.
0 commit comments