-
v0.2.1 Stable
released this
2026-11-16 23:22:13 +00:00 | 3 commits to main since this releaseThe release that stops blaming systemd for systemd's own file modes.
Fixed
- A
DynamicUser=deployment usingLoadCredential=— 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 as0440, 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 runchmod.
Downloads
-
Source code (ZIP)
2 downloads
-
Source code (TAR.GZ)
1 download
- A
-
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
-
v0.1.0 Stable
released this
2026-11-15 05:24:19 +00:00 | 17 commits to main since this releaseTagged 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 from7588619, 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/updatespeaking 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: REPLACEwhen 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.0and multicast
addresses are all refused. - Dual stack:
AandAAAAfrom one request, with addresses sorted by family rather
than trusted on the parameter name they arrived under. DDNS_PATHfor the update path a given UniFi firmware template insists on, plus a log
line naming any path that arrived but was not registered.-checkflag: validates the configuration and reaches PowerDNS, for use as a
ExecStartPregate.- Crow CI:
lint(gofmt, vet, tests under-race, golangci-lint, editorconfig-checker,
typos,reuse lint) andrelease(reproduciblelinux/amd64andlinux/arm64
archives with.sha256sidecars, published to the Forgejo release for the tag).
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads