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:
user
is in the list of valid usersaction
is in the list of valid actionsresource
is 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.