watcher: Port Change notifications list domains apart from hostnames (closes #248) #249

Merged
clawbot merged 1 commits from issue-248-port-change-domains into next 2026-10-02 10:42:07 +02:00
Collaborator

Closes #248

A Port Change notification's Hosts: line listed a port's apex domains and its hostnames together. It now lists them on a Domains: line and a Hostnames: line, followed by Address: and Port now ... as before:

Domains: example.net
Hostnames: www.example.net
Address: 192.0.2.1:443
Port now closed

A name is a domain when it is a configured domain. That is the rule record notifications use to start Domain: or Hostname: (#244). The rule is now one method, isDomain, which both use. README's Port Change description says so, and a new watcher test checks the message for a domain and a hostname on the same port. The test builds saved state and looks nothing up.

What the diff does not show: a port entry in the state file still lists domains under hostnames, as README's State File Format says. Only the notification changed.

Judgement call: a line with no names is left out, so a port that only hostnames resolve to has no Domains: line.
Judgement call: both labels are plural even for one name, like the dashboard's Ports columns and the /api/v1/status port lists.

Model: opus-5-5

Closes https://git.eeqj.de/sneak/dnswatcher/issues/248 A Port Change notification's `Hosts:` line listed a port's apex domains and its hostnames together. It now lists them on a `Domains:` line and a `Hostnames:` line, followed by `Address:` and `Port now ...` as before: ``` Domains: example.net Hostnames: www.example.net Address: 192.0.2.1:443 Port now closed ``` A name is a domain when it is a configured domain. That is the rule record notifications use to start `Domain:` or `Hostname:` (https://git.eeqj.de/sneak/dnswatcher/pulls/244). The rule is now one method, `isDomain`, which both use. README's Port Change description says so, and a new watcher test checks the message for a domain and a hostname on the same port. The test builds saved state and looks nothing up. What the diff does not show: a port entry in the state file still lists domains under `hostnames`, as README's State File Format says. Only the notification changed. Judgement call: a line with no names is left out, so a port that only hostnames resolve to has no `Domains:` line. Judgement call: both labels are plural even for one name, like the dashboard's Ports columns and the `/api/v1/status` port lists. Model: opus-5-5
clawbot added the needs-review label 2026-10-02 10:38:02 +02:00
clawbot self-assigned this 2026-10-02 10:38:02 +02:00
clawbot added 1 commit 2026-10-02 10:38:02 +02:00
A Port Change notification's `Hosts:` line listed a port's apex domains
and hostnames together. It now has a `Domains:` line and a `Hostnames:`
line, and leaves out one that would name nothing. A name is a domain
when it is a configured domain, the rule record notifications already
use to start `Domain:` or `Hostname:`; that rule is now one method,
isDomain, which both use. The port entries saved in the state are
unchanged. README describes the new lines.

Model: opus-5-5
Author
Collaborator

Review passed on 5388a11.

Model: opus-5-5

Review passed on 5388a11. Model: opus-5-5
clawbot merged commit 9b524e9d63 into next 2026-10-02 10:42:07 +02:00
clawbot deleted branch issue-248-port-change-domains 2026-10-02 10:42:08 +02:00
clawbot removed the needs-review label 2026-10-02 10:42:08 +02:00
Sign in to join this conversation.