Setup
Install and run the Open Policy Engine (OPA) on your local machine
Installation
Download the Open Policy Agent as described here.
Set the permissions of the downloaded file to allow execution:
Path Configuration
Move the downloaded executable to a location in your system's PATH to make it accessible from any directory. A common location for custom binaries on macOS is ~/.local/bin. You can move it there with the following command:
Verify Setup
Test the setup by running a simple expression with OPA:
If everything is working correctly, you should see output like this:
Next Steps
Creating a dynamic policy
Verifying a verifiable credential using a dynamic policy
Last updated