cleanup: drop retired auth schema #351

Merged
barrettruth merged 1 commit from issue-308-drop-retired-auth-schema into main 2026-05-11 20:29:58 +00:00
Owner

Problem

Retired app-login schema still advertised password, TOTP, WebAuthn, recovery, session, and legacy OAuth account infrastructure. Setup also prompted for a password that the current single-owner/API-key bootstrap path does not use.

Solution

  • Collapse the active user/auth schema to owner identity, required API key, calendar feed token, and timestamps.
  • Add forward migration 0032_drop_retired_auth_schema to drop retired auth tables/columns and backfill any missing API keys before enforcing api_key as required.
  • Remove password/TOTP runtime stripping and setup/seed/test fixture residue.
  • Preserve integration_configs as the encrypted provider-token storage path for Google sync work.

Verification

  • nix develop --command pnpm vitest run tests/core/schema.test.ts tests/core/auth.test.ts tests/api/auth.test.ts --reporter=verbose
  • nix develop --command just lint
  • nix develop --command just test

Closes #308

## Problem Retired app-login schema still advertised password, TOTP, WebAuthn, recovery, session, and legacy OAuth account infrastructure. Setup also prompted for a password that the current single-owner/API-key bootstrap path does not use. ## Solution - Collapse the active user/auth schema to owner identity, required API key, calendar feed token, and timestamps. - Add forward migration `0032_drop_retired_auth_schema` to drop retired auth tables/columns and backfill any missing API keys before enforcing `api_key` as required. - Remove password/TOTP runtime stripping and setup/seed/test fixture residue. - Preserve `integration_configs` as the encrypted provider-token storage path for Google sync work. ## Verification - `nix develop --command pnpm vitest run tests/core/schema.test.ts tests/core/auth.test.ts tests/api/auth.test.ts --reporter=verbose` - `nix develop --command just lint` - `nix develop --command just test` Closes #308
cleanup: drop retired auth schema
All checks were successful
quality / Test (pull_request) Successful in 18s
quality / Lint (pull_request) Successful in 21s
quality / Build (pull_request) Successful in 42s
7764dc4a2e
barrettruth deleted branch issue-308-drop-retired-auth-schema 2026-05-11 20:29:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/delta!351
No description provided.