Skip to content
Back to all projects

Save-It.AI | Multi-tenant IoT Energy SaaS

Multi-tenant SaaS for energy management: field gateways stream telemetry over MQTT into real-time dashboards, with strict tenant isolation.

This is a private product. The case study focuses on architecture, security, and delivery workflow, not on client details.

Save-It.AI energy management platform preview

Problem

Field IoT gateways needed to send telemetry into a shared SaaS platform, and each tenant's data had to stay fully isolated from every other tenant.

Constraints

Each gateway needed its own credentials, the broker had to be reachable from the field, and security gaps had to be closed without stopping ongoing feature delivery.

Architecture / Approach

I built and run the production MQTT broker with TLS, per-gateway credentials, and ACLs, and onboarded field gateways. Tenant isolation is enforced in the application with RBAC across roughly 100 endpoints, and in the database with Postgres row-level security (RLS).

Key decisions

I merged two diverged codebases into one production repo with reversible migrations, drove development with AI coding agents, and shipped about 90 test-first security PRs covering CSRF protection, JWT/OAuth fixes, and sandboxed user code.

Outcome / Current status

The platform runs in production with field gateways onboarded, and tenant isolation is enforced both in the application and in the database.

Lessons

In multi-tenant IoT, security has to be part of every layer, broker, API, and database, not added at the end. Small test-first PRs kept each security change reviewable.

Interested in a similar build?

If this project direction matches your goals, we can map a practical plan for your product.