feat: deliver policy-driven Git Validator 2.0

This commit is contained in:
NuklearRabbit
2026-07-29 18:24:27 +02:00
parent 7b05c953b6
commit a0733875c4
18 changed files with 502 additions and 133 deletions
+5 -5
View File
@@ -288,7 +288,7 @@ function createUnraidPreflightMethods({
connectionCapabilities = connection.capabilities || {};
checks.push({
id: "ssh",
label: "Desktop → Unraid SSH",
label: "Desktop Unraid SSH",
status: "pass",
detail: `${server.username}@${server.host}:${server.port}`,
});
@@ -327,7 +327,7 @@ function createUnraidPreflightMethods({
} catch (error) {
checks.push({
id: "ssh",
label: "Desktop → Unraid SSH",
label: "Desktop Unraid SSH",
status: "fail",
detail: error.message,
});
@@ -349,7 +349,7 @@ function createUnraidPreflightMethods({
const access = await this.probeServerGitAccess({ repository, profile, server });
checks.push({
id: "server-git-access",
label: "Unraid → Gitea read access",
label: "Unraid Gitea read access",
status: access.ready ? "pass" : "fail",
detail: access.ready
? `Read-only deploy key verified${access.remoteSha ? ` at ${access.remoteSha.slice(0, 7)}` : ""}.`
@@ -359,7 +359,7 @@ function createUnraidPreflightMethods({
});
} else checks.push({
id: "transfer-path",
label: "Desktop → Unraid transfer",
label: "Desktop Unraid transfer",
status: "pass",
detail: "Files are copied over the configured server connection. No Gitea credential is required on Unraid.",
});
@@ -387,7 +387,7 @@ function createUnraidPreflightMethods({
id: `write-path:${target.id}`,
label: target.label,
status: "fail",
detail: `${target.path} · owner ${target.owner || "unknown"}:${target.group || "unknown"} · mode ${target.mode || "unknown"}. ${target.detail}`,
detail: `${target.path} · owner ${target.owner || "unknown"}:${target.group || "unknown"} · mode ${target.mode || "unknown"}. ${target.detail}`,
repairAction: "repair-deployment-write-access",
repairLabel: "Fix write access",
});