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

This commit is contained in:
LukeGus committed 2026-10-03 15:31:05 -05:00
1 parent 6f442c5863
commit 5e31642379
8 files changed
+65 -5

No files matched your search

@@ -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");
});
});