You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Owner has no HQ_SECRET_KEY, so the D31 unlock-with-key path was impossible. crypto is now fully keyless: encrypt/decrypt ignore keyHex (params kept so a key can be wired back later); decrypt returns '' for any leftover legacy AES value (unreadable → treated as unset, never fed back as ciphertext). Key-based /admin/migrate-plaintext replaced by keyless /admin/clear-legacy-credentials (clearLegacyCiphertext) which NULLs unreadable pre-D31 values. .env.example marks HQ_SECRET_KEY removed. Ran the cleanup on live data: 76 SMS + 110 client DB passwords were unrecoverable and cleared (usernames intact) — must be re-populated in plaintext (APEX re-import / re-entry). Also fixes the one real defect the D31 adversarial review confirmed: maybeRefreshSmsDaily still had a 'keyHex==="" -> no-op' guard that would silently kill the DAILY auto-refresh once the key was gone (manual refresh masked it). Removed; the daily pull now runs keyless like the manual path. Full suite 416 green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
3 days ago | |
|---|---|---|
| .. | ||
| api.ts | 3 days ago | |
| audit.ts | 3 days ago | |
| auth.ts | 4 days ago | |
| aws-costs.ts | 5 days ago | |
| bounces.ts | 5 days ago | |
| crypto.ts | 3 days ago | |
| db-pg.ts | 5 days ago | |
| db.ts | 3 days ago | |
| gmail.ts | 5 days ago | |
| import-apex-full.ts | 5 days ago | |
| import-apex.ts | 5 days ago | |
| migrate-plaintext.ts | 3 days ago | |
| migrations-pg.ts | 3 days ago | |
| pdf.ts | 4 days ago | |
| rate-limit.ts | 4 days ago | |
| reminder-templates.ts | 5 days ago | |
| repos-amc.ts | 5 days ago | |
| repos-aws.ts | 5 days ago | |
| repos-branches.ts | 5 days ago | |
| repos-clients.ts | 3 days ago | |
| repos-dashboard.ts | 5 days ago | |
| repos-documents.ts | 4 days ago | |
| repos-email.ts | 5 days ago | |
| repos-employees.ts | 4 days ago | |
| repos-interactions.ts | 5 days ago | |
| repos-milestones.ts | 4 days ago | |
| repos-mis.ts | 3 days ago | |
| repos-modules.ts | 3 days ago | |
| repos-payments.ts | 4 days ago | |
| repos-pipeline.ts | 5 days ago | |
| repos-rate-card.ts | 5 days ago | |
| repos-recurring.ts | 5 days ago | |
| repos-reminders.ts | 5 days ago | |
| repos-renewals.ts | 4 days ago | |
| repos-reports.ts | 4 days ago | |
| repos-search.ts | 3 days ago | |
| repos-shares.ts | 5 days ago | |
| repos-sms.ts | 3 days ago | |
| repos-tickets.ts | 3 days ago | |
| scheduler.ts | 3 days ago | |
| seed.ts | 4 days ago | |
| send-reminder.ts | 5 days ago | |
| series.ts | 4 days ago | |
| server.ts | 4 days ago | |
| sms-gateway.ts | 3 days ago | |
| templates.ts | 4 days ago | |