• v0.2.1 58831dd06d

    v0.2.1 Stable

    ci-bot released this 2026-11-16 23:22:13 +00:00 | 3 commits to main since this release

    The release that stops blaming systemd for systemd's own file modes.

    Fixed

    • A DynamicUser= deployment using LoadCredential= — the setup the shipped unit and the
      README recommend — no longer warns on every start that its secrets are readable beyond
      their owner. systemd hands credential files over as 0440, because group read is the only
      way a process that is not root can read them; the check was calling the mechanism a
      misconfiguration. Its hint was the worse half: chmod 600, obeyed, takes that group bit
      away and the service cannot read its own token. Credentials are now judged on the world
      bit only, which systemd never sets, and the mode prints as octal (mode=0440) because the
      hint tells you to run chmod.
    Downloads
  • v0.2.0 e41d0bfa7d

    v0.2.0 Stable

    ci-bot released this 2026-11-16 17:05:25 +00:00 | 6 commits to main since this release

    The release that makes the systemd story the deployment: socket activation, Type=notify
    with a watchdog, secrets that never enter the environment, and a tarball you can install
    from without a checkout.

    Added

    • A "Behind a reverse proxy" section with the nginx location /dyndns/ block that shares an
      existing HTTPS port, verified end to end against nginx 1.30.6 rather than written from
      memory: the trailing-slash form of proxy_pass that strips the prefix, the return 301
      that covers /dyndns, the X-Real-IP/X-Forwarded-For pair DDNS_TRUST_PROXY reads, and
      what each misconfiguration looks like in the journal.
    • An update that sends no address is refused (badagent/400) when the address the service
      inferred for itself is loopback, unspecified, link-local or multicast. Behind a same-host
      proxy that is what publishing 127.0.0.1 as a WAN record looks like on its way in, and the
      journal now names both fixes instead of waiting for someone to need the name. An explicit
      myip= still publishes: a request that names an address means it.
    • The release archive is now the whole deployment download: pdns-ddns, the systemd/
      unit set (service, socket, both IP-access-list drop-ins, the env template), README.md
      and CHANGELOG.md next to the license texts. The tree is copied rather than listed
      file by file, so a unit added under deploy/systemd/ cannot be left out by forgetting
      to touch the script, and the build fails outright if the unit set has gone missing.
    • systemd Type=notify integration: READY=1 once the listeners are bound and
      answering (so an ExecStart= that cannot exec, or a port in use, is a failed start
      rather than an active unit serving nothing), STOPPING=1 before the drain, and
      WATCHDOG=1 at half WatchdogSec= — going silent when every listener has gone, so a
      wedged process is killed instead of kept alive on paper.
    • The last update attempt as systemd's STATUS= text, so systemctl status pdns-ddns
      shows <ts> badauth home.dyn.example 203.0.113.9 from 203.0.113.7 instead of nothing.
      Refused attempts count, which is the point; scanner traffic on an unregistered path
      does not, and no secret is in the line. The unit ships Type=notify,
      NotifyAccess=main, WatchdogSec=60s, and AF_UNIX in RestrictAddressFamilies= —
      without that last one a Type=notify unit never starts.
    • Socket activation: deploy/systemd/pdns-ddns.socket plus its own IP access-list
      drop-in. systemd binds the port and passes the descriptor, so an update arriving
      mid-restart waits in the accept queue instead of meeting ECONNREFUSED, the service
      never calls bind(), and DDNS_LISTEN is reported as ignored in the listening log
      line. A hand-off the binary cannot make sense of is fatal rather than a quiet fallback
      onto DDNS_LISTEN. The service's Wants=/After= on the socket unit keep the two in
      the right order; both are no-ops when the socket unit is not installed.
    • just verify-units: systemd-analyze verify over the unit set, drop-ins included.
    • One dependency: github.com/coreos/go-systemd/v22, for activation (the
      $LISTEN_PID/$LISTEN_FDS protocol) and daemon (the sd_notify wire format and
      $WATCHDOG_USEC). Those two, plus the golang.org/x/sys/unix that sd_notify calls,
      are the only non-stdlib code linked in; their Apache-2.0 and BSD-3-Clause texts (with
      the patent grant) now ship in the release archives, taken from the go.sum-pinned module
      rather than copied into the tree.
    • Secrets from $CREDENTIALS_DIRECTORY and from a *_PATH file, so the token and the
      PowerDNS key can stay out of the process environment entirely. Precedence is
      explicit path, then credential, then environment variable; -check and the startup
      log name the source that won, never the value.
    • A warning (not a refusal) when a secret file is readable beyond its owner.
    • deploy/systemd/: a hardened unit that verifies clean on systemd 262 and scores
      1.0 (OK) under systemd-analyze security, an optional IP access-list drop-in, and an
      environment-file template. No AppArmor profile: the deploy target is Arch, which has
      no AppArmor, so the unit's sandbox is the access-control layer.

    Changed

    • The index page points at the endpoint relatively — update with GET nic/update?... relative to this URL — because an absolute path printed behind a proxy that strips a prefix names a
      URL the vhost does not serve. Relative resolves correctly at / and under any prefix.

    Fixed

    • The release pipeline publishes now. Its step runs on alpine, whose base image has no
      bash, so upload-release.sh died at the interpreter line (127) before running a line of
      it; and the token it authenticates with needs write:repository, not the write:release
      the script documented, which is what Forgejo's 403 named. A refused call now reports
      Forgejo's own reason rather than a bare status — --fail-with-body wrote the response
      body to stdout, straight into jq, which ate it.
    Downloads
  • v0.1.0 7588619ff9

    v0.1.0 Stable

    mcp-bot released this 2026-11-15 05:24:19 +00:00 | 17 commits to main since this release

    Tagged retroactively: 0.1.0 shipped before the release automation worked (the publish
    step had no bash on alpine), so this release carries no build assets — the tag is the
    release. Build it from 7588619, or take v0.2.0's archives.

    First release, the version that takes a UniFi gateway's WAN address into PowerDNS.

    Added

    • GET/POST /nic/update speaking the dyndns reply vocabulary (good, nochg,
      badauth, notfqdn, noauth, badagent, dnserr), which is what inadyn's generic
      plugin matches against out of the box.
    • HTTP basic auth with the token as the password, compared in constant time. The
      username is ignored, and a template that sends only a username is covered.
    • PowerDNS client that reads the current RRset and only sends PATCH … changetype: REPLACE when the addresses actually differ, so a client updating on a timer does not
      bump the SOA serial and notify the secondaries every period.
    • Zone allowlist (DDNS_ZONES) with longest-suffix matching, enforced before PowerDNS is
      contacted. Zone apexes, _-prefixed labels, wildcards, 0.0.0.0 and multicast
      addresses are all refused.
    • Dual stack: A and AAAA from one request, with addresses sorted by family rather
      than trusted on the parameter name they arrived under.
    • DDNS_PATH for the update path a given UniFi firmware template insists on, plus a log
      line naming any path that arrived but was not registered.
    • -check flag: validates the configuration and reaches PowerDNS, for use as a
      ExecStartPre gate.
    • Crow CI: lint (gofmt, vet, tests under -race, golangci-lint, editorconfig-checker,
      typos, reuse lint) and release (reproducible linux/amd64 and linux/arm64
      archives with .sha256 sidecars, published to the Forgejo release for the tag).
    Downloads