A new SQL-powered permissions system in Datasette 1.0a20

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

Why it matters

Datasette plugin authors must rewrite permission logic before the 1.0 stable release, or their plugins will break against the new SQL-based hook.

Read this as

Datasette, an open-source tool for publishing and exploring data online, has released version 1.0a20 on 3 November 2025. It changes how the software decides who can see or change data: instead of asking each add-on a yes-or-no question, it now lets add-ons provide database queries (SQL, the standard database language) that quickly filter thousands of items at once. This matters to people running Datasette sites and the developers who build its extensions.

Datasette 1.0a20 ships the largest breaking change on the road to 1.0: permission checks now run as SQL against SQLite instead of one plugin call per check. Deployments with thousands of tables can list what a user may access without running a check per table, and new debug pages show which rules applied. Plugin authors face migration work; a detailed upgrade guide exists. One known gap: the system cannot list which users can access a resource, a limitation shared with AWS S3.

The permission_allowed(actor, action, resource) hook is replaced by permission_resources_sql(actor, action), which returns a PermissionSQL object with four columns: parent, child, allow (0/1) and a reason string. Queries from all plugins are combined against internal catalog tables, supporting two-level hierarchies, plugin vetoes (deny at database level can be outvoted at table level) and API-token restrictions. The release spans 163 commits (10,660 additions, 1,825 deletions), largely written with Claude Code. A listed gap: enumerating actors who can access a resource is impossible, as SSO plugins and signed tokens mean the set cannot be predicted.

Read the original

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

Key terms

Datasette 1.0a20 SQLite Claude Code permission_resources_sql datasette-auth-github AWS S3

Was this summary useful?

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

Related reading