Harden demo access and restore clean checks

This commit is contained in:
2026-08-14 16:45:02 -04:00
parent 29d7b498ae
commit 66a53f25f2
10 changed files with 114 additions and 11 deletions
@@ -0,0 +1,17 @@
-- The original App Review credential was committed publicly in migration 0014.
-- Rotate it to an unknown value and invalidate its sessions. Use
-- `bun run demo:provision` with a private DEMO_ACCOUNT_PASSWORD when review
-- access is needed.
UPDATE "beenvoice_user"
SET "password" = '$2b$12$GyM6.bLv2.sZMsWytNz1L.j7pLwc79a55Nww6bSLQJ9OJarqY9oZW',
"updatedAt" = NOW()
WHERE "id" = 'a0000000-0000-4000-8000-000000000001';
UPDATE "beenvoice_account"
SET "password" = '$2b$12$GyM6.bLv2.sZMsWytNz1L.j7pLwc79a55Nww6bSLQJ9OJarqY9oZW',
"updatedAt" = NOW()
WHERE "userId" = 'a0000000-0000-4000-8000-000000000001'
AND "providerId" = 'credential';
DELETE FROM "beenvoice_session"
WHERE "userId" = 'a0000000-0000-4000-8000-000000000001';