Skip to content

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
Ninety-second walk-through of the deal room, with fictional data.

In short

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.

Deal room dashboard showing totals for closed sales, closed rentals and commission, above a searchable table of deals in Dubai
The dashboard: totals for closed sales, rentals and commission, then every deal in one searchable table. Demo brand and fictional data.

The move

  1. 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.

  2. 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.

  3. 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.

A single deal record with sale details, property details and parties, above its encrypted documents list
One deal, one record: property, parties, title deed number and every document attached to it. Demo brand and fictional data.

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.

Before and after states for the Velmora (demo brand) engagement.
BeforeAfter
Where documents liveWhatsApp, email attachments, personal laptopsOne private store, attached to the deal they belong to
Who can open a KYC copyAnyone with the chat or the inboxSigned-in staff with the right role, on company email only
Sign-inWhatever each app usedPassword plus authenticator code, every time
What storage holdsReadable filesEncrypted bytes only, keys wrapped separately
Commission statusRebuilt in a spreadsheet when askedReceived or pending, on the dashboard
Record of accessNoneEvery sign-in, view and download, with time and IP address
Removing a fileDeleted, or never foundHidden from the deal, kept for record-keeping

Scroll sideways to compare

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
Two phones showing the deal room: deals as labelled cards, and a deal’s documents with Choose files and Take photo buttons
On a phone, deals become cards, and a KYC copy can be photographed straight into the deal. Demo brand and fictional data.

The scorecard

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?

No, and it does not claim to be. Each file is encrypted in the browser before upload, so the storage layer only ever holds encrypted bytes. The portal’s server can decrypt files because authorised managers have to download them, and every download is logged.

Can senior management edit or delete deals?

No. Management accounts can view deals and open or download documents. Only admins can add or edit deals, upload documents, archive records and manage users. The server checks the role on every action, so hiding a button is never the only control.

What happens when a document is removed?

It disappears from the deal’s list, while the encrypted file and its record are kept. Removal is a soft delete. That suits record-keeping rules that ask a brokerage to hold customer due-diligence files for a set period.

Does a deal room replace a CRM?

No. A CRM tracks leads and pipeline. A deal room holds deals that have closed or are closing, with their documents and commission status. Keeping it that narrow keeps it small enough to secure properly.

Why run it on a subdomain instead of inside the main website?

Isolation. The portal is a separate application and hosting project on its own subdomain. A compromised script on the marketing site has no path into the deal records, and none of the public site’s analytics or advertising scripts load inside the portal.

What does the activity log record?

Every sign-in, failed password, wrong authenticator code and lockout, plus every deal view, edit, upload, document view and download. Each entry carries the time in Dubai and the IP address, and the log cannot be edited from the portal.

Can agents add KYC documents from a phone?

Yes. Every page works at phone width, and a Take photo button opens the camera so a passport or signed page goes straight into the deal record. The file is encrypted on the phone before it uploads.