Who can write what
Authoritative checks live in authenticated server code. RLS is defense in depth. Do not allow broad anon writes. Use the service role only for trusted admin or system jobs—never in the browser.
Owner list vs claim: Listing creates a property owned by the signer. Claim (if in cut) attaches ownership after verification—never silent overwrite of an existing owner.
Drafts — privacy and retention
- Drafts are private to the owning account. Different accounts must not load or resume them.
- Persistence uses explicit Save draft / Save changes (per journeys). No silent cross-session autosave unless product later approves it.
- After session expiry: the same account may resume the saved draft; identify any fields that need re-entry.
- Do not put sensitive verification material in durable browser storage (
localStorage/ IndexedDB). Keep it server-side or ephemeral upload only. - Proposed retention: keep an unsaved-to-submit draft until the owner submits, discards, or 90 days of inactivity—then hard-delete the draft and orphan private attachments. Published reviews and properties follow product delete/edit rules, not this draft TTL.
- On submit success: promote to the public (or pending) record and remove or archive the draft so it cannot be re-submitted as new.
Claim verification minimum (if claim in cut)
If owner claim ships in the launch cut, require at least one of:- A document or statement that reasonably ties the claimant to the address/unit (for example lease, tax, utility, or deed excerpt), or
- Out-of-band confirmation through a channel RateMyRental controls (email/domain already on file for that property, or ops-assisted check).
owner_id until resolved. Full vendor KYC / rich verification UX stays out unless separately approved.
If claim is out of cut: owners list/create only; no claim states in the Harbor map.
Public vs authenticated reads
Public reads use the anon key under RLS. Dashboard and mutation paths use the user session.
Freshness
Realtime subscriptions are optional post-launch unless a cut journey requires them.
Critical notifications — only if those events are in cut
Enable only for events that ship. For each enabled critical event:- On-screen durable status on the relevant record/dashboard (source of truth the person can reopen)
- Transactional email fallback when off-screen delivery is approved for that event (provider still TBD in stack docs)
- Support route named in the message (how to get help if delivery fails)
- Missed delivery: keep the durable in-product record; do not treat toast-only as sufficient
Turnstile and abuse surfaces
Verify Cloudflare Turnstile server-side before processing on:- Public / anonymous contact or lead forms
- Auth-adjacent abuse-prone public flows (for example high-volume magic-link or OTP request) as implemented
- Any other unauthenticated write the product adds
No-duplicate submit
- Every Submit / Claim / Publish path is idempotent for a given intent (idempotency key or equivalent server check)
- Interrupted submit: detect whether the prior attempt already succeeded → show the existing result; do not create a second review, property, or claim
- Safe client retry after network failure must not double-write
- One active draft per (user, property, form type) unless product later allows multiples; submitting consumes that draft