Skip to content

Commit

Permalink
Remove potential local RPSL password log from irr_rpsl_submit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasha Romijn committed Apr 8, 2024
1 parent 20b771e commit 4f5ac12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion irrd/scripts/irr_rpsl_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,12 @@ def create_http_request(requests_text, args):
method=method,
headers=headers,
)
logger.debug("Submitting to %s; method %s}; headers %s; data %s", url, method, headers, http_data)
filtered_http_data = http_data
for password in request_body.get("passwords", []): # pragma: no cover
filtered_http_data.replace(password, b"REMOVED")
logger.debug(
"Submitting to %s; method %s}; headers %s; data %s", url, method, headers, filtered_http_data
)

return http_request

Expand Down

0 comments on commit 4f5ac12

Please sign in to comment.