P7 wizard prod wiring fix [grade=B] (PR #2)
CI / Test & Lint (push) Canceled after 0s
CI / Security audit (push) Canceled after 0s

Judge B r1 urn:ump:2swys44kxvulm5flu4skibjq3yfvtnzrsbgkvm2g65ht55i4jtoa. Dogfood finding: wizard mount omitted providers. 3413/3413.
This commit was merged in pull request #2.
This commit is contained in:
sami7777 committed 2026-10-04 11:41:45 +02:00
commit ecdb2fd8ee
1 file changed
+6
+6
View File
@@ -776,8 +776,14 @@ async function createApp() {
asyncHandler: ctx.asyncHandler, asyncHandler: ctx.asyncHandler,
log: ctx.log, log: ctx.log,
})); }));
// Private Network wizard (DC-152). Dogfood finding 2026-10-04: the wizard
// factory needs INSTANCES keyed by mode id; without them every mode
// selection 503s provider_unavailable (unit tests inject their own map).
const p7TailscaleProvider = require('./network/providers/tailscale').createTailscaleProvider(); // eslint-disable-line global-require
const p7WireGuardProvider = require('./network/providers/wireguard').createWireGuardProvider(); // eslint-disable-line global-require
apiRouter.use('/network/wizard', networkWizardRoutes({ apiRouter.use('/network/wizard', networkWizardRoutes({
registry: { getActiveProvider }, registry: { getActiveProvider },
providers: { tailscale: p7TailscaleProvider, wireguard: p7WireGuardProvider },
peopleStore: p7PeopleStore, peopleStore: p7PeopleStore,
accessStore: p7AccessStore, accessStore: p7AccessStore,
asyncHandler: ctx.asyncHandler, asyncHandler: ctx.asyncHandler,