sync: update from private repo (e7c4a56)
CI / build-and-test (push) Has been cancelled

This commit is contained in:
oss-sync
2026-06-09 09:43:05 +00:00
parent 483464597a
commit 2bab882d08
8 changed files with 125 additions and 12 deletions
+7
View File
@@ -246,6 +246,13 @@ export function createCoreServer(opts: CoreServerOptions): {
);
}
const authActive = authUsable;
if (!authActive) {
// No-auth single-user mode: per-user rows are owned by the synthetic
// 'local' id, and several tables FK to users(id) (ssh_user_deks,
// browser_session_profiles, …). Seed the 'local' user row so those inserts
// succeed — without it, creating an SSH connection failed with create_failed.
repo.ensureLocalUser();
}
let authenticateUpgrade: import('./auth.js').UpgradeAuthChecker | undefined;
if (authActive) {