Security middleware is available in Tilde Enterprise today. It will be available soon in Tilde OSS and Tilde Cloud.
Click to zoom
Where middleware runs
Middleware screens two directions.Guards
Six guards are available. You enable each guard separately for each direction.
Pattern-based detection validates what it finds, such as card number and IBAN checksums, which keeps false positives low.
Actions
- Flag records the finding and lets the text through.
- Redact replaces each matched span with its label, such as
[EMAIL_ADDRESS], and delivers the rest. - Block stops the message. A blocked native post returns permission denied. A blocked provider message is never stored. A blocked reply fails the agent’s tool call.
Configure middleware
You set an agent’s guards in its Security tab, one rule for each guard and direction. Changes apply at once to the gateway and to the agent’s sidecars, with no restart. The same policies are available through the management API.Write a custom guard ALPHA
A custom guard is one JavaScript function for each agent. Tilde calls it with the text and the direction, and it returns a list of findings.Custom guard