Clarify Porkbun credential and API errors #3

Merged
eleith merged 2 commits from fix-porkbun-ddns-credential-errors into main 2026-10-24 14:04:09 +00:00

Summary

  • Distinguish missing/mis-mounted or unreadable credentials files from invalid JSON, missing fields, and whitespace in keys.
  • Report rejected API credentials separately from API-access denials, network failures, HTTP errors, and malformed responses without logging secrets or raw responses.
  • Keep response names and diagnostic wording precise, simplify credential-error classification, and leave unclassified API errors neutral.
  • Expand mocked tests and add concise troubleshooting guidance; correct the example image version.

Validation

  • All 30 mocked-HTTP tests pass.
  • ShellCheck, Bash syntax checks, and whitespace checks pass.
  • Live --dry-run succeeded and reported the existing A record unchanged; no DNS changes made.
  • Docker builds and runs remain user-managed and were not performed.
## Summary - Distinguish missing/mis-mounted or unreadable credentials files from invalid JSON, missing fields, and whitespace in keys. - Report rejected API credentials separately from API-access denials, network failures, HTTP errors, and malformed responses without logging secrets or raw responses. - Keep response names and diagnostic wording precise, simplify credential-error classification, and leave unclassified API errors neutral. - Expand mocked tests and add concise troubleshooting guidance; correct the example image version. ## Validation - All 30 mocked-HTTP tests pass. - ShellCheck, Bash syntax checks, and whitespace checks pass. - Live `--dry-run` succeeded and reported the existing A record unchanged; no DNS changes made. - Docker builds and runs remain user-managed and were not performed.
eleith added 1 commit 2026-10-24 13:57:23 +00:00
eleith force-pushed fix-porkbun-ddns-credential-errors from b5906bec8c to e5bddc9e94 2026-10-24 13:57:23 +00:00 Compare
eleith added 1 commit 2026-10-24 14:03:54 +00:00
run tests on prs
ci/woodpecker/pr/build-porkbun-ddns Pipeline was successful
ci/woodpecker/push/build-porkbun-ddns Pipeline was successful
ci/woodpecker/tag/build-porkbun-ddns Pipeline was successful
12a2574642
eleith merged commit 12a2574642 into main 2026-10-24 14:04:09 +00:00
eleith deleted branch fix-porkbun-ddns-credential-errors 2026-10-24 14:04:09 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eleith/containers#3