Test mode only
Rey runs in test mode until partner rails go live. Every payout is executed by a sandbox adapter that simulates the real rail's fees, speed and reliability; no real money moves and no bank account is debited. API keys are issued as rey_sk_test_… keys, and every API response carries mode: "test".
API keys
- Keys are generated from a cryptographically secure random source:
rey_sk_test_followed by 32 base62 characters. - Rey stores only a SHA-256 hash of each key, plus its first 16 characters so you can recognise it in the console. The full secret is shown once, at creation, and cannot be retrieved afterwards.
- Requests are authenticated by hashing the presented key and looking the hash up; revoked keys stop working immediately.
- Each key records when it was last used, so stale keys are easy to spot and revoke in the console.
Signed webhooks
Every webhook is signed with HMAC-SHA256 using the endpoint's own secret (whsec_…). The signature covers a timestamp and the exact request body, and is sent as:
Rey-Signature: t=1764072000,v1=5f2b…c9e1v1is the hex HMAC-SHA256 of"<t>.<raw body>". Verify it with a constant-time comparison.- Reject signatures whose timestamp is more than five minutes from your clock — that bounds replays.
- Endpoints must be public
httpsURLs; loopback and private network addresses are refused, and redirects are not followed.
A verification example is in the API reference.
Console sign-in
The console uses Sign in with 1Profile over OpenID Connect, using the authorization-code flow with PKCE, plus state and nonce checks. Rey never sees or stores a password. Sessions are encrypted, HTTP-only cookies that expire after seven days.
Identity data
Rey ID verification happens on 1Profile Verify's hosted flow, not on Rey. Rey never trusts the redirect back: the outcome is re-read from the Verify API server-side. Verified data is returned through the API only once an identity is approved.
Infrastructure
- Data lives in Postgres on Neon, reached over TLS. Multi-step writes — a payment, its attempts and its ledger posting — commit as one transaction.
- Secrets (database credentials, sign-in client secrets, provider API keys) are server-only environment variables; none are shipped to the browser.
- The ledger is double-entry: every posting must sum to zero or it is rejected.
- Payment creation is idempotent with an
Idempotency-Keyheader, so a retried request never pays twice.
Reporting a vulnerability
If you believe you have found a security issue, please tell us through the contact form and mark it as security. Contact: [security contact email]. Please give us a reasonable chance to fix it before disclosing it publicly.