Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/-/permissions debugging tool #788

Closed
simonw opened this issue Jun 1, 2020 · 2 comments
Closed

/-/permissions debugging tool #788

simonw opened this issue Jun 1, 2020 · 2 comments

Comments

@simonw
Copy link
Owner

simonw commented Jun 1, 2020

Debugging tool idea: /-/permissions page which shows you the actor and lets you type in the strings for action, resource_type and resource_identifier - then shows you EVERY plugin hook that would have executed and what it would have said, plus when the chain would have terminated.

Bonus: if you're logged in as the root user (or a user that matches some kind of permission check, maybe a check for permissions_debug) you get to see a rolling log of the last 30 permission checks and what the results were across the whole of Datasette. This should make figuring out permissions policies a whole lot easier.

Originally posted by @simonw in #699 (comment)

@simonw simonw changed the title Debugging tool idea: /-/permissions page /-/permissions debugging tool Jun 1, 2020
@simonw simonw added this to the Datasette 1.0 milestone Jun 1, 2020
@simonw
Copy link
Owner Author

simonw commented Jun 1, 2020

I can use a deque with a max length for this: https://docs.python.org/3/library/collections.html#deque-objects

@simonw simonw closed this as completed in dfdbdf3 Jun 1, 2020
@simonw
Copy link
Owner Author

simonw commented Jun 1, 2020

Looks like this (at the moment):

Debug_permissions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant