WaForgeDevelopers

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 #

ItemWhyKits
Verify WaForge-Signature on every route except the manifestOnly WaForge can read your datayes
Reject |now - t| > 300 and keep your clock on NTPBlocks replays of old requestsyes
Remember the signed t + v1 for 10 minutes (atomic add)Blocks replays inside the windowyes
Constant-time comparisonNo timing leaksyes
Refuse bodies over 1 MB (413)No memory exhaustionyes
Never verify with a blank secretA missing setting must close the feed, not open ityes
Order lookup: phone must match, same 404 otherwiseNobody can probe order numbers or read other people's ordersyes
Return only published, visible productsNo drafts, private or password-protected itemsyes
Read-only database userA bug cannot change your datayou
Keep the secret server-side (env var or config outside the web root)Never in JavaScript, a repository or a URLyou
Never return addresses, emails or payment dataData minimisationyes
Plain text in descriptionsWaForge strips HTML and treats all your text as data, never as instructions, but clean data is betteryes
Rotate the secret if it may have leakedDashboard > your feed > New secretyou
Do not log the WaForge-Signature header or secretsLogs leakyes

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.