@onlineapps/conn-orch-validator 2.0.24 → 2.0.25
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/conn-orch-validator",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.25",
|
|
4
4
|
"description": "Validation orchestrator for OA Drive microservices - coordinates validation across all layers (base, infra, orch, business)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "OnlineApps",
|
|
22
22
|
"license": "PROPRIETARY",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@onlineapps/service-validator-core": "1.0.
|
|
24
|
+
"@onlineapps/service-validator-core": "1.0.12",
|
|
25
25
|
"@onlineapps/runtime-config": "1.0.2",
|
|
26
26
|
"ajv": "^8.12.0",
|
|
27
27
|
"ajv-formats": "^2.1.1",
|
|
@@ -110,8 +110,8 @@ class ValidationOrchestrator {
|
|
|
110
110
|
// Calculate current fingerprint
|
|
111
111
|
const currentFingerprint = await this.calculateFingerprint();
|
|
112
112
|
|
|
113
|
-
// Check if fingerprint matches
|
|
114
|
-
if (proof.
|
|
113
|
+
// Check if fingerprint matches (stored in validationData.contractFingerprint)
|
|
114
|
+
if (proof.validationData?.contractFingerprint !== currentFingerprint) {
|
|
115
115
|
console.log('[ValidationOrchestrator] Fingerprint mismatch (service changed)');
|
|
116
116
|
return false;
|
|
117
117
|
}
|
|
@@ -467,6 +467,7 @@ class ValidationOrchestrator {
|
|
|
467
467
|
const proof = {
|
|
468
468
|
serviceName: this.serviceName,
|
|
469
469
|
version: this.serviceVersion,
|
|
470
|
+
contractFingerprint: fingerprint, // Store contract fingerprint for subsequent starts
|
|
470
471
|
validator: '@onlineapps/conn-orch-validator',
|
|
471
472
|
validatorVersion: require('../package.json').version,
|
|
472
473
|
validatedAt: new Date().toISOString(),
|