Call Open Policy Agent (OPA) policies in WASM (Web Assembly) from .NET Core
-
Updated
Nov 3, 2025 - C#
The Open Policy Agent (OPA, pronounced “oh-pa”) is an open source, general-purpose policy engine that unifies policy enforcement across the stack. OPA provides a high-level declarative language that lets you specify policy as code and simple APIs to offload policy decision-making from your software. You can use OPA to enforce policies in microservices, Kubernetes, CI/CD pipelines, API gateways, and more.
What is OPA
Call Open Policy Agent (OPA) policies in WASM (Web Assembly) from .NET Core
The demonstration of modern authentication using BFF pattern and authorization enforcer using OPA
A .NET API for OPA policies compiled as WebAssembly modules.
A simple UI for the gatekeeper policies
A driver to connect via C# to Open Policy Agent (OPA) deployments
Open Policy Agent dotnet core extensions