release-2.9.1 (#1557)

* fix(sso): send the PKCE verifier for GitHub login (#1534)

* fix(remote-desktop): clip cursor overflow without disabling zoom (#1535)

* test(remote-desktop): preserve sessions beyond one hour (#1536)

* fix(hosts): expose controls for overflowing editor tabs (#1537)

* fix(hosts): expose controls for overflowing editor tabs

* test(hosts): mock resize observation in admin panel tests

* fix(status): skip TCP probes while host sessions are active (#1538)

* fix(database): batch session activity persistence (#1539)

* docs(api): describe cookie and API key authentication (#1540)

* fix(snippets): repair missing note column on SQLite upgrades (#1541)

* fix(docker): retain stored SSH credential association (#1543)

* fix(file-manager): render transfer toasts without plugin hooks (#1546)

* feat(hosts): keep compact row actions inline (#1547)

* fix(auth): allow retrying unavailable second-factor interfaces (#1549)

* fix(auth): reject unresolved legacy identity provisioning (#1550)

* fix(desktop): ship the plugin SDK inside Mac App Store builds (#1551)

* fix(tmux): pass full session info to the terminal's session picker (#1552)

The tmux.sessions service reduced detected sessions to bare names, but the
picker reads session.name, so every entry rendered blank and selecting one
sent an empty name, which created a new session instead of attaching.

* fix(ssh): read force keyboard-interactive as a boolean when resolving hosts (#1553)

The column holds the text "true"/"false", and the resolver passed it
through as-is. The string "false" is truthy, so the password provider
treated every saved host as forced keyboard-interactive and left the
password out. Jump hops are built straight from the resolved host, so a
password hop whose server doesn't offer keyboard-interactive failed with
"All configured authentication methods failed".

* fix(database): batch database saves for bulk host writes (#1554)

* fix(database): yield to the event loop between database saves

Each SQLite save serializes and encrypts the whole database into new
buffers, which V8 only releases once the event loop turns. Boot
migrations and bulk host import write plugin settings per host and per
key in an awaited loop, so hundreds of full copies piled up and the
container ran out of memory.

* fix(database): save once per bulk host write instead of once per row

On SQLite every repository write force-saves the whole database. Boot
plugin data migrations, host defaults materialization and the bulk
host routes write one row per host per setting, so they serialized and
encrypted the full database hundreds of times in a row.

DatabaseSaveTrigger.batched wraps a function so force saves made while
it runs collapse into a single save when it finishes. Nested scopes fold
into the outer one, and work that outlives its scope saves normally.

* feat(hosts): add instance-wide predefined tag suggestions (#1548)

* feat(hosts): add shared predefined tag suggestions

* style(hosts): format tag catalog routes

* test(database): advance fake timers past the save yield (#1555)

* fix(i18n): complete Simplified Chinese core and plugin translations (#1542)

* fix(i18n): complete Chinese onboarding and navigation labels

* fix(i18n): translate remaining Chinese core and plugin interfaces

* fix(i18n): translate host editor tab overflow controls

* fix(i18n): use consistent Chinese fleet terminology

* fix(i18n): localize hardcoded controls and plugin views

* fix(i18n): translate built-in homepage widget catalog

* test(homepage): follow translated timezone placeholder

* fix(i18n): translate plugin-provided homepage widgets

* fix(i18n): localize feature settings section titles

* fix: 2.8 oidc accounts unable to sign in after upgrading (#1381)

* fix: plugins losing the saved ssh login when copying a host (#1391)

* fix: fleets, proxmox and automations not getting the host sudo password

* fix: host imports running a defaults pass and metrics restart per host (#1384)

* fix: high cpu from status probes and full database saves on every sample (#1300)

* fix: user data export freezing the server (#1393)

* fix: op:// secret references rejected as ssh keys on credentials (#1394)

* fix: slow file deletes from the trash lookups on every delete (#1390)

* fix: add openapi docs and error handling to host tag routes

* test: compare download stream buffers directly so it stops timing out

* chore: drop em dash from host row comment

* chore: update release notes for 2.9.1

* fix: restore space to add host tags and redesign predefined tags editor

* fix: host key silently accepted when the host is missing from the database (#1397)

* fix: clearer host login failed status label and fix its translations (#1396)

* chore: add host key and status label fixes to release notes

* fix: sso and ldap provider dialogs overflowing the screen and using mismatched toggles

* chore: increment ver

* fix(audit): store plugin entries with no acting user as a null user_id (#1556)

Plugin audit entries written outside a request used the literal "system"
as user_id. That column references users.id, so the insert was refused
(Postgres logs it as an FK violation) and the entry was silently dropped.
Write null instead and keep "system" / plugin:<id> in username.

* chore: add sso/ldap dialog and audit log fixes to release notes

* fix: tunnels and host settings missing from shared hosts on desktop

* fix: remote desktop logins missing from shared hosts on desktop

* fix: simplify host status to online/offline and keep it live without a refresh

* chore: sync Crowdin translations for 2.9.1

---------

Co-authored-by: ZacharyZcR <zacharyzcr1984@gmail.com>
This commit is contained in:
Luke GustafsonandZacharyZcR authored and GitHub committed 2026-10-04 15:11:41 -05:00
1 parent 5786eaccbb
commit 6b708106e1
912 files changed
+14220 -2200

No files matched your search

+14
View File
@@ -207,5 +207,19 @@
"remove": "Remove schedule",
"loadFailed": "Could not refresh maintenance status. Changes are disabled until it can be loaded.",
"loading": "Loading maintenance status…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Verwyder skedule",
"loadFailed": "Kon nie onderhoudstatus verfris nie. Veranderinge is gedeaktiveer totdat dit gelaai kan word.",
"loading": "Laai onderhoudstatus…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "إزالة الجدول الزمني",
"loadFailed": "تعذر تحديث حالة الصيانة. التغييرات معطلة حتى يتم تحميلها.",
"loading": "جارٍ تحميل حالة الصيانة…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Премахване на графика",
"loadFailed": "Не можа да се обнови състоянието на поддръжката. Промените са деактивирани, докато не може да бъде заредено.",
"loading": "Зареждане на състоянието на поддръжката…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "সময়সূচী অপসারণ করুন",
"loadFailed": "রক্ষণাবেক্ষণের অবস্থা রিফ্রেশ করা যায়নি। লোড না হওয়া পর্যন্ত পরিবর্তনগুলি নিষ্ক্রিয় থাকবে।",
"loading": "রক্ষণাবেক্ষণের অবস্থা লোড হচ্ছে…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Elimina la programació",
"loadFailed": "No s'ha pogut actualitzar l'estat del manteniment. Els canvis estan desactivats fins que es pugui carregar.",
"loading": "S'està carregant l'estat del manteniment…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Odebrat plán",
"loadFailed": "Nepodařilo se obnovit stav údržby. Změny jsou zakázány, dokud nebude možné jej načíst.",
"loading": "Načítání stavu údržby…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Fjern tidsplan",
"loadFailed": "Vedligeholdelsesstatus kunne ikke opdateres. Ændringer er deaktiveret, indtil den kan indlæses.",
"loading": "Indlæser vedligeholdelsesstatus…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Zeitplan entfernen",
"loadFailed": "Der Wartungsstatus konnte nicht aktualisiert werden. Änderungen sind deaktiviert, bis die Daten geladen werden können.",
"loading": "Lade Wartungsstatus…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Κατάργηση χρονοδιαγράμματος",
"loadFailed": "Δεν ήταν δυνατή η ανανέωση της κατάστασης συντήρησης. Οι αλλαγές είναι απενεργοποιημένες μέχρι να είναι δυνατή η φόρτωσή τους.",
"loading": "Φόρτωση κατάστασης συντήρησης…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Eliminar horario",
"loadFailed": "No se pudo actualizar el estado de mantenimiento. Los cambios están deshabilitados hasta que se puedan cargar.",
"loading": "Cargando estado de mantenimiento…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Poista aikataulu",
"loadFailed": "Ylläpidon tilaa ei voitu päivittää. Muutokset on poistettu käytöstä, kunnes ne voidaan ladata.",
"loading": "Ladataan ylläpitotilaa…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Supprimer le planning",
"loadFailed": "Impossible d'actualiser l'état de maintenance. Les modifications sont désactivées jusqu'à ce que le chargement soit possible.",
"loading": "État de la maintenance en cours de chargement…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "הסר את לוח הזמנים",
"loadFailed": "לא ניתן היה לרענן את סטטוס התחזוקה. השינויים מושבתים עד שניתן יהיה לטעון אותו.",
"loading": "טוען סטטוס תחזוקה…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "अनुसूची हटाएँ",
"loadFailed": "रखरखाव की स्थिति को रीफ़्रेश नहीं किया जा सका। जब तक यह लोड नहीं हो जाता, तब तक परिवर्तन अक्षम रहेंगे।",
"loading": "रखरखाव की स्थिति लोड हो रही है…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Ütemezés eltávolítása",
"loadFailed": "Nem sikerült frissíteni a karbantartási állapotot. A változtatások le vannak tiltva, amíg be nem töltődik.",
"loading": "Karbantartási állapot betöltése…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Hapus jadwal",
"loadFailed": "Status pemeliharaan tidak dapat diperbarui. Perubahan dinonaktifkan hingga status dapat dimuat.",
"loading": "Memuat status pemeliharaan…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Rimuovere la pianificazione",
"loadFailed": "Impossibile aggiornare lo stato della manutenzione. Le modifiche sono disabilitate fino al caricamento.",
"loading": "Caricamento dello stato di manutenzione…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "スケジュールを削除",
"loadFailed": "メンテナンス状況を更新できませんでした。読み込みが完了するまで、変更は無効になっています。",
"loading": "メンテナンスステータスをロード中…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "일정을 삭제합니다",
"loadFailed": "점검 상태를 새로 고칠 수 없습니다. 점검 상태가 로드될 때까지 변경 사항이 적용되지 않습니다.",
"loading": "유지보수 상태 로딩 중…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Schema verwijderen",
"loadFailed": "De onderhoudsstatus kon niet worden vernieuwd. Wijzigingen zijn uitgeschakeld totdat de status kan worden geladen.",
"loading": "Onderhoudsstatus laden…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Fjern tidsplan",
"loadFailed": "Kunne ikke oppdatere vedlikeholdsstatusen. Endringer er deaktivert inntil den kan lastes inn.",
"loading": "Laster inn vedlikeholdsstatus…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Usuń harmonogram",
"loadFailed": "Nie można odświeżyć statusu konserwacji. Zmiany są zablokowane do czasu ich załadowania.",
"loading": "Ładowanie statusu konserwacji…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Remover agendamento",
"loadFailed": "Não foi possível atualizar o status de manutenção. As alterações estão desativadas até que o status seja carregado.",
"loading": "Carregando status de manutenção…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Remover agendamento",
"loadFailed": "Não foi possível atualizar o estado de manutenção. As alterações estão desativadas até que o estado seja carregado.",
"loading": "A carregar o estado de manutenção…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Eliminați programul",
"loadFailed": "Nu s-a putut actualiza starea de întreținere. Modificările sunt dezactivate până când pot fi încărcate.",
"loading": "Se încarcă starea de întreținere…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Удалить расписание",
"loadFailed": "Не удалось обновить статус технического обслуживания. Изменения отключены до тех пор, пока не будет загружена соответствующая информация.",
"loading": "Статус технического обслуживания загрузки…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Уклони распоред",
"loadFailed": "Није могуће освежити статус одржавања. Промене су онемогућене док се не учита.",
"loading": "Учитавање статуса одржавања…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Ta bort schema",
"loadFailed": "Kunde inte uppdatera underhållsstatusen. Ändringar är inaktiverade tills den kan läsas in.",
"loading": "Laddar underhållsstatus…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "ลบกำหนดการ",
"loadFailed": "ไม่สามารถรีเฟรชสถานะการบำรุงรักษาได้ การเปลี่ยนแปลงจะถูกปิดใช้งานจนกว่าจะสามารถโหลดได้",
"loading": "กำลังโหลดสถานะการบำรุงรักษา…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Programı kaldır",
"loadFailed": "Bakım durumu yenilenemedi. Yüklenene kadar değişiklikler devre dışı bırakılmıştır.",
"loading": "Bakım durumu yükleniyor…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Видалити розклад",
"loadFailed": "Не вдалося оновити стан обслуговування. Зміни вимкнено, доки його не буде завантажено.",
"loading": "Завантаження статусу технічного обслуговування…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "Xóa lịch trình",
"loadFailed": "Không thể cập nhật trạng thái bảo trì. Các thay đổi bị vô hiệu hóa cho đến khi có thể tải lại.",
"loading": "Đang tải trạng thái bảo trì…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "移除日程",
"loadFailed": "无法刷新维护状态。更改功能已禁用,待状态加载完毕后方可启用。",
"loading": "正在加载维护状态…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
@@ -207,5 +207,19 @@
"remove": "移除行程",
"loadFailed": "無法刷新維護狀態。更改功能已停用,待狀態載入完畢後方可啟用。",
"loading": "正在載入維護狀態…"
},
"ui": {
"sidebar": {
"automations": {
"options": {
"connect": "connect",
"disconnect": "disconnect",
"offline": "offline",
"online": "online",
"failing": "failing",
"recovered": "recovered"
}
}
}
}
}
+1
View File
@@ -17,6 +17,7 @@
"capabilities": [
"hosts:read",
"credentials:use",
"credentials:read",
"ssh:connect",
"db:own",
"events:core",
@@ -528,7 +528,7 @@ export async function createAutomationRepository(
.set({ lastRunAt: run[0].startedAt, lastRunStatus: input.status })
.where(eq(automations.id, run[0].automationId));
}
await db.persist();
await db.persist({ lazy: true });
},
async listRuns(
@@ -630,7 +630,7 @@ export async function createAutomationRepository(
.where(lt(runs.startedAt, cutoff));
if (old.length === 0) return 0;
await drizzle.delete(runs).where(lt(runs.startedAt, cutoff));
await db.persist();
await db.persist({ lazy: true });
return old.length;
},
@@ -368,8 +368,12 @@ export function StepBlock({
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectItem value="connect">connect</SelectItem>
<SelectItem value="disconnect">disconnect</SelectItem>
<SelectItem value="connect">
{t("ui.sidebar.automations.options.connect")}
</SelectItem>
<SelectItem value="disconnect">
{t("ui.sidebar.automations.options.disconnect")}
</SelectItem>
</SelectContent>
</Select>
<Input
@@ -250,13 +250,21 @@ export function TriggerCard({
<SelectContent>
{trigger.kind === "host_status" ? (
<>
<SelectItem value="offline">offline</SelectItem>
<SelectItem value="online">online</SelectItem>
<SelectItem value="offline">
{t("ui.sidebar.automations.options.offline")}
</SelectItem>
<SelectItem value="online">
{t("ui.sidebar.automations.options.online")}
</SelectItem>
</>
) : (
<>
<SelectItem value="failing">failing</SelectItem>
<SelectItem value="recovered">recovered</SelectItem>
<SelectItem value="failing">
{t("ui.sidebar.automations.options.failing")}
</SelectItem>
<SelectItem value="recovered">
{t("ui.sidebar.automations.options.recovered")}
</SelectItem>
</>
)}
</SelectContent>
@@ -89,7 +89,7 @@ describe("host maintenance", () => {
await service.tick();
expect(server.mock.notifications).toHaveLength(0);
server.mock.hostStatuses.set(1, {
status: "reachable",
status: "online",
lastChecked: "2026-01-01T13:21Z",
});
await service.tick();
@@ -0,0 +1,17 @@
import { describe, expect, it } from "vitest";
import fs from "node:fs";
import path from "node:path";
// Elevated commands read the host's sudo password, which core only hands to
// a plugin holding credentials:read.
describe("sudo password access", () => {
it("declares credentials:read", () => {
const manifest = JSON.parse(
fs.readFileSync(
path.resolve(import.meta.dirname, "../../manifest.json"),
"utf8",
),
);
expect(manifest.capabilities).toContain("credentials:read");
});
});