InsightsSecurity
Keeping your API keys safe
Where keys should live, how to rotate them without downtime, and how to verify our webhooks.
Rifraux team · · 4 min read
A Rifraux API key can score your customers’ transactions and open compliance cases in your name. Treat it like a database password.
Keep keys on the server
- Store keys in your secrets manager or environment variables, never in source control.
- Never ship a key inside a mobile app, a single-page web app or device firmware. Anything on a customer’s device can be extracted.
- Use test keys (rfx_test_) for development and live keys (rfx_live_) only in production.
Give each key only what it needs
Keys carry scopes. A fraud-scoring service needs fraud; your compliance tooling needs aml and cases; plant integrations need iiot. Create one key per service so you can revoke one without touching the others.
Rotate without downtime
- Create the new key in the dashboard.
- Deploy it alongside the old one and switch traffic.
- Revoke the old key once its last-used time stops moving.
We store only a keyed hash of each key, so we cannot recover a lost key. Create a new one and revoke the old.
Verify every webhook
Each webhook carries an X-Rifraux-Signature header of the form t=<timestamp>,v1=<signature>. Compute an HMAC-SHA256 of "<timestamp>.<raw body>" with your signing secret, compare it in constant time, and reject anything older than five minutes. That stops forged and replayed requests.
New insights by email
CBN and NFIU updates, fraud patterns we are seeing and product changes. No marketing filler.
We respect your privacy. Unsubscribe at any time.