This page lists how RustPress protects your site, how it contains plugin problems, and what this version does not do.
Security
RustPress is built with the OWASP Top 10 in mind and reviewed against it. Release 0.1.4 went through two security reviews, and every finding is fixed (plugin SQL, CSRF, OAuth, hooks between plugins, the job queue, file serving and more).
- Parameterized SQL everywhere, including SQL from ported plugins
- An HTML5 allow-list sanitizer for anything untrusted users post
- Safe URL handling
- Nonces and capability checks on every state change, and CSRF protection for plugin forms, AJAX and REST routes
- Brute-force limits on logins and API passwords
- Security headers, including no framing of the admin and
nosniff - Signed self-updates
- A one-time setup key
- SSRF protection for imports and plugins’ calls to other websites
- Uploads served with a script-blocking policy
- Request size and parsing limits
- Constant-time secret comparisons
- A private
rp-config.toml
Plugin permissions
A plugin declares what it needs with a Permissions: content:read, options header or a "permissions" list in plugin.json:
| Permission | Allows |
|---|---|
content:read | Reading drafts, private content and non-public types |
content:write | Creating and changing content |
options | Settings other than the plugin’s own |
users | Users, roles and capabilities |
site | Site-wide changes |
network | Calling other websites, optionally limited to listed hosts |
- Without any of these, a plugin can only use its own options, public settings and its own REST routes.
- Plugins that declare nothing keep full access and are labelled so.
- AI and mail settings are off limits to every plugin.
- Plugins can’t add routes in core namespaces, take core addresses, or rewrite other routes’ API responses.
- Plugins never see visitors’ login cookies or other plugins’ cookies.
- Calls to other websites reach public addresses only, never this server or private and cloud-metadata addresses, even after redirects.
jsandwasmplugins are fully sandboxed. Process and HTTP plugins still run as programs on the server.
Plugins that depend on each other
- A plugin isn’t activated until the plugins it requires are active, at the version it needs.
- A required plugin can’t be turned off or deleted while something active needs it.
- A plugin may fire only its own hooks, those of plugins it requires, and shared WordPress-style hooks. It can never fire the core’s lifecycle hooks.
- A plugin with 16 such calls already running (plugins calling each other in a loop) is stopped.
How to write plugins is covered in Plugins and the Plugin API reference.
Crash isolation and memory caps
Plugins run outside the core. A crash, exception or hang fails only that plugin’s part of the page, and it is logged. Plugins have time limits, and memory is capped:
| Runtime | Memory cap |
|---|---|
| PHP | 128 MB |
| Node | 256 MB |
Sandboxed (js, wasm) | 64 MB per call |
Plugin services that keep growing past plugin_memory_mb are restarted and flagged as likely leaks. Background jobs that keep failing rest instead of hammering a service that is down.
Auto-rollback
After a change goes live, RustPress checks the site. If a page fails, or the site answers with server errors three times within 15 minutes, the change is rolled back by itself.
Safe mode
- For you only: open
/rp-admin/safe-mode?on=1. Plugins are turned off and the default theme is used, only for your session. - For everyone: start the server with
rp serve --safe-mode, or setsafe_mode = true.
Logs
Tools › Logs shows errors from plugins, PHP, themes, the database, email, scheduled events, crashes and visitors’ browsers. There is one file per day, split at log_max_lines. Logs are never served on the web, and secrets are masked. More in Running a site.
Signed updates
Releases are signed with Ed25519. rp update only installs releases with a valid signature, test-runs the new program first, and keeps the previous one. See Install and update.
AI agents and AI tools
Agents write only in their workspace, and every live change they propose is approved by a person after seeing the diff. Tools from other services ask before each call until you let them run, reach only https servers on the public internet, and keep their keys encrypted. The full list of guard rails is in AI agents and MCP and AI tools.
Not in this version
Planned next
- Translations: the admin and themes in other languages.
- The full block editor: the current editor edits flat blocks and opens nested layouts in the code editor.
Not planned for now
- Multisite
- XML-RPC
- Pingbacks and trackbacks
- Running unmodified PHP plugins that rely on WordPress internals beyond the SDK’s functions, such as WooCommerce or Elementor
If you are coming from WordPress, Moving from WordPress explains what carries over.