Skip to content
Merged
98 changes: 75 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"parse-duration": "2.1.3",
"prettier": "3.5.3",
"prettier-plugin-astro": "0.14.1",
"prettier-plugin-tailwindcss": "0.6.9",
"prettier-plugin-tailwindcss": "0.6.11",
"pretty-bytes": "6.1.1",
"react": "19.0.0",
"react-dom": "19.0.0",
Expand Down
6 changes: 3 additions & 3 deletions public/cloudflare-one/static/authenticated-doh.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def request_doh_token(account_tag, user_id, client_id, client_secret):
'-H', f"Cf-Access-Client-Id: {client_id}",
'-H', f"Cf-Access-Client-Secret: {client_secret}"]
if verbose:
print(f"Issuing request {' '.join(command)}")
sanitized_command = [part if "Cf-Access-Client-Secret" not in part else "Cf-Access-Client-Secret: [REDACTED]" for part in command]
print(f"Issuing request {' '.join(sanitized_command)}")
response = json.loads(subprocess.check_output(command))
if verbose:
print("Got response:")
Expand Down Expand Up @@ -145,8 +146,7 @@ def request(method, url, body):
if client_id == "new":
service_token_name = input('Please input name for service token > ')
client_id, client_secret = request_create_service_token(service_token_name)
print(
f"Created service token with client_id {client_id} and client_secret {client_secret}. You may want to save these secrets.")
print("Created service token. Please save the client_secret securely.")


if len(client_secret) == 0:
Expand Down