Docs / 07 / Firewall
App firewall: block requests before your app
Updated
The Resilis app firewall checks HTTP requests before they reach your app. It applies the OWASP Core Rule Set and platform rules to every protected app. You can add your own rules to block specific paths, methods, headers or form and JSON fields. A blocked request receives a 403 response and never reaches your code.
How the firewall works
Protected traffic passes through a managed firewall proxy in front of your app on the Resilis cluster. Every protected app gets the same baseline: the OWASP Core Rule Set, which detects common attacks such as SQL injection and cross-site scripting, plus rules the platform applies to all apps.
Your app rules only add blocks. They cannot allow a request that the baseline blocks, and they do not affect other apps. Requests that match no rule pass through to your app unchanged.
Saved rules take effect once protection is active. The Firewall tab shows whether the firewall has been verified for your app; see the status table below.
Which apps are protected
The firewall covers web services, containers and static sites that run on Resilis managed clusters. It does not cover apps on connected compute or on your own Kubernetes cluster, or some static site deployments. For those apps the Firewall tab shows "Protection is unavailable for this app."
The firewall only sees requests sent to your app. Managed object storage, the Resilis dashboard and API, and managed database connections do not pass through it.
| Status | Meaning |
|---|---|
| Protection was verified. | The firewall is active for this app and its rules are enforced. |
| Protection is not yet active. | Rules are saved but the firewall has not been verified for this app yet. Check again shortly. |
| Rules could not be applied. | The firewall could not apply the saved rules. Save again, and contact support if the status does not clear. |
| Protection is unavailable for this app. | The app runs somewhere the firewall does not cover, such as connected compute. |
Request body size limit
Requests to a protected app can carry a body of up to 10 MiB (10,485,760 bytes). The firewall rejects a larger request with a 413 response before it reaches your app. The limit applies to the whole request body, including file uploads sent to your own endpoints.
For larger files, upload directly to object storage with a presigned URL instead of sending the file through your app. Presigned uploads and S3 API calls go straight to the storage endpoint and are not limited by the firewall.
Add rules from the dashboard
Open the app, choose the Firewall tab and select Add rule. A simple rule matches one request field. An advanced rule combines between one and eight conditions, and blocks a request only when every condition matches. Use the Enabled switch to turn a rule off without deleting it, then select Save rules to apply all pending changes at once.
Only organization owners and admins can change firewall rules. Other members can view them. If someone else saved rules while you were editing, reload before saving so you do not overwrite their changes.
| Request field | Operators | Notes |
|---|---|---|
| Path | Equals, starts with, contains | Starts with /. Advanced rules also accept a regular expression. |
| Method | Equals | GET, HEAD, POST, PUT, PATCH, DELETE or OPTIONS. |
| Header | Equals, starts with, contains | Choose a header name, such as User-Agent. Credential headers cannot be matched. |
| Parsed body field name | Advanced rules only | Matches the names of form or JSON fields in the request body. |
| Parsed body value | Advanced rules only | Matches a form or JSON field value, optionally for a named field. Uploaded file contents are not inspected. |
Rule limits
Each app can have up to 100 rules. Match values can be up to 200 characters and cannot contain quotes, backticks or percent signs. Regular expressions are only available in advanced rules and must stay within a complexity limit.
Headers that carry credentials, such as Authorization, Cookie, Set-Cookie and X-API-Key, cannot be used in rules. Test a new rule with your own requests before relying on it.
Manage the firewall with an AI agent
Agents connected over MCP can read and change the same app rules. apps.protection.get returns the saved rules and the enforcement status. apps.protection.configure replaces the app rule list using the current revision, so concurrent edits are not lost; an empty list removes every app rule. apps.protection.events returns blocked requests observed in the last 1 to 168 hours.
Blocked-request events are best effort: counts can be incomplete or duplicated, so use them for investigation rather than billing or compliance evidence. Changing rules through MCP requires the configure access you approve when you connect the agent.