Status poll opens a real authenticated root SSH login to the target host every 30 seconds… #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reported from the pi-chat app.
Status poll opens a real authenticated root SSH login to the target host every 30 seconds
Every open browser tab makes the app SSH into the target host twice a minute just to light a status dot. On our Proxmox host one idle client produces ~2 root logins a minute; across 24 hours the host logged 3,648 accepted publickey logins from the pi-chat container, all with the same key, and 6,248 logind 'New session' entries in the same window.
The chain (build
a63ee57):Host-side evidence (voyager, 02/11/2026):
Why it matters: every poll spawns an ssh child, runs the PAM stack, creates and tears down a logind session and writes to the host journal — per client, per 30 s. It also drowns real root logins in the host's auth log, and it made a 'Session logged out' timeline during a host shutdown unreadable because every entry was a poll, not a person. With 3-6 tabs open the logins land every few seconds, which is exactly how this first looked like a rogue process on the host.
Suggested fix, in order of preference:
The health dot does not need a live SSH login to be useful: /api/health already answers 'is the server up', so the SSH indicator can be a cheap reachability check.
What I expected
The status dot should not authenticate to the SSH target at all, or at most once a minute regardless of how many tabs are open. A status probe should be cheap: TCP connect to :22, or a cached result of the last real connection test.
a63ee57(a63ee57)Attachments, if any, are attached to this issue by the app.