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