mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-12-04 08:09:16 +00:00
feat: check what a script, flow or app reads after a grant in the access view
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user