Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christophwille/dotnet-opa-wasm
Call Open Policy Agent (OPA) policies in WASM (Web Assembly) from .NET Core
https://github.com/christophwille/dotnet-opa-wasm
csharp dotnet-core opa open-policy-agent wasm wasmtime web-assembly webassembly
Last synced: 24 days ago
JSON representation
Call Open Policy Agent (OPA) policies in WASM (Web Assembly) from .NET Core
- Host: GitHub
- URL: https://github.com/christophwille/dotnet-opa-wasm
- Owner: christophwille
- License: mit
- Created: 2019-11-19T07:59:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-29T16:10:54.000Z (3 months ago)
- Last Synced: 2024-11-09T18:12:10.809Z (about 1 month ago)
- Topics: csharp, dotnet-core, opa, open-policy-agent, wasm, wasmtime, web-assembly, webassembly
- Language: C#
- Homepage:
- Size: 2.7 MB
- Stars: 45
- Watchers: 7
- Forks: 11
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-opa - .NET Core Library - .NET SDK for calling Wasm-compiled OPA policies from .NET Core (WebAssembly (Wasm) / Typescript)
README
# Open Policy Agent for .NET
[NuGet package](https://www.nuget.org/packages/Opa.Wasm/)
Call Open Policy Agent (OPA) policies in WASM (Web Assembly) from C# .NET Core
A working sample is in src\Opa.Wasm.ConsoleSample. It mirrors the node sample, but not the node library (currently builtins not hooked up properly).
## References
(KubeCon NA is just starting, so this is an old video) You want to watch [Deep Dive: Open Policy Agent - Torin Sandall, Styra](https://www.youtube.com/watch?v=Vdy26oA3py8) first.
Docs are at https://github.com/open-policy-agent/opa/blob/master/docs/content/wasm.md
Writing policies https://www.openpolicyagent.org/docs/latest/how-do-i-write-policies/
Example and Integrations https://github.com/open-policy-agent/contrib
## Other Open Policy Agent WebAssemby SDKs
* https://github.com/open-policy-agent/npm-opa-wasm/
* https://github.com/open-policy-agent/golang-opa-wasm## Wasmtime Infos
GitHub repo https://github.com/bytecodealliance/wasmtime-dotnet
Docs https://bytecodealliance.github.io/wasmtime-dotnet/articles/intro.html