@onlineapps/conn-orch-registry 1.1.14 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/registryClient.js +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/conn-orch-registry",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Connector-registry-client provides the core communication mechanism for microservices in this environment. It enables them to interact with a services_registry to receive and fulfill tasks by submitting heartbeats or their API descriptions.",
|
|
6
6
|
"keywords": [
|
package/src/registryClient.js
CHANGED
|
@@ -67,7 +67,7 @@ class ServiceRegistryClient extends EventEmitter {
|
|
|
67
67
|
// Validation proof is now injected via constructor (not loaded here)
|
|
68
68
|
if (this.validationProof) {
|
|
69
69
|
console.log(`[RegistryClient] ${this.serviceName}: ✅ Validation proof provided via constructor`);
|
|
70
|
-
console.log(`[RegistryClient] ${this.serviceName}: Proof hash: ${this.validationProof.
|
|
70
|
+
console.log(`[RegistryClient] ${this.serviceName}: Proof hash: ${this.validationProof.validationProof.substring(0, 32)}...`);
|
|
71
71
|
} else {
|
|
72
72
|
console.log(`[RegistryClient] ${this.serviceName}: ⚠️ No validation proof - will use Tier 2 validation`);
|
|
73
73
|
}
|
|
@@ -184,11 +184,13 @@ class ServiceRegistryClient extends EventEmitter {
|
|
|
184
184
|
};
|
|
185
185
|
|
|
186
186
|
// Include validation proof if loaded
|
|
187
|
+
// Structure: { validationProof: "hash", validationData: { ... } }
|
|
188
|
+
// See: @onlineapps/service-validator-core/README.md#validation-proof-structure
|
|
187
189
|
if (this.validationProof) {
|
|
188
|
-
msg.validationProof = this.validationProof.
|
|
189
|
-
msg.validationData = this.validationProof.
|
|
190
|
+
msg.validationProof = this.validationProof.validationProof;
|
|
191
|
+
msg.validationData = this.validationProof.validationData;
|
|
190
192
|
console.log(`[RegistryClient] ${this.serviceName}: ✅ Including validation proof in registration message`);
|
|
191
|
-
console.log(`[RegistryClient] ${this.serviceName}: Proof hash: ${this.validationProof.
|
|
193
|
+
console.log(`[RegistryClient] ${this.serviceName}: Proof hash: ${this.validationProof.validationProof.substring(0, 32)}...`);
|
|
192
194
|
} else {
|
|
193
195
|
console.log(`[RegistryClient] ${this.serviceName}: ⚠️ NO validation proof available - Registry will perform Tier 2 validation`);
|
|
194
196
|
}
|