Logs relating to the application of an OPA policy

The log fields described below relate to the application of an OPA policy. For more information, see the section Implementing the authorization rules with Open Policy Agent.

The policy.wasm and policy.data.json files are optional. If one of the files is not present, the service starts and no policies are applied. A log is issued to indicate that the policy is disabled.

Field

Description

Type

Examples

status

Status of the policy.

String

Prescribed values:

"enabled", "disabled", "loading"

loadingFile

File is being loaded.

String

Prescribed values:

"policy", "data"

type

Type of the applied policy.

String

Prescribed value:

"opa"