beckn / beckn/DEG

Fix missing registry URL, schema location, and testnet IDs in local-simple-bap.yaml

Open Beginner friendly
#418 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
61
Forks
55
Avg merge
1d 19h
Merged PRs (30d)
6

Description

While running the onix container using the local-simple-bap.yaml template, the node failed during the validateSign and validateSchema steps. Debugging the initialization logs revealed that the default configuration is missing critical endpoints for the registry and schema validator, and lacks the necessary network IDs to communicate with the India Energy Stack test network.

Modifications Required:
The following parameters are missing or incomplete in both the bapTxnReceiver and bapTxnCaller modules:

1. Registry Plugin (registry)
Missing the registry URL and the correct testnet IDs.
Current (Incorrect):
```yaml
registry:
id: dediregistry
config:
registryName: subscribers.beckn.one
allowedNetworkIDs: "nfh.global/testnet-deg,indiaenergystack.in/winroom-ies-data-exchange"

```
Fix (Correct):
```yaml
registry:
id: dediregistry
config:
url: https://fabric.nfh.global/registry/dedi
registryName: subscribers.beckn.one
allowedNetworkIDs: "nfh.global/testnet-deg,indiaenergystack.in/winroom-ies-data-exchange,indiaenergystack.in/test-ies-data-sharing-network"

```
2. Schema Validator (schemaValidator)
Missing the type and location parameters, causing the validator to fail initialization.
Current (Incorrect):
```yaml
schemaValidator:
id: schemav2validator
config:
cacheTTL: "3600"
# ...
```
Fix (Correct):
```yaml
schemaValidator:
id: schemav2validator
config:
type: url
location: https://raw.githubusercontent.com/beckn/protocol-specifications-v2/main/api/v2.0.0/beckn.yaml
cacheTTL: "3600"
# ...

```
(Note: The keyManager block also needs standard updates for local keys and network participant IDs to fully run, which I have done locally).

Impact:
Without these parameters, the BAP node drops incoming payloads and fails to handshake with the network. Applying these fixes resolves the runtime errors in the onix container and allows successful schema and signature validation.

Contributor guide

Open the contributing guide

Research direction

Open local-simple-bap.yaml and compare registry and schemaValidator under bapTxnReceiver and bapTxnCaller with the required blocks. Run the onix container and inspect validateSign and validateSchema initialization logs; done means registry and schema validation succeed and the India Energy Stack test network IDs are accepted. The issue also notes keyManager updates are needed for a full local run.

Written by the indexing model from the issue text.

Assessment

Tech stack
yaml
Domain
backend, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.