mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: scope allow_list to include resource_type (#19748)
This feature allows the `allow_list` in the scopes to specify the `type`
This commit is contained in:
@@ -169,7 +169,7 @@ This command answers the question: “Is the user allowed?”
|
||||
### Partial Evaluation
|
||||
|
||||
```bash
|
||||
opa eval --partial --format=pretty 'data.authz.allow' -d policy.rego --unknowns input.object.owner --unknowns input.object.org_owner --unknowns input.object.acl_user_list --unknowns input.object.acl_group_list -i input.json
|
||||
opa eval --partial --format=pretty 'data.authz.allow' -d policy.rego --unknowns input.object.id --unknowns input.object.owner --unknowns input.object.org_owner --unknowns input.object.acl_user_list --unknowns input.object.acl_group_list -i input.json
|
||||
```
|
||||
|
||||
This command performs a partial evaluation of the policy, specifying a set of unknown input parameters.
|
||||
|
||||
Reference in New Issue
Block a user