From 09b4567c9284a733dea1d77a02e556d3879eedf3 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 14 Sep 2024 09:49:35 -0500 Subject: [PATCH] Redact sensitive info from ddns client while also logging verbosely --- modules/nixos/deno-netlify-ddns-client.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nixos/deno-netlify-ddns-client.nix b/modules/nixos/deno-netlify-ddns-client.nix index a1fa08b..f5c39e4 100644 --- a/modules/nixos/deno-netlify-ddns-client.nix +++ b/modules/nixos/deno-netlify-ddns-client.nix @@ -69,7 +69,7 @@ in { -X POST \ --max-time ${toString cfg.requestTimeout} \ -u "${cfg.username}:''${password}" \ - -L "${cfg.endpoint}/v1/netlify-ddns/replace-all-relevant-user-dns-records" \ + -L "${cfg.endpoint}/v1/netlify-ddns/replace-all-relevant-user-dns-records" 2>&1 \ | "${pkgs.sd}/bin/sd" --fixed-strings "''${password}" "[REDACTED]" \ | "${pkgs.sd}/bin/sd" -f i "Authorization: .*" "Authorization: [REST OF LINE REDACTED]" ''} @@ -79,7 +79,7 @@ in { -X POST \ --max-time ${toString cfg.requestTimeout} \ -u "${cfg.username}:''${password}" \ - -L "${cfg.endpoint}/v1/netlify-ddns/replace-all-relevant-user-dns-records" \ + -L "${cfg.endpoint}/v1/netlify-ddns/replace-all-relevant-user-dns-records" 2>&1 \ | "${pkgs.sd}/bin/sd" --fixed-strings "''${password}" "[REDACTED]" \ | "${pkgs.sd}/bin/sd" -f i "Authorization: .*" "Authorization: [REST OF LINE REDACTED]" ''}