Refactor Policy Enforcer to Policy Checker

- Renamed the `PolicyEnforcer` interface and related implementations to `PolicyChecker` for clarity and consistency.
- Updated configuration keys in YAML files to reflect the new `checkPolicy` terminology.
- Adjusted related code, tests, and documentation to support the new naming convention and ensure compatibility.
- Enhanced comments and examples for the `checkPolicy` configuration to improve usability.
This commit is contained in:
Ayush Rawat
2026-03-23 04:08:13 +05:30
parent ff4d909b7e
commit 80e7b299f1
29 changed files with 2239 additions and 1229 deletions

View File

@@ -23,7 +23,7 @@ plugins=(
"schemav2validator"
"signer"
"signvalidator"
"policyenforcer"
"opapolicychecker"
)
for plugin in "${plugins[@]}"; do

View File

@@ -36,7 +36,6 @@ services:
volumes:
- ../config:/app/config
- ../schemas:/app/schemas
- ../policies:/app/policies
command: ["./server", "--config=/app/config/local-beckn-one-bap.yaml"]
onix-bpp:
@@ -58,7 +57,6 @@ services:
volumes:
- ../config:/app/config
- ../schemas:/app/schemas
- ../policies:/app/policies
command: ["./server", "--config=/app/config/local-beckn-one-bpp.yaml"]
sandbox-bap:

View File

@@ -36,7 +36,6 @@ services:
volumes:
- ../config:/app/config
- ../schemas:/app/schemas
- ../policies:/app/policies
command: ["./server", "--config=/app/config/local-simple.yaml"]
# Vault - Key Management Service