SincroX Agent — lightweight SQL bridge that runs next to your database
Project description
SincroX Agent
Lightweight SQL bridge that runs next to your database. Connects your database to the SincroX platform securely — only SELECT queries are allowed, with HMAC authentication and configurable timeouts.
Quick Install
curl -fsSL https://sincrox.com/install.sh | bash
Or with Docker directly:
docker run -d \
--name sincrox-agent \
--restart unless-stopped \
-e DATABASE_URL="postgresql://user:pass@host:5432/db" \
-e HMAC_SECRET="your-secret-from-dashboard" \
-p 8001:8001 \
ghcr.io/eljoesb/sincrox-agent:latest
Or with pip:
pip install sincrox-agent
DATABASE_URL="postgresql://..." HMAC_SECRET="..." sincrox-agent
Configuration
| Variable | Required | Default | Description |
|---|---|---|---|
DATABASE_URL |
Yes | — | Database connection string (PostgreSQL, MySQL, or MSSQL) |
HMAC_SECRET |
Yes | — | Shared secret from your SincroX dashboard (min 32 chars) |
AGENT_PORT |
No | 8001 |
Port the agent listens on |
AGENT_HOST |
No | 0.0.0.0 |
Host to bind to |
QUERY_TIMEOUT_SECONDS |
No | 10 |
Max query execution time |
MAX_ROWS |
No | 1000 |
Max rows returned per query |
Supported Databases
- PostgreSQL (
postgresql://...) - MySQL (
mysql+pymysql://...) - SQL Server (
mssql+pyodbc://...)
Endpoints
| Method | Path | Auth | Description |
|---|---|---|---|
| GET | /health |
None | Health check |
| POST | /introspect |
HMAC | Returns database schema |
| POST | /execute |
HMAC | Executes a SELECT query |
Security
- Only
SELECTandWITH(CTE) queries are allowed - All other SQL operations (INSERT, UPDATE, DELETE, DROP, etc.) are blocked
- Requests are authenticated via HMAC-SHA256 signatures
- Query timeout and row limits are enforced
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sincrox_agent-0.1.0.tar.gz.
File metadata
- Download URL: sincrox_agent-0.1.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7498b9dc9a80ab964292bf005ce47c83d8f6a22af3df56fa3eb1a9f752fb8e59
|
|
| MD5 |
957d65a72695e6db42d4024a593c1fc9
|
|
| BLAKE2b-256 |
c261a2fc43475854865ebca048d47ca1572ad71ec4a7720a88cc0147c6582991
|
Provenance
The following attestation bundles were made for sincrox_agent-0.1.0.tar.gz:
Publisher:
publish.yml on eljoesb/sincrox-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sincrox_agent-0.1.0.tar.gz -
Subject digest:
7498b9dc9a80ab964292bf005ce47c83d8f6a22af3df56fa3eb1a9f752fb8e59 - Sigstore transparency entry: 1241974537
- Sigstore integration time:
-
Permalink:
eljoesb/sincrox-agent@b077fa9bf5dcfc99ad01e848c1c18e7b27f5d965 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/eljoesb
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b077fa9bf5dcfc99ad01e848c1c18e7b27f5d965 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sincrox_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sincrox_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0353005391e4785f0d670cd939bba137e33c863a1054fcae91e6d1dcaafe66d5
|
|
| MD5 |
af2de29e580a8c7c8d4632fe7940c277
|
|
| BLAKE2b-256 |
ea06c68635666bdc7e94a0630fe67dec665fda1daaa76bea9bb6c81cd5b9ea95
|
Provenance
The following attestation bundles were made for sincrox_agent-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on eljoesb/sincrox-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sincrox_agent-0.1.0-py3-none-any.whl -
Subject digest:
0353005391e4785f0d670cd939bba137e33c863a1054fcae91e6d1dcaafe66d5 - Sigstore transparency entry: 1241974555
- Sigstore integration time:
-
Permalink:
eljoesb/sincrox-agent@b077fa9bf5dcfc99ad01e848c1c18e7b27f5d965 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/eljoesb
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b077fa9bf5dcfc99ad01e848c1c18e7b27f5d965 -
Trigger Event:
push
-
Statement type: