From 1921937bee59cb2eaf6eb1fdbe85e388f6068515 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 1 Aug 2026 13:24:38 +0000 Subject: [PATCH] fix(agent-health): vault token fallback + strix-server service name --- scripts/agent-health-check.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/agent-health-check.py b/scripts/agent-health-check.py index 3f04c14..25261c2 100755 --- a/scripts/agent-health-check.py +++ b/scripts/agent-health-check.py @@ -49,7 +49,7 @@ AGENTS = { GPU_HOSTS = { "gpu-rtx3090 (.8)": {"host": "192.168.68.8", "port": 8080, "service": "llama-server"}, "gpu-rtx5070 (.110)": {"host": "192.168.68.110", "port": 8080, "service": "llama-server"}, - "gpu-strixhalo (.15)": {"host": "192.168.68.15", "port": 8080, "service": "ornith-server"}, + "gpu-strixhalo (.15)": {"host": "192.168.68.15", "port": 8080, "service": "strix-server"}, } FAIL = [] @@ -57,6 +57,13 @@ FAIL = [] INFISICAL_TOKEN = os.environ.get("INFISICAL_TOKEN") INFISICAL_API_URL = os.environ.get("INFISICAL_API_URL", "https://vault.sysloggh.net") +# Fallback: if no env token, read the shared vault token file +if not INFISICAL_TOKEN: + _token_path = os.path.expanduser("~/.infisical-token") + if os.path.isfile(_token_path): + with open(_token_path) as _f: + INFISICAL_TOKEN = _f.read().strip() + # ── Helpers ────────────────────────────────────────────────────────── def ssh(host, cmd, user="root"):