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

Interactive debugging tool for "allow" blocks #908

Closed
simonw opened this issue Jul 24, 2020 · 3 comments
Closed

Interactive debugging tool for "allow" blocks #908

simonw opened this issue Jul 24, 2020 · 3 comments

Comments

@simonw
Copy link
Owner

simonw commented Jul 24, 2020

It might be good to have a little interactive tool which helps debug these things, since there are quite a few edge-cases and the damage caused if people use them incorrectly is substantial.
Originally posted by @simonw in #907 (comment)

@simonw
Copy link
Owner Author

simonw commented Jul 24, 2020

I can implement this as a plugin. Or it could ship as part of Datasette, somewhere under the /-/ namespace like the PermissionsDebugView and MessagesDebugView tools.

I'm going to ship it in Datasette core, to further reinforce the philosophy that debugging tools are important.

@simonw
Copy link
Owner Author

simonw commented Jul 24, 2020

Tool lives at https://latest.datasette.io/-/allow-debug

@simonw simonw added this to the Datasette 0.46 milestone Jul 24, 2020
simonw added a commit that referenced this issue Jul 25, 2020
true and false allow block values are now supported, closes #906

Added a bunch of demo links to the documentation, refs #908
@simonw
Copy link
Owner Author

simonw commented Jul 25, 2020

The documentation section here now has a bunch of different links to live demos illustrating different "allow" block syntax: https://github.com/simonw/datasette/blob/092874202c8748d6e0d4800eaf707c0145d95ffe/docs/authentication.rst#defining-permissions-with-allow-blocks

simonw added a commit that referenced this issue Aug 9, 2020
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