Restrict launches to prepared runtimes (Refs #93)
CI / checks (push) Successful in 4m53s

This commit is contained in:
2026-10-09 17:15:15 -04:00
parent f0afd6de67
commit 596b160be3
36 changed files with 347 additions and 116 deletions
+2 -2
View File
@@ -136,7 +136,7 @@ export function nativeLaunchSelection(
throw new Error('The selected host is being removed. Choose another host.');
}
// Only the controller-configured default may be prepared automatically.
// Custom runtimes must already be present in trusted host inventory; a
// Custom runtimes must be reported as admin-prepared by the host agent; a
// launch request must never authorize a registry download.
if (
image !== config.defaultRuntimeImage &&
@@ -144,7 +144,7 @@ export function nativeLaunchSelection(
(host) =>
!host.decommission &&
(automatic ? host.mode === 'active' : host.id === input.hostId) &&
host.inventory.runtimeImages?.includes(image)
host.inventory.preparedRuntimeImages?.includes(image)
)
) {
throw new Error(