A private deal room for a Dubai brokerage: SPAs and KYC copies encrypted, and every view logged.
- Client
- Velmora (demo brand)
- Sector
- Real estate brokerage · Dubai sales and leasing
- Timeframe
- Live October 2026
- Engagement
- Custom client portal on its own subdomain: scope, security design, build and launch
A real estate deal room is a private portal that keeps each closed sale and rental with its SPA, tenancy contract and KYC documents. For a Dubai brokerage, I built one that encrypts every file in the browser before upload. Each sign-in needs a password and an authenticator code. Admins add and edit deals, senior management views and downloads, and every sign-in, view and download is logged.
The situation
A Dubai brokerage closing sales and rentals had no single home for the paperwork those deals produce.
Signed SPAs, Form Fs, title deeds, tenancy contracts and Ejari certificates sat wherever they first arrived: an agent’s WhatsApp, an email thread, a Downloads folder. The KYC files were the bigger worry. Passport, Emirates ID and visa copies are personal data, and they sat on personal phones and in apps the company did not control. Finding last quarter’s SPA meant digging through chats. Knowing which commissions were still pending meant building a spreadsheet. The screens on this page show Velmora, a fictional demo brand, with invented deals; the brokerage stays unnamed.

The move
- 01
Scope it narrow. Before any code, the brokerage and I agreed three decisions. Documents live in private storage, separate from the database. Every sign-in needs a password and an authenticator code. Admins edit; senior management views and downloads. The portal holds closed and closing deals only, while leads and pipeline stay in the CRM.
- 02
Encrypt before upload. The browser encrypts every file with AES-256-GCM before it leaves the device. Only those encrypted bytes reach the private storage bucket. Each file’s key is stored wrapped by a master key held only in the server environment. A copied database or bucket on its own reveals nothing.
- 03
Lock the door, then log the room. Sign-in needs a company email address, a password and a one-time authenticator code. Five wrong passwords lock the account for 15 minutes, and sessions end after 30 idle minutes. Every sign-in, view, upload and download goes to an activity log that cannot be edited from the portal. Last, every screen works on a phone, because that is where agents are when the client’s passport is in front of them.

What changed
States of the system, not metrics. These are things that either were or were not true, so they can be stated without claiming a result.
| After | ||
|---|---|---|
| Where documents live | WhatsApp, email attachments, personal laptops | One private store, attached to the deal they belong to |
| Who can open a KYC copy | Anyone with the chat or the inbox | Signed-in staff with the right role, on company email only |
| Sign-in | Whatever each app used | Password plus authenticator code, every time |
| What storage holds | Readable files | Encrypted bytes only, keys wrapped separately |
| Commission status | Rebuilt in a spreadsheet when asked | Received or pending, on the dashboard |
| Record of access | None | Every sign-in, view and download, with time and IP address |
| Removing a file | Deleted, or never found | Hidden from the deal, kept for record-keeping |
What shipped
- Deals dashboard: closed sales, rentals and commission received or pending
- One record per deal: property, parties, title deed number and documents
- AES-256-GCM encryption in the browser, into private Vercel Blob storage
- Password plus authenticator (TOTP) sign-in, company emails only
- Two roles: admins edit, senior management views and downloads
- Activity log of every sign-in, view, upload and download
- Phone layout with Take photo for KYC copies

What this build was held to, and how each item was checked.
- End-to-end checks
- 41 of 41 passing
- Automated browser test suite (Playwright), run before launch
- Readable files in storage
- None
- A test reads the stored bytes and confirms no plain-text markers
- Download integrity
- Byte for byte
- A test compares the decrypted download with the original upload
- Wrong-password lockout
- 5 tries, 15 min
- Server-side rule, checked in testing
- Session limits
- 30 min, 12 h
- Server-side session rules: idle limit, then a hard limit
- Sideways scrolling on phones
- None
- Every portal page tested at 390 px wide
Each row is a property of the system, checked by a test or set in server code. No usage figure yet: one gets added after 60 to 90 days of use, with its source. Every screen shows Velmora, a fictional demo brand, with invented deals and people. The full write-up follows below.
Questions about the private deal room
Is the deal room end-to-end encrypted?
Can senior management edit or delete deals?
What happens when a document is removed?
Does a deal room replace a CRM?
Why run it on a subdomain instead of inside the main website?
What does the activity log record?
Can agents add KYC documents from a phone?
Next project
Relegance Properties (in-house)
A Dubai brokerage website in English and Arabic, with a page for each of twelve new launches.
Keeping KYC copies in WhatsApp? Tell me what your team stores and where it lives today.
hello@kuraib.site