Karya
Access and plain-English queries
Roles in the product, not in the database. Operations ask for live numbers in plain English, inside an allow-list.
Problem
Access was edited in the database by hand, and operations could not pull live data without engineering.
Context
Internal PMs and operations, and external data workers and clients, do not share the same rights. Data privacy comes first for both. The reporting gap was the same shape: a queue of questions waiting on someone who can write SQL.
What I did
- Added an authorization layer that admits only authorized users, and a user screen so teams manage access on the platform.
- 4 global and 5 project roles across 100+ API routes. Permissions live in code. Inactive users are denied.
- Shipped an LLM-backed plain-English query tool over live PostgreSQL, with history and reusable templates.
- Guardrail tests limit every generated query to allowed tables.
The call
Put roles in the product and put a hard allow-list in front of generated SQL. Operations get the numbers. They do not get the whole database.
Fewer people can see everything. Provisioning went from hours to seconds, and a coordinator can pull live data without waiting on engineering.
Plain-English query
Pick a question operations might ask. These are scripted examples, not a live database.
The generated query shows up here.
Result
Provisioning went from hours to seconds. Operations pull live data without waiting on engineering.
- PostgreSQL
- TypeScript
- LLM