gigafibre-fsm/apps/client/src
louispaulb 1b7bad1686 security: harden payments/hub auth + remove leaked ERPNext token from source
Auth hardening:
- payments: per-customer JWT authorization on dual-use /payments routes
  (balance/methods/invoice/checkout/setup/portal/toggle-ppa) via authorizeCustomer
  + PAYMENTS_AUTH=enforce; portal retains+sends magic-link JWT (sessionStorage)
- hub: fail-closed Stripe webhook, /accept/doc-pdf IDOR gate, telephony field-name
  guard (SQLi), modem-bridge private-IP guard (SSRF), ALWAYS_ENFORCE expansion

Leaked-credential cleanup (token already rotated in ERPNext):
- de-hardcode ERPNext API token -> env in bulk_submit.py, import_items.py,
  apps/client/deploy.sh; placeholder in apps/ops/infra/nginx.conf (nginx injects)
- ops prod build no longer bakes VITE_ERP_TOKEN (.env.production empty)
- de-hardcode legacy DB password -> env in import_items.py
- gitignore legacy migration PII exports (tsv/json)

Conversations/UI:
- floating (un-docked) conversation panel; full-width mailbox
- per-message real sender from email headers; unified scroll; header spacing
- campaign pre-send review (subject/from/channel), Gmail send channel, clone-as-draft

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 06:17:17 -04:00
..
api security: harden payments/hub auth + remove leaked ERPNext token from source 2026-06-16 06:17:17 -04:00
boot feat: inline editing, search, notifications + full repo cleanup 2026-03-31 07:34:41 -04:00
composables feat(portal): passwordless magic-link login — retire ERPNext /login 2026-04-22 13:25:28 -04:00
config feat: inline editing, search, notifications + full repo cleanup 2026-03-31 07:34:41 -04:00
css refactor: reduce token count, DRY code, consolidate docs 2026-04-13 08:39:58 -04:00
data refactor: reduce token count, DRY code, consolidate docs 2026-04-13 08:39:58 -04:00
layouts refactor: reduce token count, DRY code, consolidate docs 2026-04-13 08:39:58 -04:00
pages feat(portal): passwordless magic-link login — retire ERPNext /login 2026-04-22 13:25:28 -04:00
router feat(portal): passwordless magic-link login — retire ERPNext /login 2026-04-22 13:25:28 -04:00
stores security: harden payments/hub auth + remove leaked ERPNext token from source 2026-06-16 06:17:17 -04:00
utils refactor: major cleanup — remove dead dispatch app, commit all backend code, extract client composables 2026-04-08 17:38:38 -04:00
App.vue refactor: major cleanup — remove dead dispatch app, commit all backend code, extract client composables 2026-04-08 17:38:38 -04:00