This is a WASI test policy that validates raw requests.
The policy accepts requests in the following format:
{
"request": {
"user": "tonio"
"action": "eats",
"resource": "hay",
}
}and validates that:
useris in the list of valid usersactionis in the list of valid actionsresourceis in the list of valid resources
This policy has configurable settings:
validUsers: a list of valid users. Cannot be empty.validActions: a list of valid actions.Cannot be empty.validResources: a list of valid resources. Cannot be empty.