Secure Backend Platform / PostgreSQL + RLS
Define schema. Get secure backend.
A planned service to turn a database schema into REST APIs, with Row-Level Security on by default and JWT verification in PostgreSQL. Access rules stay close to the data they protect.
In development Not yet available. Request a briefing to follow progress.
01The planned pipeline
Three steps to secure APIs
This is how the service is designed to work, from schema definition to API endpoints. Row-Level Security and JWT verification are planned to be on by default.
-
01You define
Define your schema
Planned: several ways to describe your data. You will not need to know HCL, because the service is designed to convert it for you.
table "users" { schema = schema.app column "id" { type = uuid } column "email" { type = varchar(255) } primary_key { columns = [column.id] } } -
02We provision
We handle provisioning
Planned: each project gets a separate PostgreSQL database. Your schema is applied with Atlas migrations, and REST endpoints are generated for CRUD operations.
-
03You connect
Connect & ship
Planned: you get a unique API endpoint and API key. You connect from web, mobile or backend applications. OpenAPI documentation is included.
GET /v1/{db}/users POST /v1/{db}/users GET /v1/{db}/users/{id} PUT /v1/{db}/users/{id} DEL /v1/{db}/users/{id} # Bulk operations POST /v1/{db}/bulk/users
02Planned security architecture
Security-first architecture
The design enforces security at the database layer. RLS policies, JWT verification and tenant isolation are planned for every deployment.
Row-level security by default
Planned: PostgreSQL RLS policies on every table by default. Access control is then enforced in the database, the last line of defence.
CREATE POLICY ... USING (auth.user_id() = owner_id)
JWT verification at database
Planned: JWT claims pass directly to PostgreSQL. RLS policies read claims through helpers such as auth.user_id() to enforce access control inside the database.
current_setting('request.jwt.claims', true)::json
Tenant isolation
Planned: a separate PostgreSQL database per tenant, so tenants never share tables. This is meant to reduce the risk of data leaking between tenants.
tenant_abc≠tenant_xyz
Schema-enforced validation
Planned: data types, NOT NULL constraints and CHECK constraints enforced by PostgreSQL. Data that breaks them is rejected in the database, not only in the API layer.
CHECK (age >= 0 AND age <= 150)
Defence in depth
In the planned design, each request passes through several security layers:
- JWT verification
- API validation
- PostgreSQL RLS
- CHECK constraints
Also planned
- OpenAPI docsPlanned: a generated OpenAPI specification for every API, with interactive docs and client SDK generation.
- Metrics & alertingPlanned: built-in metrics for query performance, request rates and errors, with custom alerts.
- Bulk operationsPlanned: a dedicated bulk API for batch inserts, updates and deletes, with each batch run as a transaction.
- Backup & recoveryPlanned: automated backups and point-in-time recovery.
- API key managementPlanned: per-database API keys with scoped permissions. Keys can be rotated, revoked and audited.
03What we aim to remove
Code the service is designed to replace
The goal is less boilerplate, fewer repetitive CRUD handlers and fewer hand-rolled queries to review.
- Database provisioning scripts
No Terraform, no Ansible, no CloudFormation for database setup.
- ORM configuration
No SQLAlchemy, no Prisma, no TypeORM models to maintain.
- CRUD endpoint handlers
No repetitive create/read/update/delete handlers for every entity.
- API validation boilerplate
No request/response schemas, no manual type validation.
- Security policy implementation
No hand-rolled authorization checks in every endpoint.
- API documentation maintenance
No Swagger/OpenAPI files to keep in sync with code.
Secure Backend Platform / In development
Ready for secure backends?
The service is in development and not yet available. It is designed to generate APIs from your schema, with RLS on by default. Request a briefing to follow progress.