Implement Policy Enforcer Plugin
- Added a new Policy Enforcer plugin to evaluate incoming messages against OPA policies. - Configurable via YAML with options for policy sources, actions, and query. - Integrated into existing configuration files for BAP and BPP. - Updated related tests and documentation for the new functionality. - Enhanced plugin manager to support Policy Enforcer instantiation.
This commit is contained in:
@@ -23,6 +23,7 @@ plugins=(
|
||||
"schemav2validator"
|
||||
"signer"
|
||||
"signvalidator"
|
||||
"policyenforcer"
|
||||
)
|
||||
|
||||
for plugin in "${plugins[@]}"; do
|
||||
|
||||
@@ -36,6 +36,7 @@ services:
|
||||
volumes:
|
||||
- ../config:/app/config
|
||||
- ../schemas:/app/schemas
|
||||
- ../policies:/app/policies
|
||||
command: ["./server", "--config=/app/config/local-beckn-one-bap.yaml"]
|
||||
|
||||
onix-bpp:
|
||||
@@ -57,6 +58,7 @@ services:
|
||||
volumes:
|
||||
- ../config:/app/config
|
||||
- ../schemas:/app/schemas
|
||||
- ../policies:/app/policies
|
||||
command: ["./server", "--config=/app/config/local-beckn-one-bpp.yaml"]
|
||||
|
||||
sandbox-bap:
|
||||
|
||||
@@ -36,6 +36,7 @@ services:
|
||||
volumes:
|
||||
- ../config:/app/config
|
||||
- ../schemas:/app/schemas
|
||||
- ../policies:/app/policies
|
||||
command: ["./server", "--config=/app/config/local-simple.yaml"]
|
||||
|
||||
# Vault - Key Management Service
|
||||
|
||||
Reference in New Issue
Block a user