Security
Protect your API keys and the money they can send
API keys are powerful. A stolen key can lead to financial loss, exposed data, and undelivered rewards. This guide enumerates important safeguards to keep your API integration and Tremendous account secure.
Treat API keys like passwords
Keep keys out of code, logs, and messages such as tickets, emails, and chat. Store them in environment variables or a secrets manager. Call the API from your server, never from browser or mobile app code, which anyone can read.
Tremendous employees will never ask for your API keyDon't share it with our team, including in support emails.
Restrict API keys to IP addresses you use
First, confirm the public IP addresses or CIDR ranges your servers use to reach Tremendous. Add them to the production key's IP restrictions. Once you save, requests from any other address return 401.
Use read-only keys for reporting
Give reporting, reconciliation, and dashboard jobs a separate Read-only key. It can read data and export reports.
Rotate exposed keys right away
A key is exposed when it appears anywhere it shouldn't, such as a repo, a log, or a message. Rotate it even if you're not sure anyone saw it.
To rotate a key, have an admin create a replacement under Team settings > Developers with the permissions and IP restrictions your integration needs. Deploy it, confirm requests succeed, then delete the old key.
Require multi-factor authentication for your team
Admins create API keys in the dashboard, so a stolen admin login can create one too. Turn on Require multi-factor authentication (MFA) under Team settings > Security. If your team uses single sign-on, enforce MFA through your identity provider.
Turn on fraud prevention rules
Fraud rules flag suspicious recipient redemptions and hold each reward for your review before it pays out. Have an admin turn on the three recommended rules under Fraud prevention > Settings, one click each. Release or block flagged rewards in the review queue. Any you don't act on are blocked after 30 days. You can also manage rules and reviews through the API.
Protect reward links and webhooks
- Reward links. Don't log or store them. Anyone who has a link can redeem the reward. Store the reward ID and generate a link when you need to show the reward. Earlier links still work.
- Webhooks. Verify the signature on every webhook before you act on it. It's how you know Tremendous sent the request. Use a constant-time comparison.
Security at Tremendous
Tremendous has a SOC 2 Type II report, shared under NDA. Request a copy, or read how we protect data on our security page.
To report a vulnerability, use our vulnerability disclosure program.
Updated about 8 hours ago