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.
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
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.