You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure how feasible this is, but it struck me that we could have an option to write a record to a database every time one of the permission checks succeeds, here:
Being able to see "user tom was granted update-row on table X because they were a member of group Y" could really help with debugging permissions issues.
Downside: we fire those checks a LOT - we fire update-row check just to see if they should have a visible update row button, for example.
Capping the size of the table would prevent it from absorbing too many resources (other than extra CPU).
I'm not sure how feasible this is, but it struck me that we could have an option to write a record to a database every time one of the permission checks succeeds, here:
datasette-acl/datasette_acl/__init__.py
Lines 285 to 306 in 0be108e
This could go to a capped in-memory table that deletes after 1,000 records, or it could be configured to log permanently.
Capturing the page that the request came from would be useful too, but is a lot harder because that plugin hook doesn't provide access to the request.
The text was updated successfully, but these errors were encountered: