Verbose logging, redact passwords
Some checks failed
/ check (push) Failing after 3m26s

This commit is contained in:
Daniel Flanagan 2024-09-14 07:27:40 -05:00
parent fbdac308ec
commit 529dcce37a

View file

@ -64,18 +64,22 @@ in {
set -eu
password="$(cat "${cfg.passwordFile}")"
${optionalString cfg.ipv4 ''
${pkgs.curl}/bin/curl -4 -s \
"${pkgs.curl}/bin/curl" -4 -s \
-vvv \
-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" \
| "${pkgs.ripgrep}/bin/ripgrep" --fixed-strings "''${password}" -r "[REDACTED]"
''}
${optionalString cfg.ipv6 ''
${pkgs.curl}/bin/curl -6 -s \
-vvv \
-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" \
| "${pkgs.ripgrep}/bin/ripgrep" --fixed-strings "''${password}" -r "[REDACTED]"
''}
'';
serviceConfig = {