The admin is gone,
the door vanished.
When the last live session ends, the countdown begins. At the limit, hidden entry rules are purged, and the perimeter turns into a brick wall.
Resident guardian of the complex
The watcher is a background service that monitors the presence of the administrator's session, closes doors, and opens access upon a knock.
Lifecycle
agld_watcher.servicestarts when the physical HTTP server is enabled (HTTPS Web serveroption)- Stops only when the server is disabled
- Castling itself does not start or stop the Watcher
- The gate on port 55111 follows the server — the port is open externally, routes are regulated by the complex
If the rescue channel conditions do not match (no castling or Option B), the Watcher does not die — it slumbers: the process is alive, but all phases are skipped. The moment all conditions match — relocation, server, and Option B — it wakes up instantly and stands guard.
Autonomy by default
As long as the admin holds a terminal or SFTP client, the idle counter is forcibly zero: the complex sees live presence and waits. At the moment the session disappears, an autonomous countdown begins under conditions of complete operator absence.
We read utmp, we do not guess
Only USER_PROCESS records (code 7) on pts/* are considered presence. Local loops and screen-splitting utility sessions like tmux are isolated from the analysis vector. A utmp read failure is treated as "session active" — fail-safe towards availability, not paranoia.
One minute per tick
The counter lives in /var/lib/amberguard/agl_admin_idle_counter — non-volatile memory of silence. The warning triggers at half the limit; up to the limit, the hidden door remains open for the returning admin.
Incineration, not deletion
# exact signature match, non-blocking, with timeout ufw --force delete "Amber Guard Lab. Private SSH Invisible Port" # result: Operation timed out — brick wall
The door is not closed — the entry structure itself is incinerated from the Netfilter tables. For scanners, the port instantly dissolves into a monolithic wall responding with a hardware refusal.
Two paths back
A returning live session resets the counter to zero. Or an emergency web knock cuts a personal door through the wall — see Web Gateway.