• 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