feat: refactor rbac/sharing to support new permissions and auth types

This commit is contained in:
LukeGus
2026-07-16 17:36:32 -05:00
parent 552ceefec2
commit 3cc51fe920
72 changed files with 6258 additions and 3761 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ export function registerLogRoutes(
app.get(
"/host-metrics/managers/logs/:id/files",
validateHostId,
managerHandler(runOnHost, "read", "logs_list", async (client) => {
managerHandler(runOnHost, "connect", "logs_list", async (client) => {
const { stdout } = await execCommand(client, LIST_LOGS_CMD, 10000);
const found = stdout
.split("\n")
@@ -62,7 +62,7 @@ export function registerLogRoutes(
validateHostId,
managerHandler(
runOnHost,
"read",
"connect",
"logs_tail",
async (client, host, req) => {
const path = req.query.path as string | undefined;