feat: check what a script, flow or app reads after a grant in the access view

This commit is contained in:
Guilhem Lemouel
2026-12-01 03:36:45 -08:00
parent 2a4cb1faa3
commit 06bb3408d0
11 changed files with 651 additions and 245 deletions
+5 -3
View File
@@ -5,9 +5,11 @@ what a script, flow or app reads when it runs, with each read credited to the id
runtime performs it as. Two features take a slice of that answer
(`frontend/src/lib/components/access/detectNeeds.ts`):
- The access view's "What it reads" (`neededByGrantee`) lists what a member needs to run the
item: what whoever opens it reads, the item's own reads when it runs as its caller or as that
member, and the reads of a nested runnable that runs as that member.
- The access view's check after a grant (`neededByGrantee`, in `access/neededAccess.ts`) lists
what a member still needs to run the item: what whoever opens it reads, the item's own reads
when it runs as its caller or as that member, and the reads of a nested runnable that runs as
that member. When the item runs as an account, it also lists what that account can't open
(`neededByRunAs`), since every run fails then. Folder grants are not checked.
- The run-as settings (`neededByRunAs`) list what an account needs when the item runs as it: the
item's own reads and the reads of a nested runnable that runs as that account.