Knock Lets Teams Keep Passcodes and Reset Tokens Out of Its Logs
Knock now replaces the values of up to 50 customer-chosen keys with [filtered] before it writes API, workflow, delivery and source event logs.

Knock customers can now name the data fields Knock must keep out of its logs, so values such as one-time passcodes and password reset tokens are never stored, the company said in its Nov. 24 changelog. When Knock writes a log, it replaces the value of any matching key with [filtered]. The feature is live for all customers.
The filter covers four kinds of logs
Filtering applies to API logs, workflow run logs, message delivery logs and source event logs in every environment of an account, the changelog says. Workflows and templates still receive the full values. Only the logged copy changes.
Knock’s data obfuscation documentation spells out what each log loses. In API logs, Knock filters query parameters and request and response bodies. Request headers follow a fixed list of sensitive headers instead. In workflow run logs, it filters trigger data and the logged request and response of each fetch function step. In delivery logs, it filters the headers and JSON bodies Knock sends to email, SMS and other channel providers, and their responses.
Matching is by exact key name at any depth
A key such as otp_code matches OTP_CODE but not user_otp_code or otp_code_expires_at, the documentation says. Knock checks keys inside nested objects and inside objects in arrays, and a match replaces the whole value, even an object or an array. It looks at key names only. A string value that happens to contain otp_code stays as written.
Knock already filters some common keys, such as password and api_key, by default. Account owners and admins add their own on the Security page in account settings. An account can hold up to 50 keys, each up to 128 characters, and the feature is on every plan.
Rendered messages still carry the value
If a template renders a filtered value into an email body or SMS text, the value appears in the message content and in the delivery log of the request that sent it, the documentation warns. Filtering also leaves alone the data Knock stores on users, objects and messages, and what it sends out through warehouse export.
Logs written before a key is added keep the original value until they age out under the account’s retention policy, and removing a key does not restore values Knock already filtered.
Key takeaways
- Knock replaces the values of named keys with
[filtered]when it writes API, workflow run, delivery and source event logs. - Workflows and templates still get the full values.
- Matching is by exact key name, case-insensitive, at any depth, with up to 50 keys per account on every plan.
- A passcode rendered into an email body still shows up in that message and its delivery log.
The take
We think every notification platform should offer this, and most teams should turn it on this week. A passcode or reset token is only safe while few systems hold it. A log copies it into a place many people can search until the log ages out, long after the code has done its job. Removing it at write time is better than hiding it on screen, because a value that was never stored can’t leak later.
The rendered message is the gap. A passcode email exists to show the code, so the code still appears in the message content and its delivery log. The filter protects the data on its way in, not the message on its way out. It still keeps these values out of the trigger payloads, fetch steps and provider requests where they tend to pile up.
Start with an inventory. List every trigger field that carries a code, token or credential, add those names on the Security page, then fire a test workflow and confirm the API log and run log show [filtered] where the values used to be.


