Skip to main content

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 SELECT and WITH (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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sincrox_agent-0.1.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sincrox_agent-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

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

Hashes for sincrox_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7498b9dc9a80ab964292bf005ce47c83d8f6a22af3df56fa3eb1a9f752fb8e59
MD5 957d65a72695e6db42d4024a593c1fc9
BLAKE2b-256 c261a2fc43475854865ebca048d47ca1572ad71ec4a7720a88cc0147c6582991

See more details on using hashes here.

Provenance

The following attestation bundles were made for sincrox_agent-0.1.0.tar.gz:

Publisher: publish.yml on eljoesb/sincrox-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for sincrox_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0353005391e4785f0d670cd939bba137e33c863a1054fcae91e6d1dcaafe66d5
MD5 af2de29e580a8c7c8d4632fe7940c277
BLAKE2b-256 ea06c68635666bdc7e94a0630fe67dec665fda1daaa76bea9bb6c81cd5b9ea95

See more details on using hashes here.

Provenance

The following attestation bundles were made for sincrox_agent-0.1.0-py3-none-any.whl:

Publisher: publish.yml on eljoesb/sincrox-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page