0002_accounts.sql
This file
Path
apps/platform/migrations/0002_accounts.sql
11 lines · 499 bytes · SQL
Last changed by
Drop the private build plan's citations from the code, and fail verify if one comes backoscabrielbefore adoptiona29cef6
History of this fileTake it
The walk stopped after 200 commits: lines older than 678c8b8 point at it.
Drop the private build plan's citations from the code, and fail verify if one comes backoscabrielbefore adoptiona29cef6
line 1why, one step back1-- Platform accounts: a handle and a password hash, nothing else.Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8
lines 2–11why, one step back2-- `handle_key` is the handle lowercased, the rule protocol's `sameHandle`3-- compares by, so two handles that differ only in case are one account and4-- a racing second sign-up fails on the key. `password_hash` is5-- `pbkdf2-sha256$<iterations>$<salt>$<hash>`; no password is ever stored.6CREATE TABLE accounts (7 handle_key TEXT PRIMARY KEY,8 handle TEXT NOT NULL,9 password_hash TEXT NOT NULL,10 created_at INTEGER NOT NULL11);