Skip to content

Commit 28a302a

Browse files
Potential fix for code scanning alert no. 1: Clear-text logging of sensitive information
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 7118e6f commit 28a302a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

public/cloudflare-one/static/authenticated-doh.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
verbose = os.environ.get('VERBOSE', False)
1010

1111

12+
1213
def check_for_command(command):
1314
try:
1415
subprocess.check_output(["command", "-v", command])
@@ -69,7 +70,8 @@ def request_doh_token(account_tag, user_id, client_id, client_secret):
6970
'-H', f"Cf-Access-Client-Id: {client_id}",
7071
'-H', f"Cf-Access-Client-Secret: {client_secret}"]
7172
if verbose:
72-
print(f"Issuing request {' '.join(command)}")
73+
sanitized_command = sanitize_command(command)
74+
print(f"Issuing request {' '.join(sanitized_command)}")
7375
response = json.loads(subprocess.check_output(command))
7476
if verbose:
7577
print("Got response:")

0 commit comments

Comments
 (0)