logicsrc/apps/pwa/src/migrations
Anthony Ettinger bbf640abeb
Some checks failed
CI / build (push) Has been cancelled
Deploy to dev2 / deploy (push) Has been cancelled
test / test (push) Has been cancelled
App grants: one secret sealed to an external app (key hub phase 1) (#286)
* App grants: hand one secret to an external app, sealed to its per-user inbox

Phase 1 of the CoinPay <-> logicsrc key hub (spec: claude.ai/artifact/LAZgAiqWqeLQ14uJ5JpdKb).

- /grant consent page: logicsrc fetches the request manifest from the app's
  own origin over TLS (/.well-known/logicsrc-grant/<nonce>), public hosts
  only, so the page shows a verified origin, not a claimed name
- The browser decrypts with the identity key (as the vault page does) and
  seals with @profullstack/sealed-secrets to the app's inbox; the server
  stores ciphertext + metadata only (app_grant_requests, app_grants)
- Signed Standard Webhooks to the app: grant.delivered / updated / revoked
- Signing keys (wallet, seed, SSH) are refused for apps
- rotate-keys re-seals the new value to every app grant on the old
  fingerprint (resealAppGrants); /apps lists and revokes grants

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* App grants: re-check the webhook host is public on every delivery

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 05:16:37 -08:00
..
001_auth.sql feat(pwa): logicsrc credentials app — real auth + Turso, redesigned; retire commandboard-api credshare 2026-07-13 14:29:29 +00:00
002_credshare.sql feat(pwa): logicsrc credentials app — real auth + Turso, redesigned; retire commandboard-api credshare 2026-07-13 14:29:29 +00:00
003_cli_device_codes.sql fix(cli): point logicsrc login at the real app + add device-code login 2026-07-28 18:07:49 +00:00
004_opencreds_sync.sql vault: autosync the personal vault to the logicsrc account (#226) 2026-10-04 03:45:25 -07:00
005_machine_keys.sql Machine API keys: headless teams pull for deploy boxes and CI (#230) 2026-10-05 23:08:32 -07:00
006_user_profiles.sql feat(pwa): signup profile fields via @profullstack/profile (#256) 2026-10-26 04:24:44 -07:00
007_hardening.sql security: harden credentials app after the 2026-10-27 dev2 incident (CLI 0.10.0) 2026-10-28 16:04:22 +00:00
007_password_resets.sql feat(auth): add password reset and recovery flow 2026-10-29 13:21:27 +00:00
008_keyring.sql feat(keyring): end-to-end encrypted keyring for SSH keys and key pairs, optional cloud sync (CLI 0.12.0) 2026-10-28 18:45:46 +00:00
008_recovery_tokens.sql feat(auth): add password reset and recovery flow 2026-10-29 13:21:27 +00:00
009_keyring_shares.sql feat(keyring): revocable share link for SSH public keys (#267) 2026-10-29 01:57:47 +00:00
010_rotation_runs.sql fix(pwa): migration 010 boot failure on Postgres: no inline SQL comments (#271) 2026-10-29 04:41:42 +00:00
011_rotation_policy.sql feat(rotation): 90-day policy, due runs wait for owner approval (CLI 0.16.0) (#270) 2026-10-29 04:36:26 +00:00
012_auto_rotation_billing.sql feat(rotation): buy automatic rotation, $29 per team per 30 days (CoinPay) (#272) 2026-10-29 05:12:01 +00:00
013_app_grants.sql App grants: one secret sealed to an external app (key hub phase 1) (#286) 2026-11-11 05:16:37 -08:00