peppa/packages/db/migrations/0001_egov_iin.sql
Асель ed49767c31 PEP-65: eGov QR login through the KazEDS relay (sign.aitu.uz)
Login page and Settings → eGov: relay session with a server-side challenge/nonce, QR + eGov Mobile
deep link, polling, one-shot completion; IIN from the signer's certificate (own DER reader),
users.egov_iin. The relay is trusted (PM decision): no own XMLDSig check. CLI peppa user egov,
mock-kazeds-relay, tests. Dev mode: /_next/static is no-store (Cloudflare cached stale chunks).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 01:14:10 +05:00

3 lines
207 B
SQL

ALTER TABLE `users` ADD `egov_iin` text;--> statement-breakpoint
ALTER TABLE `users` ADD `egov_linked_at` integer;--> statement-breakpoint
CREATE UNIQUE INDEX `users_egov_iin_unique` ON `users` (`egov_iin`);