This is a self-hosted connector for PostPipe. It acts as a secure bridge between PostPipe's Ingest API and your private database.
- Zero Trust: This connector never trusts the payload blindly. It verifies the request signature
X-PostPipe-Signatureusing yourPOSTPIPE_CONNECTOR_SECRET. - No Leaks: Database credentials exist ONLY in this environment. PostPipe never sees them.
- Audit: All security logic is in
src/lib/security.ts. You are encouraged to read it.
npm installCopy .env.example to .env and fill in your details:
POSTPIPE_CONNECTOR_ID=pp_conn_...
POSTPIPE_CONNECTOR_SECRET=... # Keep this secret!
DB_TYPE=mongodb # mongodb | postgres | supabasenpm run devThe server will listen on port 3000.
Endpoint: POST http://localhost:3000/postpipe/ingest
Use the buttons below to deploy instantly:
-
Clone & Install
git clone https://github.com/Sourodip-1/postpipe-connector-template cd postpipe-connector-template npm install -
Configure Environment Set
POSTPIPE_CONNECTOR_IDandPOSTPIPE_CONNECTOR_SECRETin your dashboard or.envfile. -
Deploy
- Docker:
docker build -t connector . && docker run -p 3000:3000 connector - Vercel:
vercel deploy - Azure: Use the "Deploy to Azure" button or CLI.
- Docker:
- Invalid Signature: Check that
POSTPIPE_CONNECTOR_SECRETmatches exactly what is in your PostPipe Dashboard. - Timestamp Skew: Ensure your server's clock is synced (NTP). Requests older than 5 minutes are rejected.