action property
Can be one of ALLOW
, DENY
, CUSTOM
.
When the action is CUSTOM
, customProvider
must be specified. When the
action is ALLOW
, only requests matching the policy will be allowed. When
the action is DENY
, only requests matching the policy will be denied.
When a request arrives, the policies are evaluated in the following order:
- If there is a
CUSTOM
policy that matches the request, theCUSTOM
policy is evaluated using the custom authorization providers and the request is denied if the provider rejects the request. 2. If there are anyDENY
policies that match the request, the request is denied. 3. If there are noALLOW
policies for the resource or if any of theALLOW
policies match the request, the request is allowed. 4. Else the request is denied by default if none of the configured AuthzPolicies withALLOW
action match the request.
Required. Possible string values are:
- "AUTHZ_ACTION_UNSPECIFIED" : Unspecified action.
- "ALLOW" : Allow request to pass through to the backend.
- "DENY" : Deny the request and return a HTTP 404 to the client.
- "CUSTOM" : Delegate the authorization decision to an external authorization engine.
Implementation
core.String? action;