Commit Graph

31 Commits

Author SHA1 Message Date
c9b38dc6ab fix(security): resolve audit findings — secrets, env contract, migrations
Removes hardcoded fallback secrets and makes a misconfigured deploy fail
loudly instead of silently falling back to development defaults.

- Remove insecure JWT fallback secrets (messages.module, configuration)
- Remove the 'default-secret' fallback for the 2FA TOTP encryption key and
  allow a dedicated TWO_FACTOR_ENCRYPTION_KEY so rotating JWT_SECRET no
  longer locks out every 2FA user (see docs/2fa-key-rotation.md)
- Require EMAIL_API_URL; drop the hardcoded vendor email endpoint
- Drive WebSocket CORS from CORS_ORIGINS instead of origin:'*'
- Load .env before any Nest module is imported (src/load-env.ts). Decorator
  arguments evaluate at import time, so the gateway previously froze its CORS
  config to the localhost fallback even when CORS_ORIGINS was set
- Add boot-time env validation: missing required vars, weak JWT_SECRET, and
  inverted access/refresh token lifetimes now abort startup
- Enable Redis TLS certificate verification
- Require ADMIN_EMAIL/ADMIN_PASSWORD for the seed; remove the published
  default super-admin credentials and stop printing them
- Add the initial Prisma migration and stop gitignoring prisma/migrations
- Make .env.example an accurate configuration contract (admin bootstrap,
  REDIS_TLS, S3_ENDPOINT, 2FA key, Firebase path; drop the dead SMTP block)
- Add handover documentation: architecture, ER model, sequence and data-flow
  diagrams, 2FA key rotation runbook

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 16:03:08 +05:30
pradeepkumar
625d1d669a refactor: comment out agentTypeSections in seed script to prevent unintended application during bootstrap 2026-04-15 14:00:27 +05:30
pradeepkumar
d97657b475 refactor: remove auto-seeding logic for agent-type-specific sections to preserve admin customizations 2026-04-15 13:41:29 +05:30
pradeepkumar
e6e46fe616 fix 2026-04-15 13:40:22 +05:30
pradeepkumar
e434863b88 feat: add personal tagline field to seed data and update subsequent field sort orders 2026-04-14 10:11:03 +05:30
pradeepkumar
0b2bcd285a feat: add Preferred Work Environment field and update subsequent field sort orders in seed script 2026-04-14 09:07:53 +05:30
pradeepkumar
756e803384 feat: add Real Estate Agency & Designation field group and update subsequent sort orders in seed script 2026-04-14 07:54:20 +05:30
pradeepkumar
2e8c097b7c fix: remove unnecessary double quotes from hero section headline in seed data 2026-04-13 23:31:36 +05:30
pradeepkumar
e1a364dc5b chore: remove description and helper text from seed data content 2026-04-12 16:18:35 +05:30
pradeepkumar
b66b5c963b feat: add script and data to update state and city location options for CO, NE, ND, and SD 2026-04-12 00:01:21 +05:30
pradeepkumar
bebff19052 chore: update ctaButtonText in seed data to See All 2026-04-11 22:14:07 +05:30
pradeepkumar
e05a76a94f fix: update landing page topProfessionals section content text 2026-04-11 22:10:51 +05:30
pradeepkumar
a435a3d25e feat: update testimonials content and implement automatic CMS record updates during seeding 2026-04-11 21:44:38 +05:30
pradeepkumar
9c270a942c feat: add featured agents data to the Prisma seed. 2026-03-23 11:25:56 +05:30
pradeepkumar
31439c3b06 feat: Add SUPER_ADMIN role with dedicated admin user management and updated access controls for existing admin features. 2026-03-20 17:05:40 +05:30
pradeepkumar
82f1225e0a feat: Populate directionsUrl in seed data with a Google Maps URL. 2026-03-19 13:50:38 +05:30
pradeepkumar
7260a9ca93 fix 2026-03-19 13:32:49 +05:30
pradeepkumar
c3a3df704e feat: Implement real-time message delivery for conversations via WebSocket integration and update admin seed email. 2026-03-18 16:49:13 +05:30
pradeepkumar
b75c931393 feat: Add fallback default for stripePriceId in seed data. 2026-03-07 10:11:05 +05:30
pradeepkumar
d1e4e12510 feat: Implement Stripe integration for subscription management, including new services, controllers, Prisma models, and webhook handling. 2026-03-07 10:09:50 +05:30
pradeepkumar
49bd08c5fe feat: Implement CMS module with API endpoints, data model, and initial seeding for landing page content. 2026-02-22 21:52:16 +05:30
pradeepkumar
4421a8fcbf feat: Update Prisma seed script to populate missing options, validation, and UI config for existing profile fields. 2026-02-01 23:20:26 +05:30
pradeepkumar
9c7e21e1ad fix 2026-01-24 22:31:12 +05:30
pradeepkumar
4397075715 fix 2026-01-24 22:19:26 +05:30
pradeepkumar
3b76a5aa50 fix 2026-01-24 21:39:14 +05:30
pradeepkumar
06dc78d57e fix 2026-01-24 21:36:39 +05:30
pradeepkumar
8dc8a961ab feat: Add 'Expertise' profile section to seed data, extend JWT token expiration times, and allow agents to retrieve profile sections by type. 2026-01-24 20:36:21 +05:30
pradeepkumar
7d7eb1ac31 feat: Introduce new profile sections and fields with detailed configurations and validation rules. 2026-01-24 15:32:54 +05:30
pradeepkumar
43b422a81e feat: Introduce default profile sections and fields, updating schema with isSystem and isSearchableOnly properties. 2026-01-24 12:49:25 +05:30
pradeepkumar
3df8ea067a feat: Introduce agent types module, replacing categories and verification modules, and updating agent-related DTOs, services, and Prisma schema. 2026-01-20 12:16:01 +05:30
pradeepkumar
1812fd3c98 feat: Implement Prisma PG adapter, refactor user and agent profiles in schema, and add database seeding. 2025-12-19 01:15:19 +05:30