datasette / datasette-enrichments

Tools for running enrichments against data stored in Datasette
https://enrichments.datasette.io
Apache License 2.0
16 stars 0 forks source link

Permission checks #12

Closed simonw closed 7 months ago

simonw commented 7 months ago

This should only be available to the root user and users with specific permissions.

simonw commented 7 months ago

I shipped a enrichments permission that can be coupled to a database.

There are actually two cases to consider here:

We may have enrichments (e.g. ones with expensive API keys) that are restricted to some users, independent of which tables they are allowed to run them against.

Maybe enrichment is the permission for selecting which enrichments they can use and enrich-table is the one for specific tables?

simonw commented 7 months ago

This will be the first time I've ever done a Datasette permission where the "resource" is something other than a table (here it would be the slug of an enrichent). I hope that works!