feat: finish the tailscale plugin, including SSH auth (B3)

This commit is contained in:
LukeGus committed 2026-09-23 09:41:20 -05:00
1 parent c77301577f
commit d2ff5fc78f
35 files changed
+1251 -526

No files matched your search

@@ -43,12 +43,12 @@ describe("tailscale permissions", () => {
}
});
// No wildcard covered tailscale in SYSTEM_ROLE_DEFAULTS, so nothing is
// granted by default and an admin has to opt in.
it("grants nothing by default", () => {
for (const permission of manifest.manifest?.contributes?.permissions ??
[]) {
expect(permission.defaultRoles).toBeUndefined();
}
// The device list is a full tailnet inventory, so only admins get it by
// default; everyone else needs an explicit grant.
it("grants devices.view to admins by default", () => {
const devicesView = manifest.manifest?.contributes?.permissions?.find(
(permission) => permission.name === "devices.view",
);
expect(devicesView?.defaultRoles).toEqual(["admin"]);
});
});