datasette 1.0a27

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Datasette developers get a CSRF mechanism swap and a RenameTableEvent plugin hook in the 1.0a27 alpha, plus fixes for intermittent internal database locking errors.

Read this as

Datasette is an open-source tool that lets people publish and explore databases on the web. Its new test version, 1.0a27, stops using an old-style security check (a hidden form token that blocks certain website attacks) and instead relies on protections built into modern web browsers. It also now tells add-on programs whenever a database table gets renamed, so those add-ons can update their own records. The changes affect developers who build on Datasette, not casual users.

Datasette 1.0a27 is an alpha release of the open-source data publishing tool, relevant only to teams already running or extending it. The security model changed from form-token CSRF checks to browser-header checks, following an approach described by Filippo Valsorda, and plugins like datasette-comments now receive events when tables are renamed. Adopting the alpha may require plugin updates; there is no cost, competitive or regulatory impact stated, and no release date for a stable 1.0.

Datasette 1.0a27 replaces Django-style CSRF form tokens with browser-header CSRF protection per Filippo Valsorda's design, and fires a new RenameTableEvent inside SQLite transactions so plugins like datasette-comments can react to renames. Other changes: an actor= parameter for datasette.client test requests (#2688), Database(is_temp_disk=True) to fix intermittent 'database is locked' errors from the in-memory internal database (#2683/#2684), null primary keys rejected by /-/upsert (#1936), an 'ok': true key on the /<database>.json endpoint, and call_with_supported_arguments() promoted to documented public API (#2678).

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Datasette datasette 1.0a27 Filippo Valsorda datasette-comments SQLite Django

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading