mirror of
https://github.com/simonw/datasette.git
synced 2026-07-10 01:24:45 +02:00
Require permissions-debug for /-/threads
/-/threads exposes runtime internals - thread idents and asyncio task reprs including file paths - but only required view-instance. It now requires permissions-debug, like /-/actions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
This commit is contained in:
parent
0bf3a54716
commit
e5e9aca871
8 changed files with 30 additions and 14 deletions
|
|
@ -249,7 +249,7 @@ value replaced by `"***"` (utils/__init__.py:1532-1556).
|
|||
### GET /-/threads(.json)
|
||||
|
||||
app.py:2566-2569, `Datasette._threads` (app.py:2268-2285). Permission
|
||||
`view-instance`. No parameters.
|
||||
**`permissions-debug`** (exposes runtime internals). No parameters.
|
||||
|
||||
Response: `num_threads`, `threads` (list of `{name, ident, daemon}`),
|
||||
`num_tasks`, `tasks` (asyncio task repr strings). When the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue