Documentation
This case study details the discovery and automated staging of orphaned records during our database migration, illustrating our 3-layer forensic mining pipeline in action.
This case study details the discovery and automated staging of orphaned records during our database migration, illustrating our 3-layer forensic mining pipeline in action.
AppSheet Mislink Case Study
A forensic case study investigating how AppSheet mislinked data records, causing incorrect property-owner associations, and the systematic fix applied to prevent recurrence.
Repository Code
The live codebase implementation for this specification sits within the following repository folder:
💡 ELI5 Summary
This case study details the discovery and automated staging of orphaned records during our database migration, illustrating our 3-layer forensic mining pipeline in action.
Architecture Details
The security architecture implements a defence-in-depth model with perimeter authentication, internal authorisation, data encryption, and audit logging at every layer. Access is gated through two independent layers: Tailscale identity verification at the network level, followed by role-based access control within the application.
- Core Component: Security gate guard and RBAC enforcement
- Data Flow: Request → Tailscale Gate → Authentication → Authorisation → Audit Log → Response
- Integration Points: Tailscale ACLs, Supabase Row-Level Security, session tokens, and audit log sinks
Configuration Reference
Key configuration parameters for this system:
| Parameter | Type | Default | Description |
|---|---|---|---|
| gate_enabled | boolean | true | Enable Tailscale gate guard for all pages |
| allowed_hosts | string[] | dev.estateaigents.com, localhost | Whitelist of permitted hostnames |
| session_ttl_minutes | integer | 60 | Session token time-to-live |
Figure 2: Security architecture — component interaction and data flow.
Troubleshooting
| Issue | Cause | Resolution |
|---|---|---|
| 401 Unauthorized on tailnet | Tailscale not running or wrong node | Verify Tailscale is connected and node is authorised |
| Gate guard redirect loop | Hostname not in allowed_hosts list | Add hostname to the gate guard whitelist |
This component is part of the RAIA (Real estate Artificial Intelligence Agent) platform mono-repo. Implementation details, API contracts, and integration tests are available in the repository.