Releases and security
Contents
Known limits
Database and migrations
| Limit | Details |
|---|---|
One engine per build (sqlite, postgres, mysql)SQLite: one writer at a time, SQLITE_BUSY under heavy write loadSwitching engines needs a fresh database: data isn't carried over | Database |
A column type change isn't migrated (--force writes an empty migration, to complete by hand)Snapshots copied without their migrations make the tables look created Index and foreign key names capped at 63 characters, on every engine: makemigrations refuses beyondmigration up: a migration is atomic under Postgres only (SQLite, MySQL: a failing migration can stay half applied) | Migrations, Makemigrations |
search!: in (vec) with an empty vec, no inline conditional filter | Queries |
Forms and messages
| Limit | Details |
|---|---|
A failed session write loses the flash message; the failure only shows in the log (session.store channel) | Flash macros |
| A published file followed by a hard stop before the database commit can leave an orphan file Deleting a row doesn't delete its files, from the admin included: it is up to the project to keep or remove them | Fields |
Security, sessions, authentication
| Limit | Details |
|---|---|
RateLimiter and LoginGuard have no memory capRateLimiter and LoginGuard count per process: with several instances, the quota is multiplied | Rate limiting |
LoginGuard locks by username: someone can lock an account whose name they know | LoginGuard |
| The in-memory session store belongs to one process Every request without a cookie opens an anonymous session (the CSRF token is kept there): a flood of such requests can fill the store, which then refuses new sessions | Session store |
A custom store (with_session_store) can't be walked per user: after a password reset, its sessions only close at their next request, and only if the user model returns session_version | Session |
| Session duration: one for every signed-in account; "remember me" (a duration per session) is not possible yet | Sessions |
| At most 5 custom middlewares (a 6th makes startup panic); they run before the session, without the signed-in account | Middleware stack |
Delegated mode: no external provider (OAuth, LDAP, SAML) is implemented | Passwords |
| ACME: one site per machine (port 80 exclusive) | Network |
Admin
| Limit | Details |
|---|---|
.links, .search_help, .empty_value accepted but with no effect on the display (a warning says so at startup) | ModelAdmin builder |
No global theme stylesheet (workaround through a block).with_htmx is global, no per-model list fragment | Template override |
| No session management interface | — |
| Many-to-many: declared in the DSL through a pivot table, not managed in the admin | Roadmap |
Local development
| Limit | Details |
|---|---|
Cookies ignore the port: two projects on 127.0.0.1 share (and overwrite) the session cookie | Troubleshooting |
Solutions in the meantime
| Limit | Solution |
|---|---|
RateLimiter and LoginGuard have no memory cap, counters per process | Also limit at the reverse proxy (example below) |
LoginGuard blocks by username | Pair it with a limit per IP, at the reverse proxy or with RateLimiter |
| Anonymous sessions opened by a flood of cookieless requests | Limit per IP at the reverse proxy, as for /login (example below), and size the store's cap |
| The memory session store belongs to one process | One instance, or a reverse proxy sending each visitor to the same one (ip_hash with nginx) |
| ACME: one site per machine | Hand TLS to a reverse proxy as soon as there are several sites |
| SQLite: one writer at a time | PostgreSQL for a sustained write load |
| A migration is atomic only on PostgreSQL | Back up the database before migration up on SQLite and MySQL |
| A column's type change isn't migrated | Complete by hand the migration written by --force |
Cookies shared by two projects on 127.0.0.1 | Open one on 127.0.0.1, the other on localhost |
Limit per IP with nginx, to adapt. The zone caps the memory, and a refused request gets a 503 by default:
limit_req_zone $binary_remote_addr zone=login:10m rate=5r/m;
location /login {
limit_req zone=login burst=5 nodelay;
proxy_pass http://127.0.0.1:3000;
}
What's coming
No dates, no commitment: a bug or a security flaw comes before planned work.
- 4.1, database infrastructure:
makemigrationsgenerates schema operations with no manual step: dropping tables, a realALTERon a type change, moving toNOT NULLwhile filling existing values, detecting default value changes, columns both renamed and modified, table renames. Constraint names are read from the database, and destructive changes state what they affect.makemigrationsconnects to the database before computing, and snapshots are only written when migrations are applied.migration upbecomes all-or-nothing: when a migration fails, none of that run stays applied (transaction on PostgreSQL and SQLite, compensation on MySQL).migration downundoes the last migration and removes the generated migration. Queries:get_or_create,update_or_create,exists()andlast(). Security: a cap on the number of keys held in memory byRateLimiterandLoginGuard, and tiered lockout against brute force: a duration that grows at each repeat (5 min, then 15 min, then 1 h by default), each tier being configurable.
An item planned for one version may move to the other along the way, when they have to ship together.
- 4.2, relations: the many-to-many pivot table is generated from the model DSL, created and
dropped by
makemigrations, honouring cascade, restrict and set_null; a hand-written table with extra columns remains possible. Loading relations in one query, many-to-many access methods and its management in the admin.search!also accepts AND groups inside OR, and the negation of a condition or a group, still through typed queries. - Open redirect: test the protection against known URL validation bypass payloads.
- Tracing: finish file output with rotation and add a request identifier. Missing translation keys will be logged.
- Languages added by a project: let a project provide a language Runique does not ship, registered through the builder.
- Admin: date and foreign key filters, date hierarchy,
fieldsets, read-only fields, autocomplete, inline editing, group actions with Rust logic, CSV/JSON export, and "save and continue".
No commitment: these will move up as work finishes.
- Authentication: OAuth/OIDC, JWT, API keys, a login journal and CSP violation reports.
- ORM and DSL: model hooks, aggregates in
search!, declared indexes, and numeric bounds and steps. - Tools and storage: public CRUD views, a built-in test client, fixtures, custom commands, sitemap and RSS, image resizing, and a storage extension point for S3-compatible services.