midas as a command on a build machine; how to check the tunnel #1

Merged
cartopolis-agent merged 2 commits from node-midas-on-path into main 2026-10-13 19:42:05 +00:00
Collaborator
  • midas setup writes /etc/profile.d/midas.sh (macOS: /etc/paths.d/midas) and links /usr/local/bin/midas for sudo where /usr/local is writable. It does this only when run as the installed /var/lib/midas/bin/midas.
  • The messages shown when the hub can't be reached now name the checks: the handshake's age, ip route get, and the hub's address versus this machine's own.
  • docs/node.md: a "Check the tunnel" section, NetworkManager's keyring and route traps, keepalive.
- `midas setup` writes `/etc/profile.d/midas.sh` (macOS: `/etc/paths.d/midas`) and links `/usr/local/bin/midas` for sudo where `/usr/local` is writable. It does this only when run as the installed `/var/lib/midas/bin/midas`. - The messages shown when the hub can't be reached now name the checks: the handshake's age, `ip route get`, and the hub's address versus this machine's own. - docs/node.md: a "Check the tunnel" section, NetworkManager's keyring and route traps, keepalive.
The owner of a build machine had to type /var/lib/midas/bin/midas every
time: node.md's PATH line went to ~/.bashrc, which a zsh user never reads,
and sudo's secure_path never holds /var/lib/midas/bin anyway.

Setup now writes /etc/profile.d/midas.sh (macOS: /etc/paths.d/midas) and
links /usr/local/bin/midas for sudo, where /usr/local is writable; on
SteamOS it is not, and setup says to keep the full path with sudo. Only the
installed binary does this, so deploy.sh's temporary copy and a build
directory link nothing, and the hub's own /usr/local/bin/midas is left be.

The hub-unreachable messages now name the three checks that found today's
fault on the Deck: a stale handshake after its public address changed, a
route via wlan0 instead of the tunnel, and its own address given as --hub.
A NetworkManager tunnel keeps its key in the user's keyring, so it cannot
come up at boot or from sudo, and its address carries noprefixroute, so a
reconnect can leave it up with no route into it. Both happened on the Deck
on 2026-10-13, after its public address changed with no keepalive set.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jeroen/midas!1
No description provided.