- OPA
- Params
- Params
OPA
The opa adapter exposes an Open Policy Agent enginethat provides sophisticated access control mechanisms.
This adapter supports the authorization template.
Params
Configuration format for the opa adapter.
Example configuration:
policy:- |+package mixerauthzpolicy = [{"rule": {"verbs": ["storage.buckets.get"],"users": ["bucket-admins"]}}]default allow = falseallow = true {rule = policy[_].ruleinput.subject.user = rule.users[_]input.action.method = rule.verbs[_]}checkMethod: "data.mixerauthz.allow"failClose: true
| Field | Type | Description | Required |
|---|---|---|---|
policy | string[] | List of OPA policies | No |
checkMethod | string | Query method to check.Format: data.<package name>.<method name> | No |
failClose | bool | Close the client request when adapter has a issue.If failClose is set to true and there is a runtime error,instead of disabling the adapter, close the client request | No |
