AGATA PROXIMA
Security infrastructure for multi-tenant PostgreSQL applications.- 1 follower
- Nigeria
- https://agataproxima.com
- company/agata-proxima
- @Worldtwins25
- support@agataproxima.com
AGATA PROXIMA
PostgreSQL security infrastructure for multi-tenant applications.
Make tenant identity part of the database connection boundary.
Website · Public Engine · Documentation · Discord
Agata Proxima addresses a specific failure mode in shared-database applications: a request associated with one customer must not gain access to another customer's records because tenant identity was missing, altered, or incorrectly trusted somewhere in the application stack.
The engineering approach is to verify signed tenant context at the PostgreSQL connection boundary, bind the accepted session to a tenant-specific database role, and let PostgreSQL enforce data permissions through roles, grants, and Row-Level Security (RLS).
Architecture
flowchart LR
A["Application backend<br/>authorizes tenant access"] -->|"Signed tenant context<br/>PostgreSQL protocol"| E["Proxima Engine<br/>Rust data plane"]
E -->|"Verified tenant to role"| P[("PostgreSQL<br/>roles, grants, RLS")]
E --> H["Health and status"]
E --> M["Prometheus metrics"]
E --> L["Local signed evidence"]
Loading
Connection verification
sequenceDiagram
participant App as Trusted application backend
participant Engine as Proxima Engine
participant DB as PostgreSQL
App->>App: Authenticate user and authorize tenant membership
App->>Engine: PostgreSQL startup plus signed tenant token
Engine->>Engine: Verify version, tenant ID, expiry and HMAC
alt Missing or invalid context
Engine-->>App: Reject connection
else Valid context
Engine->>DB: Open session using tenant-specific role
DB-->>Engine: PostgreSQL authentication response
Engine-->>App: Relay PostgreSQL session
App->>Engine: SQL request
Engine->>DB: Forward within tenant-bound session
DB->>DB: Enforce grants and RLS
DB-->>App: Result or permission error
end
Loading
The trusted application backend remains responsible for user authentication and tenant authorization. A tenant identifier supplied by an untrusted client is not authorization proof. PostgreSQL remains the final data-permission enforcement layer.
The public Engine
Proxima Engine is the public, MIT-licensed Rust data plane. It is independently buildable and testable, and can run in local developer mode without a hosted account.
- Signed tenant-context verification: HMAC-SHA256 token version, tenant identifier, expiry, and signature validation.
- Tenant-to-role routing: binds an accepted connection to its tenant-specific PostgreSQL role.
- PostgreSQL-native authorization: database roles, grants, and RLS policies.
- PostgreSQL wire protocol: existing PostgreSQL drivers connect through the Engine.
- Connection and TLS controls: independently configured client and upstream connections.
- Security operations: peer-scoped violation breaker, break-glass token replay protection, and local signed attestation ledger.
- Operational visibility: local health/status routes and Prometheus metrics.
- Developer verification: Rust tests, PostgreSQL integration tests, and documented PgBouncer transaction-pooling tests.
These controls do not replace secure application authorization, PostgreSQL privilege design, secret management, network controls, or deployment review. The repository's security and deployment guides explain the responsibilities and configuration boundaries.
Engine and Cloud are separate
| Component | Role | Availability |
|---|---|---|
| Proxima Engine | Rust PostgreSQL data plane: verifies tenant context and routes tenant-bound database sessions | Public source repository under its MIT license |
| Agata Proxima Cloud | Hosted control plane for organization and node management, hosted accounts, plans, and billing | Separate proprietary hosted product |
flowchart TB
subgraph Cloud["Agata Proxima Cloud - hosted control plane"]
Org["Authorized organization operators"] --> Control["Organization and node management"]
end
subgraph Runtime["Customer-controlled runtime"]
Backend["Trusted application backend"] --> Engine["Proxima Engine"]
Engine --> DB[("Customer PostgreSQL<br/>roles and RLS")]
Engine --> Ops["Local health, metrics and evidence"]
end
Control -. "Optional authenticated enrollment and management" .-> Engine
Loading
The hosted Cloud application and its private management source are not included in the public Engine repository. The Engine's MIT license does not grant access to hosted account features or private Cloud source.
Start with the Engine
git clone https://github.com/Proxima-Engine/proxima-engine.git cd proxima-engine docker compose -f compose.dev.yaml up --build -d
The local Compose profile starts PostgreSQL, PgBouncer in transaction-pooling mode, and Proxima Engine. Check health and status:
curl -fsS http://127.0.0.1:9090/healthz curl -fsS http://127.0.0.1:9080/api/status
Continue with the Quickstart to send a real SQL query through the Engine, inspect metrics, and stop the local stack.
Developer documentation
| Guide | Purpose |
|---|---|
| Quickstart | Run the local stack and send SQL through the Engine |
| Architecture | Request lifecycle, trust boundaries, role routing, and system components |
| Tenant isolation | Tenant roles, RLS, signed context, and positive/negative tests |
| Integrations | psql, Node.js, Python, and Rust connection recipes |
| Configuration | Environment variables, defaults, and validation |
| Deployment | Container deployment, TLS, networking, and persistence |
| Security architecture | Implemented controls and runtime security requirements |
| Verification | Tests, PostgreSQL integration, CI, and evidence |
| Full documentation index | Complete technical documentation |
Work with the project
- Inspect the implementation: Proxima Engine source
- Report a reproducible Engine issue: Open an issue
- Propose a code change: read the repository's contribution guide
- Report a security vulnerability: follow the private security policy; do not publish exploit details in an issue.
- Discuss the project: Join the Discord community
Project links
Agata Proxima website · LinkedIn · X · Discord
Agata Proxima — tenant identity verified at the database boundary.
Popular repositories Loading
-
proxima-engine
proxima-engine
Public
Multi-database tenant isolation and security platform. Agata Proxima connects applications to PostgreSQL, MySQL, MariaDB, CockroachDB, MongoDB, Redis, SQL Server, SQLite, Oracle, DynamoDB, Cassandr…
Rust 1
-
.github
.github
Public
Repositories
Showing 2 of 2 repositories-
proxima-engine
Public
Multi-database tenant isolation and security platform. Agata Proxima connects applications to PostgreSQL, MySQL, MariaDB, CockroachDB, MongoDB, Redis, SQL Server, SQLite, Oracle, DynamoDB, Cassandra, and Elasticsearch/OpenSearch through a Rust-based data plane and cloud control plane.
Uh oh!
There was an error while loading. Please reload this page.
Proxima-Engine/proxima-engine's past year of commit activity Rust 1 MIT 0 2 8 Updated Dec 3, 2026 -
.github
Public
Uh oh!
There was an error while loading. Please reload this page.
Proxima-Engine/.github's past year of commit activity 1 0 0 0 Updated Nov 20, 2026
People
This organization has no public members. You must be a member to see who’s a part of this organization.
Top languages
Loading…
Uh oh!
There was an error while loading. Please reload this page.
Most used topics
Loading…
Uh oh!
There was an error while loading. Please reload this page.