Back to the engineering blog
Security• 8 min read•10 August 2026

Designing Rupix Gatekeeper: Offline-Resilient Society Security & Visitor Management

Gated society checkpoints stop working when the internet drops. Here is the offline-resilient design we built for Rupix Gatekeeper: on-device guard verification, resident passcodes that validate without a network, and a visitor log. In development — no society is running it yet.

RL

Rupix Labs Engineering

Systems Architecture Desk • Surat, India

In Indian residential societies and commercial complexes, the security gate is a critical operational bottleneck. During morning rush hours, hundreds of daily maid staff, delivery executives, maintenance contractors, and visiting guests pass through entrance gates within a 60-minute window. Most digital gate management solutions rely entirely on continuous cloud API connectivity — when the guard cabin's broadband fails or cellular signal drops, visitor lines stall, guard verification fails, and security compromises occur.

The Reliability Requirement at Physical Security Gates

A security gate cannot depend on somebody else's request succeeding. The guard cabin's broadband fails, the cellular signal drops, and a verification screen that hangs stops being a UI annoyance and becomes a security problem. Rupix Gatekeeper is therefore architected as an offline-first system: verification is designed to resolve from the guard tablet's own local database, with no network call in the path, whether or not the internet is up. We have not load-tested a deployed gate, so we quote no availability figure.

Dual-Layer Security Architecture: SQLite Local Cache & Supabase Realtime Edge

Gatekeeper keeps a local SQLite database directly on the guard station tablet. It indexes the society's flats, resident emergency contacts, pre-authorised vehicle licence plates and daily domestic staff biometric passes. When a guard types a flat number or scans a guest QR code, verification resolves from that local database — no request leaves the tablet — and an asynchronous background sync engine streams the visitor log to Supabase Realtime when a connection is available.

QR & Passcode Verification That Works Offline

Residents can pre-approve guests, cabs and deliveries from their personal Rupix Guardian or society portal, generating a time-bound 6-digit passcode or a signed QR pass. The passcode is signed with an HMAC using the society's rotational daily secret key. A guard tablet can validate the passcode and flat number on its own, with no network call, so a gate can keep admitting pre-approved visitors during an ISP outage instead of turning them away.

Resident Privacy & Role-Based Access Control (RBAC)

Traditional paper visitor logs expose residents' phone numbers, flat details and visitor names to anyone standing near the guard desk. The Gatekeeper build handles that with role-based access control: a guard tablet shows only the operational detail needed to make a decision (for example, 'Flat 402 — Approved by Resident'), personal mobile numbers are masked, and the full visitor log sits behind an admin login for the society's management committee.

Visual Diagram: Gatekeeper Security Pipeline

The diagram below illustrates the dual-layer architecture: on-device signature validation lets the guard tablet approve an entry on its own, while the cloud sync of the visitor log runs asynchronously.
Rupix Gatekeeper Offline-First Verification Design Resident App Guest Pre-Approval HMAC QR Passcode Guard Station Tablet Local SQLite Cache Offline Verify, On Device Cloud Visitor Log Supabase Realtime Admin Audit Trail Design intent: verification resolves on the tablet, so a dropped connection does not stall the gate. Masking: resident mobile numbers are hidden on guard-station screens.
Rupix Gatekeeper verification design: an on-device SQLite cache and HMAC-signed passes let the guard tablet verify a pass without a network call, with the visitor log synced to the cloud afterwards.

Deployment Status: Built, Not Yet Running in Any Society

This is the honest position: Rupix Gatekeeper is built and in development, and no residential society in Surat is running it yet. It was designed for the situation described at the top of this post — a gate that has to keep working when the internet does not — but we have no deployment to point at, no measured queue times and no verified outcomes to report. What we can show you is the design and the working build.
Custom Software & Digital Infrastructure

Let's build software for your business

From zero-commission ordering systems to offline-first mobile apps, Rupix Labs builds software for Indian businesses.