Simon Willison 11/4/2025

A new SQL-powered permissions system in Datasette 1.0a20

Read Original

Datasette 1.0a20's new permissions system migrates permission logic to SQL running in SQLite, addressing performance issues with large numbers of tables. The update introduces a new permission_resources_sql() plugin hook, enabling efficient filtering of accessible resources and includes debugging tools. This breaking API change improves how plugins handle authentication and authorization for actions like view-table and execute-sql.

A new SQL-powered permissions system in Datasette 1.0a20

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

2
Designing Design Systems
TkDodo Dominik Dorfmeister 2 votes
3
Introducing RSC Explorer
Dan Abramov 1 votes
5
Fragments Dec 11
Martin Fowler 1 votes
6
Adding Type Hints to my Blog
Daniel Feldroy 1 votes
7
Refactoring English: Month 12
Michael Lynch 1 votes
9