-
v0.2.0 Stable
released this
2026-11-16 17:05:25 +00:00 | 6 commits to main since this releaseThe 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 ofproxy_passthat strips the prefix, thereturn 301
that covers/dyndns, theX-Real-IP/X-Forwarded-ForpairDDNS_TRUST_PROXYreads, 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 publishing127.0.0.1as 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, thesystemd/
unit set (service, socket, both IP-access-list drop-ins, the env template),README.md
andCHANGELOG.mdnext to the license texts. The tree is copied rather than listed
file by file, so a unit added underdeploy/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=notifyintegration:READY=1once the listeners are bound and
answering (so anExecStart=that cannot exec, or a port in use, is a failed start
rather than an active unit serving nothing),STOPPING=1before the drain, and
WATCHDOG=1at halfWatchdogSec=— 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, sosystemctl status pdns-ddns
shows<ts> badauth home.dyn.example 203.0.113.9 from 203.0.113.7instead 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 shipsType=notify,
NotifyAccess=main,WatchdogSec=60s, and AF_UNIX inRestrictAddressFamilies=—
without that last one aType=notifyunit never starts. - Socket activation:
deploy/systemd/pdns-ddns.socketplus 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 meetingECONNREFUSED, the service
never callsbind(), andDDNS_LISTENis reported as ignored in thelisteninglog
line. A hand-off the binary cannot make sense of is fatal rather than a quiet fallback
ontoDDNS_LISTEN. The service'sWants=/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 verifyover the unit set, drop-ins included.- One dependency:
github.com/coreos/go-systemd/v22, foractivation(the
$LISTEN_PID/$LISTEN_FDSprotocol) anddaemon(thesd_notifywire format and
$WATCHDOG_USEC). Those two, plus thegolang.org/x/sys/unixthatsd_notifycalls,
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_DIRECTORYand from a*_PATHfile, so the token and the
PowerDNS key can stay out of the process environment entirely. Precedence is
explicit path, then credential, then environment variable;-checkand 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) undersystemd-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, soupload-release.shdied at the interpreter line (127) before running a line of
it; and the token it authenticates with needswrite:repository, not thewrite: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-bodywrote the response
body to stdout, straight intojq, which ate it.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- A "Behind a reverse proxy" section with the nginx