openvibers/openvibe.network Commits

Never log seeded OAuth client secrets (they went to the service journal)

OP OpenVibers committed 23 Sept 2026 · 04d6bb86a2 · 1 file, +2 −2


Changes

ddiff --git a/server/db/database.js b/server/db/database.js
iindex 44c8f70f..d8289a87 100644
---- a/server/db/database.js
++++ b/server/db/database.js
@@@ -589,7 +589,7 @@ function initDb(dbPath) {
if (!existing) {
const secret = uuidv4();
insert.run(c.client_id, secret, c.name, JSON.stringify(c.redirect_uris));
-- console.log(`[DB] Seeded OAuth2 client: ${c.client_id} (secret: ${secret})`);
++ console.log(`[DB] Seeded OAuth2 client: ${c.client_id} (secret stored in oauth_clients; read it with sqlite, never from logs)`);
seededAny = true;
continue;
}
@@@ -607,7 +607,7 @@ function initDb(dbPath) {
}
} catch { /* malformed redirect_uris — leave untouched */ }
}
-- if (seededAny) console.log('[DB] ⚠️ Save these client secrets! They are shown only once.');
++ if (seededAny) console.log('[DB] New OAuth2 clients seeded; their secrets are in oauth_clients (they are never logged).');
}
function ensureLocalOauthRedirects() {