API DB Gateway

Database access,
without the complexity.

A secure gateway for multiple PostgreSQL instances. Token-authenticated, query-controlled, centrally managed.

Application Client
POST /token
Gateway DRF API
Validated
Database PostgreSQL
4 Live projects
DRF Django REST Framework
Token Auth method
PostgreSQL Database engine

Security by design

No application ever touches the database directly. Everything flows through the gateway.

01

Token Authentication

Each application authenticates with credentials to receive a session token. Requests without a valid token are rejected before reaching any database.

02

Query Whitelisting

Only pre-authorized SQL queries can be executed. Arbitrary queries are blocked, eliminating injection vectors and unauthorized data access entirely.

03

Multi-Instance Routing

Route requests to multiple PostgreSQL instances running on separate local servers — all through a single, unified API endpoint.

04

Isolated Tenants

Each project operates in a fully isolated context. One application cannot access another's data under any circumstances.

05

Stable External Access

Hosted via dynamic DNS for a consistent public URL, regardless of underlying IP changes.

06

DRF Foundation

Built on Django REST Framework — a mature, well-documented standard with full serialization, validation, and permission handling built in.

Managed projects

Applications currently routed through the gateway.

jesusQuiztus 2024 · InfProject10b
Implemented
LostAges 2025 · P-Seminar11x
Implemented
PageRevival 2026 · Tim Burkhardt
Implemented
GSR Lab 2026 · W-Seminar Q12
Implemented

Request lifecycle

Every request passes through authentication and validation before touching any data.

1

Credentials submitted

The client application posts username and password to the token endpoint.

2

Token issued

On success, the gateway returns a session token to be used in subsequent requests.

3

Query validated

The incoming SQL query is checked against the whitelist. Unauthorized queries are rejected with a 403.

4

Database routed

The request is forwarded to the correct PostgreSQL instance and the result is returned to the client.