mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 07:05:24 +00:00
feat: finish the tailscale plugin, including SSH auth (B3)
This commit is contained in:
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"]);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user