Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Unreleased

# Released
# v1.3.1

## Security Fixes
* Fixed security and quality issues at clear-text URL logging in HTTP transport retry/exception paths and `examples/oauth_client.py` [#193](https://github.com/hashicorp/python-tfe/pull/193)

# v1.3.0

## Enhancements
Expand Down
6 changes: 2 additions & 4 deletions src/pytfe/_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ def request(
)
except httpx.HTTPError as e:
transport_logger.debug(
"transport exception on %s %s (attempt %d): %s",
"transport exception on %s (attempt %d): %s",
method,
"<redacted-url>",
attempt,
e,
)
Expand All @@ -123,9 +122,8 @@ def request(
if resp.status_code in _RETRY_STATUSES and attempt < self.max_retries:
retry_after = _parse_retry_after(resp)
transport_logger.info(
"retrying %s %s after %s (status=%d, attempt=%d)",
"retrying %s after %s (status=%d, attempt=%d)",
method,
"<redacted-url>",
f"{retry_after:.2f}s" if retry_after else "backoff",
resp.status_code,
attempt,
Expand Down
Loading