feat: establish auth listing and image vertical slices

Includes MFA-capable authentication, session and CSRF security, password recovery, listing lifecycle and ownership rules, inventory image metadata, local ImageStorage, migrations, tests, and implementation status documentation. Verification: npm test (62 passing) and integration suite (14 passing).
This commit is contained in:
2026-09-08 17:32:03 -04:00
commit c728016dec
128 changed files with 9788 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
CREATE TABLE "mfa_methods" (
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"user_id" uuid NOT NULL REFERENCES "users"("id"),
"type" text NOT NULL,
"secret_ciphertext" text NOT NULL,
"name" text NOT NULL,
"is_enabled" boolean DEFAULT false NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"last_used_at" timestamp with time zone,
"disabled_at" timestamp with time zone
);
CREATE INDEX "mfa_methods_user_id_index" ON "mfa_methods" ("user_id");