Reference
Security
How to keep your keys, your feed and your customers' data safe, and what WaForge does on its side. The drop-in kits already do every item marked "yes".
Data feed checklist #
| Item | Why | Kits |
|---|---|---|
Verify WaForge-Signature on every route except the manifest | Only WaForge can read your data | yes |
Reject |now - t| > 300 and keep your clock on NTP | Blocks replays of old requests | yes |
Remember the signed t + v1 for 10 minutes (atomic add) | Blocks replays inside the window | yes |
| Constant-time comparison | No timing leaks | yes |
| Refuse bodies over 1 MB (413) | No memory exhaustion | yes |
| Never verify with a blank secret | A missing setting must close the feed, not open it | yes |
| Order lookup: phone must match, same 404 otherwise | Nobody can probe order numbers or read other people's orders | yes |
| Return only published, visible products | No drafts, private or password-protected items | yes |
| Read-only database user | A bug cannot change your data | you |
| Keep the secret server-side (env var or config outside the web root) | Never in JavaScript, a repository or a URL | you |
| Never return addresses, emails or payment data | Data minimisation | yes |
| Plain text in descriptions | WaForge strips HTML and treats all your text as data, never as instructions, but clean data is better | yes |
| Rotate the secret if it may have leaked | Dashboard > your feed > New secret | you |
Do not log the WaForge-Signature header or secrets | Logs leak | yes |
OTP keys #
- Secret keys (
wf_sk_) only on your server. Revoke and replace a key that appeared in a browser, an app, a log or a repository. - Widget keys (
wf_pk_) list only the exact hosts that need them. They are public by design; your plan limits cap abuse. - Use the server-side OTP flow, not the widget, when the verified phone decides access (why).
- Add your own per-phone and per-IP limits in front of
/otp/send.
What WaForge does on its side #
- Calls only HTTPS on port 443, only your domain and its subdomains, refuses private and internal addresses, and re-checks every redirect (at most 3).
- Stores your feed secret encrypted with a dedicated key, separate from the application key, and never shows it to the AI.
- Stores API keys only as SHA-256 hashes and OTP codes only as one-way hashes.
- Sends the customer's phone from the WhatsApp session, never from what the customer typed, and drops an order whose returned phone does not match.
- Strips HTML and hidden control characters from your text and treats it as data, never as instructions to the AI.
- Pauses calls for 60 s after 5 failures in a row, so an outage on your side does not pile up requests.