Agents already report their own hostname, and the host page shows it, but
nothing compared it with the name the host is registered under. A token copied
to the wrong machine would report happily under the wrong identity with no
visible sign.
When the two differ, the dashboard row and host page now show a note:
"registered as web01 but reports itself as db01.example.internal; token on the
wrong machine?"
A note only: it never changes a host's status or the fleet counts.
Only the first DNS label is compared, ignoring case. Registered names are
usually hostname -s (deploy.sh) while the agent reports hostname -f.
evaluate() takes an optional host. Alerts and history rows don't pass it,
so ntfy messages and the history table are unchanged.
Reported names are HTML-escaped.
Known limitation
Hosts registered under a custom label via agent/hosts (<ssh target> <name>)
will always show the note. The README says so and suggests registering under hostname -s.
Testing
make test: 115 tests pass (3 new): note without level change, lenient matching
(FQDN vs short, case, no reported name, no registered name), and rendering on
the dashboard and host page with HTML escaping.
## Summary
Agents already report their own hostname, and the host page shows it, but
nothing compared it with the name the host is registered under. A token copied
to the wrong machine would report happily under the wrong identity with no
visible sign.
When the two differ, the dashboard row and host page now show a note:
"registered as web01 but reports itself as db01.example.internal; token on the
wrong machine?"
- A note only: it never changes a host's status or the fleet counts.
- Only the first DNS label is compared, ignoring case. Registered names are
usually `hostname -s` (deploy.sh) while the agent reports `hostname -f`.
- `evaluate()` takes an optional `host`. Alerts and history rows don't pass it,
so ntfy messages and the history table are unchanged.
- Reported names are HTML-escaped.
## Known limitation
Hosts registered under a custom label via `agent/hosts` (`<ssh target> <name>`)
will always show the note. The README says so and suggests registering under
`hostname -s`.
## Testing
`make test`: 115 tests pass (3 new): note without level change, lenient matching
(FQDN vs short, case, no reported name, no registered name), and rendering on
the dashboard and host page with HTML escaping.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
patrick
added 2 commits 2026-10-30 01:18:30 +00:00
A note on the dashboard row and host page, not a status change, so a token
copied to the wrong machine is visible. Only the first DNS label is compared,
ignoring case, since registered names are usually hostname -s and the agent
reports hostname -f.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Agents already report their own hostname, and the host page shows it, but
nothing compared it with the name the host is registered under. A token copied
to the wrong machine would report happily under the wrong identity with no
visible sign.
When the two differ, the dashboard row and host page now show a note:
"registered as web01 but reports itself as db01.example.internal; token on the
wrong machine?"
usually
hostname -s(deploy.sh) while the agent reportshostname -f.evaluate()takes an optionalhost. Alerts and history rows don't pass it,so ntfy messages and the history table are unchanged.
Known limitation
Hosts registered under a custom label via
agent/hosts(<ssh target> <name>)will always show the note. The README says so and suggests registering under
hostname -s.Testing
make test: 115 tests pass (3 new): note without level change, lenient matching(FQDN vs short, case, no reported name, no registered name), and rendering on
the dashboard and host page with HTML escaping.
🤖 Generated with Claude Code