Security best practices
How TMBill protects the data, and what you should do on your side.
Your checklist
- Keep keys in a secret manager or server environment variable. Never in front-end code, mobile apps, logs or Git.
- Ask the owner to set an IP allow-list with your server's fixed IPs.
- Ask only for the stores and scopes you need.
- Roll keys when people with access leave, and at least yearly. Rolling has no downtime.
- If a key leaks, tell the owner to revoke it: it stops on the next call.
- Store money as decimals and keep the
request_idof failed calls.
What TMBill does
- Keys are hashed (SHA-256) and compared in constant time. TMBill can't read your key back.
- Owner approval with a one-time code for every new or rolled key, bound to the exact request.
- Every call checks revocation, expiry, IP allow-list, scopes and the store grant with fresh data.
- A store outside the grant answers 404, the same as a store that doesn't exist.
- Traffic goes through CloudFront and a web application firewall; the API is read-only and GET-only.
- Limits per key, per integration and per IP; queries are capped in time so one caller can't slow others.