iobroker.eos-admin 9.0.21 → 9.0.24
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/NEXOWATT_EOS_BUILD_INFO.json +17 -11
- package/README.md +32 -8
- package/START_HIER_9.0.21.md +53 -0
- package/START_HIER_9.0.22.md +48 -0
- package/START_HIER_9.0.23.md +47 -0
- package/START_HIER_9.0.24.md +70 -0
- package/adminWww/.vite/manifest.json +55 -55
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13760 -13760
- package/adminWww/assets/{AdapterUpdateDialog-Dxl_b7Op.js → AdapterUpdateDialog-D7sI5VRm.js} +1 -1
- package/adminWww/assets/{Adapters-CVKKhXmI.js → Adapters-DS6ITaEH.js} +1 -1
- package/adminWww/assets/{ConfigManager-Bf6nTAkL.js → ConfigManager-_iFDSXuD.js} +1 -1
- package/adminWww/assets/{Enums-CJHVJY7t.js → Enums-Bdv7Tqmf.js} +1 -1
- package/adminWww/assets/{Fields-DWHbZKvm.js → Fields-CWUY1AnV.js} +1 -1
- package/adminWww/assets/{Files-a6owMTXA.js → Files-BveV1b_F.js} +1 -1
- package/adminWww/assets/{Hosts-LtEMeXpV.js → Hosts-B1HWZLGl.js} +1 -1
- package/adminWww/assets/{Instances-DhChziA1.js → Instances-DYvbOlj7.js} +1 -1
- package/adminWww/assets/{Intro-Cyq9gVDC.js → Intro-pYT2FzIK.js} +1 -1
- package/adminWww/assets/{Logs-wcramXsg.js → Logs-D2ZbCY3Z.js} +1 -1
- package/adminWww/assets/{Objects-DINVHd_e.js → Objects-CTUxbXJM.js} +1 -1
- package/adminWww/assets/{Overview-DK4R41zR.js → Overview-i6PsoN_F.js} +1 -1
- package/adminWww/assets/{State-DcEACXzL.js → State-BEQXNcI3.js} +1 -1
- package/adminWww/assets/{UsedResources-C1LcM0Rb.js → UsedResources-CLc1afk1.js} +1 -1
- package/adminWww/assets/{Users-DvDdSyDY.js → Users-DG6i7iqC.js} +1 -1
- package/adminWww/assets/{bootstrap-Dbj_GbnP.js → bootstrap-4KhX67tn.js} +4 -4
- package/adminWww/assets/{hostInit-BNFIx0-f.js → hostInit-B08JmaAP.js} +1 -1
- package/adminWww/assets/{icons-material-DVbdXNgr.js → icons-material-sOCHi6x9.js} +1 -1
- package/adminWww/assets/{index-CoKP1NSA.js → index-DHSNS0v8.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-CMvku1F1.js → installSVGRenderer-CWaaO5tF.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-ac330bce.js → mf-entry-bootstrap-0-e7c54f7f.js} +2 -2
- package/adminWww/index.html +23 -23
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/{remoteEntry-eos-9.0.21.js → remoteEntry-eos-9.0.24.js} +1 -1
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosHistoryBackupScope.js +73 -0
- package/build/lib/eosHistoryBackupScope.js.map +1 -0
- package/build/lib/eosKiosk.js +348 -0
- package/build/lib/eosKiosk.js.map +1 -0
- package/build/lib/eosLegacyMigration.js +14 -3
- package/build/lib/eosLegacyMigration.js.map +1 -1
- package/build/lib/eosLicenseService.js +1 -1
- package/build/lib/eosLicenseService.js.map +1 -1
- package/build/lib/eosModuleConfigStore.js +1 -1
- package/build/lib/eosModuleConfigStore.js.map +1 -1
- package/build/lib/eosModuleHost.js +241 -21
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +40 -6
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosModuleProcess.js +317 -0
- package/build/lib/eosModuleProcess.js.map +1 -0
- package/build/lib/eosModuleProcessProtocol.js +213 -0
- package/build/lib/eosModuleProcessProtocol.js.map +1 -0
- package/build/lib/eosModuleProcessWorker.js +279 -0
- package/build/lib/eosModuleProcessWorker.js.map +1 -0
- package/build/lib/eosPostgresProvisioning.js +189 -0
- package/build/lib/eosPostgresProvisioning.js.map +1 -0
- package/build/lib/eosRuntimeHealth.js +155 -0
- package/build/lib/eosRuntimeHealth.js.map +1 -0
- package/build/lib/eosUiProcess.js +689 -0
- package/build/lib/eosUiProcess.js.map +1 -0
- package/build/lib/eosUiProcessRpc.js +279 -0
- package/build/lib/eosUiProcessRpc.js.map +1 -0
- package/build/lib/eosUiProcessWorker.js +399 -0
- package/build/lib/eosUiProcessWorker.js.map +1 -0
- package/build/lib/eosUiSecretCodec.js +64 -0
- package/build/lib/eosUiSecretCodec.js.map +1 -0
- package/build/lib/eosUnifiedBoundary.js +28 -4
- package/build/lib/eosUnifiedBoundary.js.map +1 -1
- package/build/lib/eosUpdateSnapshot.js +32 -1
- package/build/lib/eosUpdateSnapshot.js.map +1 -1
- package/build/lib/web.js +104 -7
- package/build/lib/web.js.map +1 -1
- package/docs/reports/unified-9.0.21/CRA_NACHWEISSTAND.md +159 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_BACKEND_REVIEW.md +30 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_UI_REVIEW.md +44 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_WORKER_REVIEW.md +147 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_WORKER_ZWEITPRUEFUNG.md +108 -0
- package/docs/reports/unified-9.0.21/DEVICE_STABILITY_REVIEW.md +50 -0
- package/docs/reports/unified-9.0.21/EMS_STABILITAET.md +41 -0
- package/docs/reports/unified-9.0.21/HISTORY_TARIFF_STABILITY_REVIEW.md +48 -0
- package/docs/reports/unified-9.0.21/MQTT_ZWEITPRUEFUNG_EMS.md +47 -0
- package/docs/reports/unified-9.0.21/PERSISTENZ_STABILITAET.md +76 -0
- package/docs/reports/unified-9.0.21/PRUEFBERICHT.md +64 -0
- package/docs/reports/unified-9.0.21/SECURITY_STABILITY_REVIEW.md +118 -0
- package/docs/reports/unified-9.0.21/UI_SECURITY_GATE_REVIEW.md +62 -0
- package/docs/reports/unified-9.0.21/UPDATE_HTTP_SNAPSHOT_PRUEFUNG.md +46 -0
- package/docs/reports/unified-9.0.21/raw/INDEX.json +1307 -0
- package/docs/reports/unified-9.0.21/raw/audit-full.log +345 -0
- package/docs/reports/unified-9.0.21/raw/audit-full.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/audit-runtime.log +23 -0
- package/docs/reports/unified-9.0.21/raw/audit-runtime.result.json +15 -0
- package/docs/reports/unified-9.0.21/raw/backend-final.log +5 -0
- package/docs/reports/unified-9.0.21/raw/backend-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/cra/frontend-installer-sbom.json +32 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-glue/root-glue-focused-node24.tap +34 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/real920-archive-inspection.json +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node22.log +110 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node24.log +24 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-verification.json +54 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node22.tap +86 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node24.tap +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-strict-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/independent-worker-probes.cjs +109 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node22.tap +86 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node24.tap +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node22.tap +44 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node24.tap +13 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/receipt.json +89 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/receipt.json +42 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-catch-node22.log +1959 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node22.log +1968 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node24.log +337 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node22.log +1895 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node24.log +317 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node22.log +1959 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node24.log +327 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node22.log +36 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node24.log +28 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node22.log +36 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node24.log +28 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node22.log +15 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node24.log +13 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node22.log +16 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node24.log +14 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node22.log +74 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node24.log +46 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-drain-test-update.json +206 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-runtime-review.json +150 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-final.json +275 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands.json +134 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node22.log +3 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node24.log +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-command-replay-repro.cjs +38 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-shutdown-repro.cjs +31 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node22.log +322 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node24.log +55 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/run-evidence.py +23 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/run-final-evidence.py +20 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-920.json +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-921.json +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/source-hashes.json +16 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/ems/baseline-files-eslint.json +1 -0
- package/docs/reports/unified-9.0.21/raw/ems/changed-files-eslint.json +1 -0
- package/docs/reports/unified-9.0.21/raw/ems/engine.patch +38 -0
- package/docs/reports/unified-9.0.21/raw/ems/eslint-delta.json +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/evidence.json +171 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-baseline-node24.log +124 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node22.log +56 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node24.log +15 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-owned-methods.patch +133 -0
- package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node22.log +460 -0
- package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node24.log +82 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node24.log +33 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node22.log +153 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node24.log +39 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node24.log +33 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-queue-inheritance-before.log +28 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-baseline-node24.log +64 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-initial-timing.log +32 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node22.log +44 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node24.log +13 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.cjs +23 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.log +119 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node24.log +121 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-node22.log +68 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-node24.log +17 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-code-delta-inventory.json +32 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-farm-fingerprint-moves.json +74 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-policy-tests.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node22.log +5 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node24.log +8 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-initial.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-main-full-delta.patch +135 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-changes.json +93 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-findings-before.json +3185 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node22.json +28833 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node24.json +28833 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-inventory-before.json +28991 -0
- package/docs/reports/unified-9.0.21/raw/ems/update-ui-reviewed-findings.cjs +59 -0
- package/docs/reports/unified-9.0.21/raw/frontend-build.log +152 -0
- package/docs/reports/unified-9.0.21/raw/frontend-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/frontend-installer-sbom.json +32 -0
- package/docs/reports/unified-9.0.21/raw/history/baseline920-influx-sequence-node24.log +12 -0
- package/docs/reports/unified-9.0.21/raw/history/baseline920-outage-node24.log +64 -0
- package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node22.log +38 -0
- package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node24.log +36 -0
- package/docs/reports/unified-9.0.21/raw/history/lint-baseline-comparison.json +83 -0
- package/docs/reports/unified-9.0.21/raw/history/lint-scope.cjs +29 -0
- package/docs/reports/unified-9.0.21/raw/history/regression-node22.log +438 -0
- package/docs/reports/unified-9.0.21/raw/history/regression-node24.log +75 -0
- package/docs/reports/unified-9.0.21/raw/history/results-node22.json +37 -0
- package/docs/reports/unified-9.0.21/raw/history/results-node24.json +66 -0
- package/docs/reports/unified-9.0.21/raw/history/run-checks.py +18 -0
- package/docs/reports/unified-9.0.21/raw/history/source-evidence.json +83 -0
- package/docs/reports/unified-9.0.21/raw/installer-build.log +26 -0
- package/docs/reports/unified-9.0.21/raw/installer-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/keygen-source.json +6 -0
- package/docs/reports/unified-9.0.21/raw/lint-final.log +16 -0
- package/docs/reports/unified-9.0.21/raw/lint-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/modules-build.log +5 -0
- package/docs/reports/unified-9.0.21/raw/modules-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node22-tests-final.log +13274 -0
- package/docs/reports/unified-9.0.21/raw/node22-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.log +7 -0
- package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.21/raw/node24-tests-final.log +2223 -0
- package/docs/reports/unified-9.0.21/raw/node24-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-http-draft-revision-node24.log +50 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-late-commit-overwrite-node24.log +30 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-save-lifecycle-node24.log +59 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-backend-types.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-editor-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-eebus-editor-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-final-format-review.json +24 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-http-before.log +177 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-snapshot-before.log +80 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.log +1019 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.receipt.json +28 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.log +174 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.receipt.json +28 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-eslint-final.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.log +137 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.receipt.json +21 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.log +30 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.receipt.json +21 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-strict-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-typecheck-final.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-after.log +3 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-before-observation.json +25 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-repro.cjs +7 -0
- package/docs/reports/unified-9.0.21/raw/persistence/source-files.pre-final-format.sha256 +14 -0
- package/docs/reports/unified-9.0.21/raw/persistence/source-files.sha256 +14 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/obsolete-assets-920-added.json +94 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.log +49 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.result.json +15 -0
- package/docs/reports/unified-9.0.21/raw/sbom-runtime.log +7 -0
- package/docs/reports/unified-9.0.21/raw/sbom-runtime.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.log +1 -0
- package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/backend-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node22.tap +495 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node24.tap +88 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node22.tap +179 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node24.tap +36 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/results.json +118 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node22.tap +63 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node24.tap +47 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-node22.tap +148 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-node24.tap +30 -0
- package/docs/reports/unified-9.0.21/raw/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-docs-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-final.log +7 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.log +1 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-final.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-secret-final.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-secret-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-security-final.log +8 -0
- package/docs/reports/unified-9.0.21/raw/ui-security-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/baseline-ui.log +280 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/browser-preview.test.cjs +170 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/draft-regression.log +214 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/eos-updates-before.ts +171 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/results.json +90 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/source-evidence.json +30 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/type-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/type-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/ui-node22.log +98 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/ui-node24.log +22 -0
- package/docs/reports/unified-9.0.22/BACKUP_POSTGRES_FOLLOWUP.md +44 -0
- package/docs/reports/unified-9.0.22/ENERGIEFLUSS_BROWSERPRUEFUNG.md +40 -0
- package/docs/reports/unified-9.0.22/ENERGY_FLOW_BACKEND.md +44 -0
- package/docs/reports/unified-9.0.22/FLOW_TARIFF_INDEPENDENT_REVIEW.md +33 -0
- package/docs/reports/unified-9.0.22/OCPP_STOP_WRITER_REVIEW.md +27 -0
- package/docs/reports/unified-9.0.22/POSTGRESQL_SYSTEM_SETUP.md +34 -0
- package/docs/reports/unified-9.0.22/PRUEFBERICHT.md +85 -0
- package/docs/reports/unified-9.0.22/flow/PRUEFVERMERK.md +42 -0
- package/docs/reports/unified-9.0.22/flow/frontend-cadence-tests.log +37 -0
- package/docs/reports/unified-9.0.22/flow/frontend-source-hashes.json +13 -0
- package/docs/reports/unified-9.0.22/flow/frontend-tests.log +31 -0
- package/docs/reports/unified-9.0.22/postgres-history-review.md +43 -0
- package/docs/reports/unified-9.0.22/postgres-real-review.tap +21 -0
- package/docs/reports/unified-9.0.22/postgres-review-lint.log +0 -0
- package/docs/reports/unified-9.0.22/postgres-review-typecheck.log +0 -0
- package/docs/reports/unified-9.0.22/postgres-review-unit-api.tap +25 -0
- package/docs/reports/unified-9.0.22/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/eslint-backup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-after.tap +13 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-before.tap +54 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-test-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/influx-real-node24.tap +11 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/scope-hashes.json +51 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-before.tap +96 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-flow.tap +12 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/tests-node24.tap +116 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup-scope.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-postgres-setup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/current/admin-build.log +152 -0
- package/docs/reports/unified-9.0.22/raw/current/availability-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/backend-build.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/baseline-repairs.log +60 -0
- package/docs/reports/unified-9.0.22/raw/current/baseline-unified.log +1675 -0
- package/docs/reports/unified-9.0.22/raw/current/combined-fixes.log +65 -0
- package/docs/reports/unified-9.0.22/raw/current/control-final.log +25 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.json +244 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.json +63 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/current/lint-final.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/lint.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/markdown-build.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/modules-build.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/pre-ocpp-full.log +2337 -0
- package/docs/reports/unified-9.0.22/raw/current/production-audit.json +22 -0
- package/docs/reports/unified-9.0.22/raw/current/production-audit.stderr +1 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-build-final.log +8 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-build.log +32 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-sync.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/safety-envelope-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/sbom-lock-graph.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/sbom.log +6120 -0
- package/docs/reports/unified-9.0.22/raw/current/station-permission-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/storage-feedforward-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/typecheck.log +5 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/eslint.txt +0 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-availability.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-safety.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-station.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-tests.tap +124 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-availability.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-safety.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-station.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-tests.tap +26 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/typecheck.txt +0 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node22.tap +30 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node24.tap +11 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/environment.json +7 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/lint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/node22.tap +164 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/node24.tap +33 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/typecheck.log +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-runtime.json +11 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.json +49 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/build.log +18 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/environment.json +38 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/lint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/node22.tap +144 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/node24.tap +30 -0
- package/docs/reports/unified-9.0.22/raw/node22-tests-final.log +14086 -0
- package/docs/reports/unified-9.0.22/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.22/raw/node24-tests-final.log +2356 -0
- package/docs/reports/unified-9.0.22/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node22.tap +72 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node24.tap +70 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/status-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/MODULE_PROCESS_IMPLEMENTATION.md +43 -0
- package/docs/reports/unified-9.0.23/OCPP_0.4.3_ERGEBNIS.json +24 -0
- package/docs/reports/unified-9.0.23/OCPP_0.4.3_PRUEFBERICHT.md +50 -0
- package/docs/reports/unified-9.0.23/OCPP_AUTOMATISCHE_ZUORDNUNG.md +49 -0
- package/docs/reports/unified-9.0.23/OCPP_CM_INTEGRATION.md +31 -0
- package/docs/reports/unified-9.0.23/PROZESSDIAGNOSE.md +35 -0
- package/docs/reports/unified-9.0.23/PRUEFBERICHT.md +75 -0
- package/docs/reports/unified-9.0.23/UI_EMS_PROZESSGRENZE.md +36 -0
- package/docs/reports/unified-9.0.23/UI_PROCESS_INDEPENDENT_FOLLOWUP.md +33 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review-node22.tap +86 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review-node24.tap +20 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review.md +39 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review.tap +20 -0
- package/docs/reports/unified-9.0.23/module-process-final.tap +27 -0
- package/docs/reports/unified-9.0.23/module-process-static.json +57 -0
- package/docs/reports/unified-9.0.23/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.23/raw/build-backend-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/build-frontend.log +152 -0
- package/docs/reports/unified-9.0.23/raw/build-installer.log +26 -0
- package/docs/reports/unified-9.0.23/raw/build-ui-final.log +7 -0
- package/docs/reports/unified-9.0.23/raw/current/evcs-stop-writer-ocpp043.txt +20 -0
- package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-lint.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-tests.txt +28 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.json +49 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.stderr.txt +0 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-lint.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-tests.txt +27 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-types.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/eos-production-audit.json +22 -0
- package/docs/reports/unified-9.0.23/raw/idle-pwa-node22.log +75 -0
- package/docs/reports/unified-9.0.23/raw/idle-pwa-node24.log +22 -0
- package/docs/reports/unified-9.0.23/raw/lint-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/node22-tests-final.log +14612 -0
- package/docs/reports/unified-9.0.23/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.23/raw/node24-tests-final.log +2443 -0
- package/docs/reports/unified-9.0.23/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-auto-discovery.log +21 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-discovery-browser.json +55 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-discovery-lifecycle-regression.log +48 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-production-audit.json +69 -0
- package/docs/reports/unified-9.0.23/raw/typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/discovery-review.tap +21 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/lint.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/node22.tap +118 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/node24.tap +112 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/root-typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-build-node24.tap +196 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-node22.tap +200 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-lint.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node22.tap +92 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node24.tap +90 -0
- package/docs/reports/unified-9.0.23/ui-process-contract-review.md +30 -0
- package/docs/reports/unified-9.0.23/ui-process-final-review-node22.tap +50 -0
- package/docs/reports/unified-9.0.23/ui-process-final-review-node24.tap +14 -0
- package/docs/reports/unified-9.0.23/ui-process-followup-hashes.json +13 -0
- package/docs/reports/unified-9.0.23/ui-process-operational-review-node22.tap +30 -0
- package/docs/reports/unified-9.0.23/ui-process-operational-review-node24.tap +11 -0
- package/docs/reports/unified-9.0.23/ui-process-review-node22.tap +48 -0
- package/docs/reports/unified-9.0.23/ui-process-review-node24.tap +46 -0
- package/docs/reports/unified-9.0.24/BACKUP_INTEROP_PRUEFBERICHT.md +48 -0
- package/docs/reports/unified-9.0.24/KIOSK_FRONTEND_BROWSERPRUEFUNG.md +49 -0
- package/docs/reports/unified-9.0.24/KIOSK_UNABHAENGIGER_REVIEW.md +21 -0
- package/docs/reports/unified-9.0.24/OCPP_HOST_MIGRATION.md +41 -0
- package/docs/reports/unified-9.0.24/OCPP_NAMESPACE_REGELPFAD.md +55 -0
- package/docs/reports/unified-9.0.24/OCPP_UNABHAENGIGER_REVIEW.md +37 -0
- package/docs/reports/unified-9.0.24/OCPP_VERWALTUNG.md +33 -0
- package/docs/reports/unified-9.0.24/PRUEFBERICHT.md +54 -0
- package/docs/reports/unified-9.0.24/PUBLISH_OVERLAY_9_0_21.md +23 -0
- package/docs/reports/unified-9.0.24/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/ems-independence-node24.tap +9 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/final-node22.tap +175 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/final-node24.tap +35 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node22.tap +132 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node24.tap +27 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-review-node24.tap +13 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-update-snapshot-node24.tap +22 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/lint-source.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/lint-tests.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/ocpp-backup-node24.tap +10 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/own-source-hashes.json +12 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/update-snapshot-node24.tap +20 -0
- package/docs/reports/unified-9.0.24/raw/build.log +200 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.json +69 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.stderr.txt +3 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.json +69 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.stderr.txt +2 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node22.txt +253 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node24.txt +52 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-lint.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-lease-registration-before.txt +28 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node22.txt +302 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node24.txt +55 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-native-generic-before.txt +25 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.json +49 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.stderr.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/eos-production-audit.json +77 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node22.log +16 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node24.log +14 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-browser-node22.json +57 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-browser-node24.json +57 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-idle-node22.log +215 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-idle-node24.log +42 -0
- package/docs/reports/unified-9.0.24/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.24/raw/node22-tests-final.log +15517 -0
- package/docs/reports/unified-9.0.24/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.24/raw/node24-tests-final.log +2595 -0
- package/docs/reports/unified-9.0.24/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-node22.tap +105 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-node24.tap +24 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node22.tap +818 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node24.tap +140 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-hosted-mapping-browser.log +2 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-legacy-mapping-browser.log +2 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-namespace-control.log +49 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-node22.tap +278 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-node24.tap +52 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance-922-923.json +32 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance.json +19 -0
- package/docs/reports/unified-9.0.24/raw/typecheck.log +5 -0
- package/docs/unified/EMS_BEDIEN_DATENPUNKTE_9_0_22.md +51 -0
- package/docs/unified/HISTORY_UI_9_0_22.md +75 -0
- package/docs/unified/POSTGRESQL_9_0_22.md +89 -0
- package/io-package.json +16 -17
- package/modules/backup/README.md +10 -0
- package/modules/backup/RECOVERY-9.0.22.md +59 -0
- package/modules/backup/admin/index.html +2 -1
- package/modules/backup/admin/index.js +17 -1
- package/modules/backup/build/config.js +2 -0
- package/modules/backup/build/coverage.js +64 -0
- package/modules/backup/build/creators.js +22 -17
- package/modules/backup/build/databaseTargets.js +42 -0
- package/modules/backup/build/index.js +47 -4
- package/modules/backup/build/influxIntegrity.js +159 -0
- package/modules/backup/build/postgresHistory.js +91 -0
- package/modules/backup/build/preflight.js +3 -8
- package/modules/backup/build/publicTrust.js +46 -0
- package/modules/backup/build/restore-cli.js +72 -1
- package/modules/backup/build/storageRetention.js +26 -0
- package/modules/backup/build/worker.js +18 -1
- package/modules/backup/src/config.ts +2 -0
- package/modules/backup/src/coverage.ts +50 -0
- package/modules/backup/src/creators.ts +20 -17
- package/modules/backup/src/databaseTargets.ts +45 -0
- package/modules/backup/src/index.ts +37 -4
- package/modules/backup/src/influxIntegrity.ts +125 -0
- package/modules/backup/src/postgresHistory.ts +66 -0
- package/modules/backup/src/preflight.ts +3 -10
- package/modules/backup/src/publicTrust.ts +34 -0
- package/modules/backup/src/restore-cli.ts +55 -4
- package/modules/backup/src/storageRetention.ts +20 -0
- package/modules/backup/src/types.ts +5 -0
- package/modules/backup/src/worker.ts +18 -2
- package/modules/backup/test/completeness.test.cjs +193 -0
- package/modules/backup/test/hosted.test.cjs +43 -3
- package/modules/backup/test/influx-real.test.cjs +75 -0
- package/modules/backup/test/lifecycle.test.cjs +7 -5
- package/modules/backup/test/ocpp-coverage.test.cjs +152 -0
- package/modules/devices/admin/index.html +1 -1
- package/modules/eebus/admin/index.html +1 -1
- package/modules/ocpp/LICENSE +21 -0
- package/modules/ocpp/README.md +61 -0
- package/modules/ocpp/admin/config-fields.json +353 -0
- package/modules/ocpp/admin/index.html +52 -0
- package/modules/ocpp/admin/index.js +228 -0
- package/modules/ocpp/admin/style.css +27 -0
- package/modules/ocpp/build/index.js +401 -0
- package/modules/ocpp/build/operationGuard.js +26 -0
- package/modules/ocpp/build/server.js +155 -0
- package/modules/ocpp/eslint.config.mjs +13 -0
- package/modules/ocpp/index.js +3 -0
- package/modules/ocpp/native-defaults.json +44 -0
- package/modules/ocpp/ocpp/common.js +646 -0
- package/modules/ocpp/ocpp/compact.js +332 -0
- package/modules/ocpp/ocpp/configuration.js +364 -0
- package/modules/ocpp/ocpp/eos-contract.js +149 -0
- package/modules/ocpp/ocpp/freshness.d.ts +10 -0
- package/modules/ocpp/ocpp/freshness.js +272 -0
- package/modules/ocpp/ocpp/schemas/NOTICE.md +17 -0
- package/modules/ocpp/ocpp/schemas/ocpp2_0_1_official.json +1 -0
- package/modules/ocpp/ocpp/schemas/ocpp2_1_official.json +1 -0
- package/modules/ocpp/ocpp/server.js +3 -0
- package/modules/ocpp/ocpp/v16.js +213 -0
- package/modules/ocpp/ocpp/v201.js +4 -0
- package/modules/ocpp/ocpp/v21.js +4 -0
- package/modules/ocpp/ocpp/v2base.js +255 -0
- package/modules/ocpp/package.json +11 -0
- package/modules/ocpp/provenance.json +33 -0
- package/modules/ocpp/runtime.d.ts +16 -0
- package/modules/ocpp/runtime.js +3391 -0
- package/modules/ocpp/src/index.ts +463 -0
- package/modules/ocpp/src/operationGuard.ts +29 -0
- package/modules/ocpp/src/server.ts +193 -0
- package/modules/ocpp/test/configuration-runtime.test.js +786 -0
- package/modules/ocpp/test/core.test.js +772 -0
- package/modules/ocpp/test/eos-contract.test.js +67 -0
- package/modules/ocpp/test/hosted.test.cjs +165 -0
- package/modules/ocpp/tsconfig.json +7 -0
- package/modules/ocpp/validation/manifest.json +36 -0
- package/modules/ocpp/validation/node22-tests.log +525 -0
- package/modules/ocpp/validation/node24-tests.log +92 -0
- package/package.json +27 -11
- package/public/eos-migration/index.html +1 -1
- package/public/eos-migration/index.js +2 -2
- package/public/eos-runtime/index.html +35 -0
- package/public/eos-runtime/index.js +111 -0
- package/public/eos-runtime/style.css +18 -0
- package/release-manifests/unified/build-environment.cdx.json +767 -131
- package/release-manifests/unified/files.json +612 -207
- package/release-manifests/unified/obsolete-admin-assets.json +210 -6
- package/release-manifests/unified/runtime.cdx.json +871 -143
- package/release-manifests/unified/validation.json +15 -15
- package/reports/unified/ocpp-pure-pv-9.0.22/PRUEFVERMERK.md +35 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/auto-pv-phases.log +1 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/control-tests.log +11 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/ocpp-stability.log +1 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/rc60.log +1 -0
- package/reports/unified/tariff-energy-flow-9.0.22/PRUEFVERMERK.md +44 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/focused-tests.log +37 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/grid-charge-policy.log +1 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/status-truth.log +1 -0
- package/tools/eos-release-check.cjs +5 -0
- package/tools/eos-release-manifest.cjs +3 -3
- package/tools/eos-sbom-vendored.cjs +2 -1
- package/tools/system/eos-postgresql-setup.cjs +409 -0
- package/tsconfig.eos-history-backup-scope.json +9 -0
- package/tsconfig.eos-postgres-system.json +15 -0
- package/ui/admin/react/assets/index-wHWXfD_g.js +13 -0
- package/ui/admin/react/index.html +1 -1
- package/ui/ems/consumers/evcs.js +11 -7
- package/ui/ems/datapoints.js +14 -5
- package/ui/ems/engine.js +4 -1
- package/ui/ems/modules/charging-management.js +193 -63
- package/ui/ems/modules/core-limits.js +15 -20
- package/ui/ems/modules/storage-control.js +8 -6
- package/ui/ems/modules/tarif-vis.js +7 -2
- package/ui/ems/modules/tariff-status.js +19 -1
- package/ui/eslint.postgres-history.config.mjs +9 -0
- package/ui/io-package.json +5 -1
- package/ui/lib/ems-control-values.js +64 -0
- package/ui/lib/flow-measurement.js +72 -0
- package/ui/lib/hosted-adapter.js +12 -1
- package/ui/lib/influx-history-runtime.js +66 -24
- package/ui/lib/installer-lifecycle.js +4 -2
- package/ui/lib/ocpp-auto-discovery.js +397 -0
- package/ui/lib/ocpp-limit-feedback.js +166 -0
- package/ui/lib/partner-runtime.js +35 -2
- package/ui/lib/partner-websocket.js +4 -1
- package/ui/lib/postgres-history-config.js +57 -0
- package/ui/lib/postgres-history.js +344 -0
- package/ui/lib/runtime-proxy-html.js +34 -1
- package/ui/lib/smarthome-device-controls.js +4 -1
- package/ui/lib/ui-access-policy.js +39 -6
- package/ui/main.js +392 -222
- package/ui/package.json +1 -1
- package/ui/tsconfig.postgres-history.json +4 -0
- package/ui/www/app.js +106 -152
- package/ui/www/auth.js +36 -10
- package/ui/www/charging-diagnostics-appcenter.js +1 -0
- package/ui/www/customer-tariff.js +1 -0
- package/ui/www/dashboard-lp-status.js +1 -0
- package/ui/www/dc-station-display.js +1 -0
- package/ui/www/ems-apps.js +48 -8
- package/ui/www/energy-origin-appcenter.js +1 -0
- package/ui/www/energy-origin-ledger-view.js +1 -0
- package/ui/www/eos-kiosk-settings.js +174 -0
- package/ui/www/eos-session-idle.js +40 -6
- package/ui/www/eos-updates.js +1 -0
- package/ui/www/index.html +2 -1
- package/ui/www/license.js +1 -0
- package/ui/www/licenses/smarthome-markdown-components.json +157 -157
- package/ui/www/live-display.js +4 -2
- package/ui/www/login.js +19 -7
- package/ui/www/manifest.webmanifest +3 -3
- package/ui/www/netoperator-appcenter.js +1 -0
- package/ui/www/netoperator.js +1 -0
- package/ui/www/operating-strategies-appcenter.js +1 -0
- package/ui/www/operating-strategies-rule-builder.js +1 -0
- package/ui/www/power-measurements.js +27 -2
- package/ui/www/pwa.js +1 -0
- package/ui/www/runtime-base.js +1 -0
- package/ui/www/settings.html +13 -1
- package/ui/www/smarthome-activation.js +1 -0
- package/ui/www/smarthome-alias-config.js +1 -0
- package/ui/www/smarthome-custom-config.js +1 -0
- package/ui/www/smarthome-custom-views.js +1 -0
- package/ui/www/smarthome-device-categories.js +1 -0
- package/ui/www/smarthome-device-config.js +1 -0
- package/ui/www/smarthome-device-controls.js +1 -0
- package/ui/www/smarthome-feedback.js +1 -0
- package/ui/www/smarthome-layout-editor.js +1 -0
- package/ui/www/smarthome-presentation.js +1 -0
- package/ui/www/smarthome-setup.js +1 -0
- package/ui/www/smarthome-touch.js +1 -0
- package/ui/www/storagefarm-dispatch.js +1 -0
- package/ui/www/storagefarm-summary.js +1 -0
- package/ui/www/tariff-display.js +62 -2
- package/ui/admin/react/assets/index-BJO3q7oe.js +0 -13
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.influxTargets = influxTargets;
|
|
4
|
+
/** Copyright (c) 2026 NexoWatt. Confidential and proprietary. */
|
|
5
|
+
const types_1 = require("./types");
|
|
6
|
+
const node_net_1 = require("node:net");
|
|
7
|
+
/** The same normalized target drives validation, preflight and the actual exporter. */
|
|
8
|
+
function influxTargets(c) {
|
|
9
|
+
if (!(0, types_1.flag)(c, 'influxDBEnabled'))
|
|
10
|
+
return [];
|
|
11
|
+
const multi = (0, types_1.flag)(c, 'influxDBMulti');
|
|
12
|
+
const rows = multi ? c.influxDBEvents : [c];
|
|
13
|
+
if (!Array.isArray(rows) || rows.length < 1 || rows.length > 64 || rows.some(row => !(0, types_1.record)(row)))
|
|
14
|
+
throw (0, types_1.fail)('EOS_BACKUP_EVENTS');
|
|
15
|
+
return rows.filter(types_1.record).map(row => {
|
|
16
|
+
const value = (suffix, field, fallback = '') => multi ? (0, types_1.str)(row, field, (0, types_1.str)(c, 'influxDB' + suffix, fallback)) : (0, types_1.str)(c, 'influxDB' + suffix, fallback);
|
|
17
|
+
const version = value('Version', 'dbversion', '1.x');
|
|
18
|
+
const protocol = value('Protocol', 'protocol', 'http');
|
|
19
|
+
const rawHost = value('Host', 'host', 'localhost');
|
|
20
|
+
const host = (0, node_net_1.isIP)(rawHost) === 6 ? `[${rawHost}]` : rawHost;
|
|
21
|
+
const port = value('Port', 'port', version === '2.x' ? '8086' : '8088');
|
|
22
|
+
if (version !== '1.x' && version !== '2.x')
|
|
23
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_VERSION');
|
|
24
|
+
if (protocol !== 'http' && protocol !== 'https')
|
|
25
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_PROTOCOL');
|
|
26
|
+
if (!/^(?:[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*|\[[0-9a-fA-F:]+\])$/.test(host) || host.length > 253)
|
|
27
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_HOST');
|
|
28
|
+
if (host.startsWith('[') && (0, node_net_1.isIP)(host.slice(1, -1)) !== 6)
|
|
29
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_HOST');
|
|
30
|
+
if (!/^\d{1,5}$/.test(port) || Number(port) < 1 || Number(port) > 65535)
|
|
31
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_PORT');
|
|
32
|
+
const bucket = value('Name', 'dbName'), bucketId = value('BucketId', 'bucketId');
|
|
33
|
+
const org = value('Organization', 'org'), orgId = value('OrganizationId', 'orgId');
|
|
34
|
+
for (const name of [bucket, org])
|
|
35
|
+
if (name.length > 256 || /[\0\r\n]/.test(name))
|
|
36
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_IDENTITY');
|
|
37
|
+
for (const id of [bucketId, orgId])
|
|
38
|
+
if (id && !/^[0-9a-fA-F]{16}$/.test(id))
|
|
39
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_IDENTITY');
|
|
40
|
+
return { version, protocol, host, port, url: `${protocol}://${host}:${Number(port)}`, bucket, bucketId, org, orgId, token: value('Token', 'token') };
|
|
41
|
+
});
|
|
42
|
+
}
|
|
@@ -8,6 +8,9 @@ exports.createHostedModule = createHostedModule;
|
|
|
8
8
|
*/
|
|
9
9
|
const notifications_1 = require("./notifications");
|
|
10
10
|
Object.defineProperty(exports, "validateNotificationPlan", { enumerable: true, get: function () { return notifications_1.validateNotificationPlan; } });
|
|
11
|
+
const coverage_1 = require("./coverage");
|
|
12
|
+
const publicTrust_1 = require("./publicTrust");
|
|
13
|
+
const storageRetention_1 = require("./storageRetention");
|
|
11
14
|
const node_child_process_1 = require("node:child_process");
|
|
12
15
|
const node_fs_1 = require("node:fs");
|
|
13
16
|
const promises_1 = require("node:fs/promises");
|
|
@@ -60,6 +63,15 @@ class HostedBackup {
|
|
|
60
63
|
notifier = null;
|
|
61
64
|
starting = null;
|
|
62
65
|
subscribed = false;
|
|
66
|
+
historyRequirement = { provider: 'unknown' };
|
|
67
|
+
async refreshCoverage() {
|
|
68
|
+
try {
|
|
69
|
+
this.historyRequirement = (0, coverage_1.historyRequirement)(await this.options.getHistoryBackupRequirement?.());
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
this.historyRequirement = { provider: 'unknown' };
|
|
73
|
+
}
|
|
74
|
+
}
|
|
63
75
|
stopPromise = null;
|
|
64
76
|
constructor(options) {
|
|
65
77
|
this.options = options;
|
|
@@ -156,6 +168,7 @@ class HostedBackup {
|
|
|
156
168
|
Promise.reject((0, types_1.fail)('EOS_BACKUP_NOTIFICATION_CAPABILITY')));
|
|
157
169
|
}, code => this.options.adapter.log.warn(code));
|
|
158
170
|
}
|
|
171
|
+
await this.refreshCoverage();
|
|
159
172
|
this.started = true;
|
|
160
173
|
await this.state('info.connection', true);
|
|
161
174
|
if (this.stopping)
|
|
@@ -222,6 +235,15 @@ class HostedBackup {
|
|
|
222
235
|
if (this.current || this.child)
|
|
223
236
|
throw (0, types_1.fail)('EOS_BACKUP_BUSY');
|
|
224
237
|
}
|
|
238
|
+
let publicTrust = null;
|
|
239
|
+
if (!remote && kind === 'iobroker') {
|
|
240
|
+
await this.refreshCoverage();
|
|
241
|
+
(0, coverage_1.assertBackupCoverage)(this.config, this.historyRequirement);
|
|
242
|
+
publicTrust = await (0, publicTrust_1.capturePublicTrust)();
|
|
243
|
+
this.guard();
|
|
244
|
+
if (this.current || this.child)
|
|
245
|
+
throw (0, types_1.fail)('EOS_BACKUP_BUSY');
|
|
246
|
+
}
|
|
225
247
|
const id = (0, node_crypto_1.randomUUID)(), workDir = (0, node_path_1.join)(this.options.dataDir, 'jobs', id);
|
|
226
248
|
await (0, files_1.privateDir)(workDir);
|
|
227
249
|
this.guard();
|
|
@@ -243,6 +265,8 @@ class HostedBackup {
|
|
|
243
265
|
kind,
|
|
244
266
|
key: this.key.toString('base64'),
|
|
245
267
|
retentionEnabled: scheduled,
|
|
268
|
+
historyRequirement: this.historyRequirement,
|
|
269
|
+
publicTrust,
|
|
246
270
|
...(this.options.preservedUiNamespace ? { preservedUiNamespace: this.options.preservedUiNamespace } : {}),
|
|
247
271
|
...(remote ?? {}),
|
|
248
272
|
};
|
|
@@ -303,7 +327,7 @@ class HostedBackup {
|
|
|
303
327
|
await this.state('info.lastBackup', final.finishedAt ?? '');
|
|
304
328
|
await (0, promises_1.rm)(workDir, { recursive: true, force: true });
|
|
305
329
|
if (final.state === 'succeeded' && scheduled)
|
|
306
|
-
await this.retention(final.files.map(file => file.
|
|
330
|
+
await this.retention(final.files.map(file => file.name));
|
|
307
331
|
if (!remote)
|
|
308
332
|
this.notifier?.enqueue(this.config, final);
|
|
309
333
|
}
|
|
@@ -364,11 +388,25 @@ class HostedBackup {
|
|
|
364
388
|
this.killTimer.unref();
|
|
365
389
|
}
|
|
366
390
|
}
|
|
367
|
-
async retention(
|
|
391
|
+
async retention(currentNames) {
|
|
368
392
|
const directory = (0, node_path_1.join)(this.options.dataDir, 'archives');
|
|
369
393
|
const entries = await (0, promises_1.readdir)(directory);
|
|
370
394
|
if (entries.length > 100000)
|
|
371
395
|
throw (0, types_1.fail)('EOS_BACKUP_ARCHIVE_COUNT');
|
|
396
|
+
if (currentNames.some(name => (0, storageRetention_1.archiveKind)(name) === 'recovery-set')) {
|
|
397
|
+
const candidates = [];
|
|
398
|
+
for (const name of entries) {
|
|
399
|
+
if (!files_1.ARCHIVE_NAME.test(name))
|
|
400
|
+
continue;
|
|
401
|
+
const s = await (0, promises_1.lstat)((0, node_path_1.join)(directory, name));
|
|
402
|
+
if (s.isFile() && !s.isSymbolicLink())
|
|
403
|
+
candidates.push({ name, id: name, size: s.size, mtime: s.mtimeMs });
|
|
404
|
+
}
|
|
405
|
+
for (const entry of (0, storageRetention_1.retentionCandidates)({ ...this.config, localDeleteOldBackup: true, advancedDelete: false }, 'local', 'iobroker', candidates, currentNames))
|
|
406
|
+
await (0, promises_1.rm)((0, node_path_1.join)(directory, entry.name), { force: true });
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
const kinds = currentNames.map(storageRetention_1.archiveKind);
|
|
372
410
|
const groups = new Map();
|
|
373
411
|
for (const name of entries) {
|
|
374
412
|
if (!files_1.ARCHIVE_NAME.test(name))
|
|
@@ -441,6 +479,7 @@ class HostedBackup {
|
|
|
441
479
|
getStatus() {
|
|
442
480
|
return {
|
|
443
481
|
running: !!this.current,
|
|
482
|
+
coverage: (0, coverage_1.backupCoverage)(this.config, this.historyRequirement),
|
|
444
483
|
current: this.current,
|
|
445
484
|
history: this.jobs
|
|
446
485
|
.slice(0, 10)
|
|
@@ -571,6 +610,10 @@ class HostedBackup {
|
|
|
571
610
|
...(typeof payload.name === 'string' ? { remoteName: payload.name } : {}),
|
|
572
611
|
});
|
|
573
612
|
}
|
|
613
|
+
if (command === 'coverage') {
|
|
614
|
+
await this.refreshCoverage();
|
|
615
|
+
return (0, coverage_1.backupCoverage)(this.config, this.historyRequirement);
|
|
616
|
+
}
|
|
574
617
|
if (command === 'start')
|
|
575
618
|
return this.startJob(payload.kind === 'ccu' ? 'ccu' : 'iobroker');
|
|
576
619
|
if (command === 'cancel') {
|
|
@@ -627,14 +670,14 @@ class HostedBackup {
|
|
|
627
670
|
command: [
|
|
628
671
|
'node',
|
|
629
672
|
'modules/backup/build/restore-cli.js',
|
|
630
|
-
'--archive',
|
|
673
|
+
/-recovery-set-\d+\.nwb$/.test(name) ? '--set' : '--archive',
|
|
631
674
|
name,
|
|
632
675
|
'--key-file',
|
|
633
676
|
'<Wiederherstellungsschluessel.json>',
|
|
634
677
|
'--output',
|
|
635
678
|
'<leeres-Wiederherstellungsverzeichnis>',
|
|
636
679
|
],
|
|
637
|
-
message: '
|
|
680
|
+
message: 'Für die Gesamtsicherung alle Dateien desselben Auftrags zusammen herunterladen und das recovery-set auswählen. Die Vorbereitung prüft zusammengehörige Archive und entschlüsselt sie. Controller, EOS-Profil und aktive Historie anschließend auf einer getrennten Installation wiederherstellen; keine Produktionsdaten überschreiben.',
|
|
638
681
|
};
|
|
639
682
|
}
|
|
640
683
|
if (command === 'getSdCardTargets')
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.inventoryInflux = inventoryInflux;
|
|
4
|
+
exports.validateInfluxExport = validateInfluxExport;
|
|
5
|
+
exports.exportInflux2 = exportInflux2;
|
|
6
|
+
/** Copyright (c) 2026 NexoWatt. Confidential and proprietary. */
|
|
7
|
+
const node_fs_1 = require("node:fs");
|
|
8
|
+
const promises_1 = require("node:fs/promises");
|
|
9
|
+
const node_path_1 = require("node:path");
|
|
10
|
+
const command_1 = require("./command");
|
|
11
|
+
const files_1 = require("./files");
|
|
12
|
+
const types_1 = require("./types");
|
|
13
|
+
const MAX_METADATA = 8 * 1024 ** 2;
|
|
14
|
+
async function jsonFile(file) {
|
|
15
|
+
const fd = await (0, promises_1.open)(file, node_fs_1.constants.O_RDONLY | node_fs_1.constants.O_NOFOLLOW);
|
|
16
|
+
try {
|
|
17
|
+
const st = await fd.stat();
|
|
18
|
+
if (!st.isFile() || st.size === 0 || st.size > MAX_METADATA)
|
|
19
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_METADATA_SIZE');
|
|
20
|
+
const bytes = Buffer.alloc(MAX_METADATA + 1);
|
|
21
|
+
let length = 0;
|
|
22
|
+
while (length < bytes.length) {
|
|
23
|
+
const read = await fd.read(bytes, length, bytes.length - length, null);
|
|
24
|
+
if (!read.bytesRead)
|
|
25
|
+
break;
|
|
26
|
+
length += read.bytesRead;
|
|
27
|
+
}
|
|
28
|
+
if (length > MAX_METADATA)
|
|
29
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_METADATA_SIZE');
|
|
30
|
+
return JSON.parse(bytes.subarray(0, length).toString('utf8'));
|
|
31
|
+
}
|
|
32
|
+
finally {
|
|
33
|
+
await fd.close();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
/** Read-only inventory before snapshotting prevents a mistyped/missing bucket yielding false success. */
|
|
37
|
+
async function inventoryInflux(target, workDir, index) {
|
|
38
|
+
const file = (0, node_path_1.join)(workDir, `influx-inventory-${index}.json`);
|
|
39
|
+
const environment = { INFLUX_TOKEN: target.token };
|
|
40
|
+
const readInventory = async (args) => {
|
|
41
|
+
try {
|
|
42
|
+
await (0, command_1.run)(await (0, command_1.executable)('influx'), args, { cwd: workDir, output: file, environment, timeout: 15000, maxBytes: MAX_METADATA });
|
|
43
|
+
return await jsonFile(file);
|
|
44
|
+
}
|
|
45
|
+
finally {
|
|
46
|
+
await (0, promises_1.rm)(file, { force: true });
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
let scopes;
|
|
50
|
+
if (target.orgId)
|
|
51
|
+
scopes = [['--org-id', target.orgId]];
|
|
52
|
+
else if (target.org)
|
|
53
|
+
scopes = [['--org', target.org]];
|
|
54
|
+
else {
|
|
55
|
+
// `influx bucket list` requires an organization even for an operator token.
|
|
56
|
+
const organizations = await readInventory(['org', 'list', '--json', '--host', target.url]);
|
|
57
|
+
if (!Array.isArray(organizations) || organizations.length > 64 || organizations.some(row => !(0, types_1.record)(row) || typeof row.id !== 'string' || !/^[0-9a-fA-F]{16}$/.test(row.id)))
|
|
58
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_INVENTORY');
|
|
59
|
+
scopes = organizations.filter(types_1.record).map(row => ['--org-id', String(row.id)]);
|
|
60
|
+
}
|
|
61
|
+
const buckets = [], ids = new Set();
|
|
62
|
+
for (const scope of scopes) {
|
|
63
|
+
const parsed = await readInventory(['bucket', 'list', '--json', '--host', target.url, '--limit', '10001', ...scope]);
|
|
64
|
+
// CLI returns null for an existing organization with no buckets.
|
|
65
|
+
if (parsed === null)
|
|
66
|
+
continue;
|
|
67
|
+
if (!Array.isArray(parsed) || parsed.length > 10000)
|
|
68
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_INVENTORY');
|
|
69
|
+
for (const row of parsed) {
|
|
70
|
+
if (!(0, types_1.record)(row) || typeof row.id !== 'string' || !/^[0-9a-fA-F]{16}$/.test(row.id) ||
|
|
71
|
+
typeof row.orgID !== 'string' || !/^[0-9a-fA-F]{16}$/.test(row.orgID) ||
|
|
72
|
+
typeof row.name !== 'string' || !row.name.length || row.name.length > 256 || ids.has(row.id))
|
|
73
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_INVENTORY');
|
|
74
|
+
ids.add(row.id);
|
|
75
|
+
if (ids.size > 10000)
|
|
76
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_INVENTORY');
|
|
77
|
+
if ((!target.bucketId || row.id === target.bucketId) && (!target.bucket || row.name === target.bucket))
|
|
78
|
+
buckets.push({ id: row.id, orgId: row.orgID, name: row.name });
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if ((target.bucket || target.bucketId) && buckets.length !== 1)
|
|
82
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_BUCKET_MISSING_OR_AMBIGUOUS');
|
|
83
|
+
return buckets;
|
|
84
|
+
}
|
|
85
|
+
/** Structural and file validation, not a mere archive-size check. Empty *existing* buckets are valid. */
|
|
86
|
+
async function validateInfluxExport(folder, expected, required) {
|
|
87
|
+
const entries = await (0, promises_1.readdir)(folder, { withFileTypes: true });
|
|
88
|
+
if (entries.length > 100000 || entries.some(entry => !entry.isFile() || entry.isSymbolicLink()))
|
|
89
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_FILES');
|
|
90
|
+
const manifests = entries.filter(entry => entry.name.endsWith('.manifest'));
|
|
91
|
+
if (manifests.length !== 1 || !manifests[0])
|
|
92
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_MANIFEST_MISSING');
|
|
93
|
+
const manifest = await jsonFile((0, node_path_1.join)(folder, manifests[0].name));
|
|
94
|
+
if (!(0, types_1.record)(manifest) || manifest.manifestVersion !== 2 || !Array.isArray(manifest.buckets) || manifest.buckets.length > 10000)
|
|
95
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_MANIFEST');
|
|
96
|
+
const files = [];
|
|
97
|
+
const fileNames = new Set();
|
|
98
|
+
const verifyFile = async (entry) => {
|
|
99
|
+
if (!(0, types_1.record)(entry) || typeof entry.fileName !== 'string' || !/^[A-Za-z0-9_.-]{1,160}$/.test(entry.fileName) ||
|
|
100
|
+
entry.fileName !== (0, node_path_1.basename)(entry.fileName) || ['.', '..'].includes(entry.fileName) ||
|
|
101
|
+
!Number.isSafeInteger(entry.size) || Number(entry.size) <= 0 || (entry.compression !== 0 && entry.compression !== 1) ||
|
|
102
|
+
fileNames.has(entry.fileName))
|
|
103
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_FILE_ENTRY');
|
|
104
|
+
const size = await (0, files_1.assertRegular)((0, node_path_1.join)(folder, entry.fileName));
|
|
105
|
+
if (size !== entry.size)
|
|
106
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_FILE_SIZE');
|
|
107
|
+
fileNames.add(entry.fileName);
|
|
108
|
+
files.push({ name: entry.fileName, size, sha256: await (0, files_1.hashFile)((0, node_path_1.join)(folder, entry.fileName)) });
|
|
109
|
+
};
|
|
110
|
+
await verifyFile(manifest.kv);
|
|
111
|
+
if (manifest.sql !== undefined)
|
|
112
|
+
await verifyFile(manifest.sql);
|
|
113
|
+
const actual = new Map();
|
|
114
|
+
let activeHistoryPresent = required === undefined;
|
|
115
|
+
for (const bucket of manifest.buckets) {
|
|
116
|
+
if (!(0, types_1.record)(bucket) || typeof bucket.bucketID !== 'string' || !/^[0-9a-fA-F]{16}$/.test(bucket.bucketID) ||
|
|
117
|
+
typeof bucket.organizationID !== 'string' || !/^[0-9a-fA-F]{16}$/.test(bucket.organizationID) ||
|
|
118
|
+
typeof bucket.bucketName !== 'string' || actual.has(bucket.bucketID) || !Array.isArray(bucket.retentionPolicies))
|
|
119
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_BUCKET_MANIFEST');
|
|
120
|
+
actual.set(bucket.bucketID, { id: bucket.bucketID, orgId: bucket.organizationID, name: bucket.bucketName });
|
|
121
|
+
if (required && bucket.bucketName === required.bucket && bucket.organizationName === required.org)
|
|
122
|
+
activeHistoryPresent = true;
|
|
123
|
+
for (const policy of bucket.retentionPolicies) {
|
|
124
|
+
if (!(0, types_1.record)(policy) || !Array.isArray(policy.shardGroups))
|
|
125
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_SHARDS');
|
|
126
|
+
for (const group of policy.shardGroups) {
|
|
127
|
+
if (!(0, types_1.record)(group) || !Array.isArray(group.shards))
|
|
128
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_SHARDS');
|
|
129
|
+
for (const shard of group.shards)
|
|
130
|
+
await verifyFile(shard);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (actual.size !== expected.length || expected.some(item => {
|
|
135
|
+
const found = actual.get(item.id);
|
|
136
|
+
return !found || found.orgId !== item.orgId || found.name !== item.name;
|
|
137
|
+
}))
|
|
138
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_BUCKET_CONTENT_MISSING');
|
|
139
|
+
if (!activeHistoryPresent)
|
|
140
|
+
throw (0, types_1.fail)('EOS_BACKUP_ACTIVE_INFLUX_CONTENT_MISSING');
|
|
141
|
+
if (entries.some(entry => entry.name !== manifests[0]?.name && !fileNames.has(entry.name)))
|
|
142
|
+
throw (0, types_1.fail)('EOS_BACKUP_INFLUX_UNREFERENCED_FILE');
|
|
143
|
+
const proof = { schema: 'nexowatt-influx-export-proof/v1', manifest: manifests[0].name, buckets: expected, files };
|
|
144
|
+
await (0, promises_1.writeFile)((0, node_path_1.join)(folder, 'eos-export-proof.json'), JSON.stringify(proof, null, 2), { flag: 'wx', mode: 0o600 });
|
|
145
|
+
return proof;
|
|
146
|
+
}
|
|
147
|
+
async function exportInflux2(target, folder, workDir, index, required) {
|
|
148
|
+
const expected = await inventoryInflux(target, workDir, index);
|
|
149
|
+
const args = ['backup', '--host', target.url];
|
|
150
|
+
if (target.orgId)
|
|
151
|
+
args.push('--org-id', target.orgId);
|
|
152
|
+
else if (target.org)
|
|
153
|
+
args.push('--org', target.org);
|
|
154
|
+
if (expected.length === 1 && (target.bucketId || target.bucket))
|
|
155
|
+
args.push('--bucket-id', expected[0]?.id ?? '');
|
|
156
|
+
args.push(folder);
|
|
157
|
+
await (0, command_1.run)(await (0, command_1.executable)('influx'), args, { cwd: workDir, environment: { INFLUX_TOKEN: target.token } });
|
|
158
|
+
await validateInfluxExport(folder, expected, required);
|
|
159
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validatePostgresProfile = validatePostgresProfile;
|
|
4
|
+
exports.loadPostgresProfile = loadPostgresProfile;
|
|
5
|
+
exports.exportPostgresHistory = exportPostgresHistory;
|
|
6
|
+
exports.exportVerifiedPostgresProfile = exportVerifiedPostgresProfile;
|
|
7
|
+
/** Copyright (c) 2026 NexoWatt. Confidential and proprietary. */
|
|
8
|
+
const node_fs_1 = require("node:fs");
|
|
9
|
+
const promises_1 = require("node:fs/promises");
|
|
10
|
+
const node_path_1 = require("node:path");
|
|
11
|
+
const node_crypto_1 = require("node:crypto");
|
|
12
|
+
const command_1 = require("./command");
|
|
13
|
+
const types_1 = require("./types");
|
|
14
|
+
async function trustedFile(path, maximum, privateFile) {
|
|
15
|
+
let parent = (0, node_path_1.dirname)(path);
|
|
16
|
+
while (true) {
|
|
17
|
+
const info = await (0, promises_1.lstat)(parent);
|
|
18
|
+
if (!info.isDirectory() || info.isSymbolicLink() || info.uid !== 0 || (info.mode & 0o022) !== 0)
|
|
19
|
+
throw (0, types_1.fail)('EOS_BACKUP_POSTGRES_PROFILE_PERMISSIONS');
|
|
20
|
+
if (parent === (0, node_path_1.parse)(parent).root)
|
|
21
|
+
break;
|
|
22
|
+
parent = (0, node_path_1.dirname)(parent);
|
|
23
|
+
}
|
|
24
|
+
const fd = await (0, promises_1.open)(path, node_fs_1.constants.O_RDONLY | node_fs_1.constants.O_NOFOLLOW);
|
|
25
|
+
try {
|
|
26
|
+
const st = await fd.stat();
|
|
27
|
+
if (!st.isFile() || st.nlink !== 1 || st.uid !== 0 || (st.mode & (privateFile ? 0o027 : 0o022)) !== 0 || st.size < 1 || st.size > maximum)
|
|
28
|
+
throw (0, types_1.fail)('EOS_BACKUP_POSTGRES_PROFILE_PERMISSIONS');
|
|
29
|
+
const bytes = Buffer.alloc(maximum + 1);
|
|
30
|
+
let length = 0;
|
|
31
|
+
while (length < bytes.length) {
|
|
32
|
+
const result = await fd.read(bytes, length, bytes.length - length, null);
|
|
33
|
+
if (!result.bytesRead)
|
|
34
|
+
break;
|
|
35
|
+
length += result.bytesRead;
|
|
36
|
+
}
|
|
37
|
+
if (length > maximum)
|
|
38
|
+
throw (0, types_1.fail)('EOS_BACKUP_POSTGRES_PROFILE_SIZE');
|
|
39
|
+
return bytes.subarray(0, length);
|
|
40
|
+
}
|
|
41
|
+
finally {
|
|
42
|
+
await fd.close();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function validatePostgresProfile(value, namespace) {
|
|
46
|
+
if (!/^eos-admin\.\d+$/.test(namespace))
|
|
47
|
+
throw (0, types_1.fail)('EOS_BACKUP_POSTGRES_NAMESPACE');
|
|
48
|
+
const instance = namespace.slice('eos-admin.'.length);
|
|
49
|
+
if (!(0, types_1.record)(value) || value.schemaVersion !== 1 || value.provider !== 'postgresql' || value.provisioned !== true || value.newInstallation !== true ||
|
|
50
|
+
value.host !== '127.0.0.1' || value.port !== 55432 || value.database !== `eos_history_${instance}` || value.user !== `eos_history_${instance}_backup` ||
|
|
51
|
+
typeof value.password !== 'string' || value.password.length < 32 || value.password.length > 256 || /[\0\r\n]/.test(value.password) ||
|
|
52
|
+
value.caFile !== '/etc/nexowatt-eos/postgresql/ca.crt' || value.servername !== 'localhost' || value.schema !== 'eos_history')
|
|
53
|
+
throw (0, types_1.fail)('EOS_BACKUP_POSTGRES_PROFILE');
|
|
54
|
+
return { schemaVersion: 1, provider: 'postgresql', host: '127.0.0.1', port: value.port, database: value.database, user: value.user, password: value.password, caFile: value.caFile, servername: 'localhost', schema: 'eos_history' };
|
|
55
|
+
}
|
|
56
|
+
async function loadPostgresProfile(namespace) {
|
|
57
|
+
if (!/^eos-admin\.\d+$/.test(namespace))
|
|
58
|
+
throw (0, types_1.fail)('EOS_BACKUP_POSTGRES_NAMESPACE');
|
|
59
|
+
const bytes = await trustedFile(`/etc/nexowatt-eos/postgresql/backup-${namespace}.json`, 16384, true);
|
|
60
|
+
const profile = validatePostgresProfile(JSON.parse(bytes.toString()), namespace);
|
|
61
|
+
bytes.fill(0);
|
|
62
|
+
const ca = await trustedFile(profile.caFile, 32768, false);
|
|
63
|
+
const cert = new node_crypto_1.X509Certificate(ca);
|
|
64
|
+
if (!cert.ca || Date.parse(cert.validFrom) > Date.now() || Date.parse(cert.validTo) <= Date.now())
|
|
65
|
+
throw (0, types_1.fail)('EOS_BACKUP_POSTGRES_CA');
|
|
66
|
+
return profile;
|
|
67
|
+
}
|
|
68
|
+
async function exportPostgresHistory(namespace, folder) {
|
|
69
|
+
const profile = await loadPostgresProfile(namespace);
|
|
70
|
+
await exportVerifiedPostgresProfile(profile, namespace, folder);
|
|
71
|
+
}
|
|
72
|
+
/** Internal boundary after protected-profile verification; not exposed through the module/API. */
|
|
73
|
+
async function exportVerifiedPostgresProfile(profile, namespace, folder) {
|
|
74
|
+
const output = (0, node_path_1.join)(folder, 'database.dump');
|
|
75
|
+
await (0, command_1.run)(await (0, command_1.executable)('pg_dump'), ['--host', profile.host, '--port', String(profile.port), '--username', profile.user,
|
|
76
|
+
'--format=custom', '--data-only', '--schema=eos_history', '--table=eos_history.samples', '--no-owner', '--no-privileges', '--dbname', profile.database], { cwd: folder, output, environment: { PGPASSWORD: profile.password, PGSSLMODE: 'verify-full', PGSSLROOTCERT: profile.caFile, PGCONNECT_TIMEOUT: '5', PGOPTIONS: '-c statement_timeout=600000 -c lock_timeout=5000' } });
|
|
77
|
+
const fd = await (0, promises_1.open)(output, node_fs_1.constants.O_RDONLY | node_fs_1.constants.O_NOFOLLOW);
|
|
78
|
+
try {
|
|
79
|
+
const magic = Buffer.alloc(5);
|
|
80
|
+
await fd.read(magic, 0, 5, 0);
|
|
81
|
+
if (!magic.equals(Buffer.from('PGDMP')) || (await fd.stat()).size < 16)
|
|
82
|
+
throw (0, types_1.fail)('EOS_BACKUP_POSTGRES_DUMP');
|
|
83
|
+
}
|
|
84
|
+
finally {
|
|
85
|
+
await fd.close();
|
|
86
|
+
}
|
|
87
|
+
await (0, promises_1.writeFile)((0, node_path_1.join)(folder, 'restore-requirements.json'), JSON.stringify({ schema: 'nexowatt-postgresql-restore/v1', namespace,
|
|
88
|
+
database: profile.database, schemaName: profile.schema, tls: 'verify-full', rolesFrom: 'trusted EOS provisioning tool',
|
|
89
|
+
privilegesFromArchive: false, schemaFromArchive: false, restoreFlags: ['--data-only', '--no-owner', '--no-privileges', '--schema=eos_history', '--table=samples'],
|
|
90
|
+
requiresIsolatedTarget: true, containsRolePasswords: false }, null, 2), { flag: 'wx', mode: 0o600 });
|
|
91
|
+
}
|
|
@@ -11,6 +11,7 @@ const node_fs_1 = require("node:fs");
|
|
|
11
11
|
const promises_1 = require("node:fs/promises");
|
|
12
12
|
const node_path_1 = require("node:path");
|
|
13
13
|
const command_1 = require("./command");
|
|
14
|
+
const databaseTargets_1 = require("./databaseTargets");
|
|
14
15
|
const config_1 = require("./config");
|
|
15
16
|
const types_1 = require("./types");
|
|
16
17
|
async function source(path, directory = true) {
|
|
@@ -32,14 +33,8 @@ async function preflightInstallation(c, installationDir, eosDataDir) {
|
|
|
32
33
|
])
|
|
33
34
|
if ((0, types_1.flag)(c, field))
|
|
34
35
|
await (0, command_1.executable)(program);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
for (const target of targets) {
|
|
38
|
-
if (!(0, types_1.record)(target))
|
|
39
|
-
throw (0, types_1.fail)('EOS_BACKUP_EVENTS');
|
|
40
|
-
await (0, command_1.executable)((0, types_1.str)(target, target === c ? 'influxDBVersion' : 'dbversion', '1.x') === '2.x' ? 'influx' : 'influxd');
|
|
41
|
-
}
|
|
42
|
-
}
|
|
36
|
+
for (const target of (0, databaseTargets_1.influxTargets)(c))
|
|
37
|
+
await (0, command_1.executable)(target.version === '2.x' ? 'influx' : 'influxd');
|
|
43
38
|
if ((0, types_1.flag)(c, 'historyEnabled'))
|
|
44
39
|
await source((0, types_1.str)(c, 'historyPath'));
|
|
45
40
|
if ((0, types_1.flag)(c, 'sqliteEnabled'))
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validatePublicTrust = validatePublicTrust;
|
|
4
|
+
exports.capturePublicTrust = capturePublicTrust;
|
|
5
|
+
exports.archivePublicTrust = archivePublicTrust;
|
|
6
|
+
/** Copyright (c) 2026 NexoWatt. Confidential and proprietary. */
|
|
7
|
+
const node_crypto_1 = require("node:crypto");
|
|
8
|
+
const promises_1 = require("node:fs/promises");
|
|
9
|
+
const node_path_1 = require("node:path");
|
|
10
|
+
const types_1 = require("./types");
|
|
11
|
+
function validatePublicTrust(value) {
|
|
12
|
+
if (!(0, types_1.record)(value) || Object.keys(value).length < 1 || Object.keys(value).length > 32)
|
|
13
|
+
throw (0, types_1.fail)('EOS_BACKUP_PUBLIC_TRUST_INVALID');
|
|
14
|
+
const result = {};
|
|
15
|
+
for (const [kid, pem] of Object.entries(value)) {
|
|
16
|
+
if (!/^[A-Za-z0-9_-]{1,128}$/.test(kid) || ['__proto__', 'constructor', 'prototype'].includes(kid) || typeof pem !== 'string' || pem.length > 1024 ||
|
|
17
|
+
!/^-----BEGIN PUBLIC KEY-----\r?\n[A-Za-z0-9+/=\r\n]+\r?\n-----END PUBLIC KEY-----\s*$/.test(pem))
|
|
18
|
+
throw (0, types_1.fail)('EOS_BACKUP_PUBLIC_TRUST_INVALID');
|
|
19
|
+
const key = (0, node_crypto_1.createPublicKey)(pem);
|
|
20
|
+
if (key.type !== 'public' || key.asymmetricKeyType !== 'ed25519')
|
|
21
|
+
throw (0, types_1.fail)('EOS_BACKUP_PUBLIC_TRUST_INVALID');
|
|
22
|
+
result[kid] = key.export({ format: 'pem', type: 'spki' }).toString();
|
|
23
|
+
}
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
26
|
+
async function capturePublicTrust() {
|
|
27
|
+
// Existing service validates root ownership and every parent before reading. No new trust reader/fallback.
|
|
28
|
+
const service = require('../../../build/lib/eosLicenseService.js');
|
|
29
|
+
try {
|
|
30
|
+
return validatePublicTrust(await service.readProductTrust());
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
if (error instanceof Error && 'code' in error && error.code === 'ENOENT')
|
|
34
|
+
return null;
|
|
35
|
+
throw (0, types_1.fail)('EOS_BACKUP_PUBLIC_TRUST_UNAVAILABLE');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
async function archivePublicTrust(profileDir, value) {
|
|
39
|
+
if (value === null || value === undefined)
|
|
40
|
+
return;
|
|
41
|
+
const keys = validatePublicTrust(value);
|
|
42
|
+
const fingerprints = Object.fromEntries(Object.entries(keys).map(([kid, pem]) => [kid, (0, node_crypto_1.createHash)('sha256').update((0, node_crypto_1.createPublicKey)(pem).export({ type: 'spki', format: 'der' })).digest('hex')]));
|
|
43
|
+
await (0, promises_1.writeFile)((0, node_path_1.join)(profileDir, 'recovery-public-trust.json'), JSON.stringify(keys, null, 2), { flag: 'wx', mode: 0o600 });
|
|
44
|
+
await (0, promises_1.writeFile)((0, node_path_1.join)(profileDir, 'recovery-public-trust-instructions.json'), JSON.stringify({ schema: 'nexowatt-trust-recovery/v1', fingerprints,
|
|
45
|
+
automaticTrustInstallation: false, action: 'Use the EOS authorized trust import against independent release/OS pins. For an unpinned authority the manufacturer must provision the trusted base system. Never accept this archive as its own authority.' }, null, 2), { flag: 'wx', mode: 0o600 });
|
|
46
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.installRecoveryKey = installRecoveryKey;
|
|
4
4
|
exports.prepareRestore = prepareRestore;
|
|
5
|
+
exports.prepareRestoreSet = prepareRestoreSet;
|
|
5
6
|
/**
|
|
6
7
|
* Copyright (c) 2026 NexoWatt. Proprietary EOS integration.
|
|
7
8
|
* Retained upstream MIT rights and notices remain applicable; see ../upstream/LICENSE.
|
|
@@ -12,6 +13,7 @@ const node_path_1 = require("node:path");
|
|
|
12
13
|
const node_crypto_1 = require("node:crypto");
|
|
13
14
|
const files_1 = require("./files");
|
|
14
15
|
const types_1 = require("./types");
|
|
16
|
+
const preflight_1 = require("./preflight");
|
|
15
17
|
async function recoveryKey(path) {
|
|
16
18
|
const fd = await (0, promises_1.open)(path, node_fs_1.constants.O_RDONLY | node_fs_1.constants.O_NOFOLLOW);
|
|
17
19
|
let value;
|
|
@@ -100,6 +102,73 @@ async function prepareRestore(archive, keyPath, output) {
|
|
|
100
102
|
key.fill(0);
|
|
101
103
|
}
|
|
102
104
|
}
|
|
105
|
+
/** Verify and prepare the entire matching set; never write controller, DB, role or trust state. */
|
|
106
|
+
async function prepareRestoreSet(setArchive, keyPath, output) {
|
|
107
|
+
if (!files_1.ARCHIVE_NAME.test((0, node_path_1.basename)(setArchive)) || !/-recovery-set-\d+\.nwb$/.test(setArchive))
|
|
108
|
+
throw (0, types_1.fail)('EOS_BACKUP_RECOVERY_SET_NAME');
|
|
109
|
+
const key = await recoveryKey(keyPath);
|
|
110
|
+
let created = false;
|
|
111
|
+
try {
|
|
112
|
+
await (0, promises_1.mkdir)(output, { mode: 0o700 });
|
|
113
|
+
created = true;
|
|
114
|
+
await (0, files_1.privateDir)(output);
|
|
115
|
+
const manifestPath = (0, node_path_1.join)(output, 'recovery-set.json');
|
|
116
|
+
await (0, files_1.decryptFile)(setArchive, manifestPath, key, 1024 ** 2);
|
|
117
|
+
const fd = await (0, promises_1.open)(manifestPath, node_fs_1.constants.O_RDONLY | node_fs_1.constants.O_NOFOLLOW);
|
|
118
|
+
let manifest;
|
|
119
|
+
try {
|
|
120
|
+
manifest = JSON.parse(await fd.readFile('utf8'));
|
|
121
|
+
}
|
|
122
|
+
finally {
|
|
123
|
+
await fd.close();
|
|
124
|
+
}
|
|
125
|
+
if (!(0, types_1.record)(manifest) || manifest.format !== 'nexowatt-eos-recovery-set/v1' || typeof manifest.jobId !== 'string' ||
|
|
126
|
+
!/^[0-9a-f-]{36}$/.test(manifest.jobId) || !(0, node_path_1.basename)(setArchive).startsWith('eos-backup-' + manifest.jobId + '-') ||
|
|
127
|
+
!(0, types_1.record)(manifest.coverage) || manifest.coverage.complete !== true || !Array.isArray(manifest.coverage.required) ||
|
|
128
|
+
!Array.isArray(manifest.files) || manifest.files.length < 2 || manifest.files.length > 512)
|
|
129
|
+
throw (0, types_1.fail)('EOS_BACKUP_RECOVERY_SET_INVALID');
|
|
130
|
+
const names = new Set(), kinds = new Set();
|
|
131
|
+
const components = [];
|
|
132
|
+
for (const item of manifest.files) {
|
|
133
|
+
if (!(0, types_1.record)(item) || typeof item.name !== 'string' || !files_1.ARCHIVE_NAME.test(item.name) || names.has(item.name) ||
|
|
134
|
+
!item.name.startsWith('eos-backup-' + manifest.jobId + '-') || typeof item.kind !== 'string' || !/^[a-zA-Z0-9_-]{1,80}$/.test(item.kind) || item.kind === 'recovery-set' ||
|
|
135
|
+
!Number.isSafeInteger(item.size) || Number(item.size) < 36 || Number(item.size) > 100 * 1024 ** 3 + 64 || typeof item.sha256 !== 'string' || !/^[0-9a-f]{64}$/.test(item.sha256))
|
|
136
|
+
throw (0, types_1.fail)('EOS_BACKUP_RECOVERY_COMPONENT_INVALID');
|
|
137
|
+
const archive = (0, node_path_1.join)((0, node_path_1.dirname)(setArchive), item.name);
|
|
138
|
+
if (await (0, files_1.assertRegular)(archive) !== item.size || await (0, files_1.hashFile)(archive) !== item.sha256)
|
|
139
|
+
throw (0, types_1.fail)('EOS_BACKUP_RECOVERY_COMPONENT_INTEGRITY');
|
|
140
|
+
await (0, preflight_1.assertFreeSpace)(output, Number(item.size) + 64 * 1024 ** 2);
|
|
141
|
+
names.add(item.name);
|
|
142
|
+
kinds.add(item.kind);
|
|
143
|
+
const destination = await prepareRestore(archive, keyPath, (0, node_path_1.join)(output, `component-${components.length}`));
|
|
144
|
+
components.push({ kind: item.kind, file: destination.slice(output.length + 1), sha256: await (0, files_1.hashFile)(destination) });
|
|
145
|
+
}
|
|
146
|
+
if (!kinds.has('iobroker') || !kinds.has('eos-profile') || manifest.coverage.required.some(kind => typeof kind !== 'string' || !kinds.has(kind)))
|
|
147
|
+
throw (0, types_1.fail)('EOS_BACKUP_RECOVERY_COMPONENT_MISSING');
|
|
148
|
+
const plan = (0, node_path_1.join)(output, 'recovery-plan.json');
|
|
149
|
+
await (0, promises_1.writeFile)(plan, JSON.stringify({ schema: 'nexowatt-eos-restore-plan/v1', jobId: manifest.jobId, verified: true,
|
|
150
|
+
files: components, automaticRestore: false, controllerMustBeStopped: true, isolatedTargetRequired: true,
|
|
151
|
+
steps: [
|
|
152
|
+
'Provision the supported operating system, matching controller and database tools using trusted installation media.',
|
|
153
|
+
'Keep EMS actuators disconnected; stop the controller. Restore the ioBroker archive through the controller CLI.',
|
|
154
|
+
'Restore the EOS private profile and preserved legacy data paths with private ownership. Restore the recovery key separately.',
|
|
155
|
+
'Review external integration grants and revoke obsolete identities before enabling access; an older backup can contain grants revoked after its snapshot.',
|
|
156
|
+
'Public license trust requires the existing authorized import or independent manufacturer provisioning; never trust this archive alone.',
|
|
157
|
+
'For InfluxDB restore into a new isolated service; preserve the separately held operator token if required by the server version.',
|
|
158
|
+
'For managed PostgreSQL provision roles, TLS and schema from trusted media first. Inspect the authenticated trusted-source dump before restoring into an empty isolated target with a non-superuser login limited to the required table rights; use --data-only --no-owner --no-privileges --schema=eos_history --table=samples. These filters do not sandbox a malicious archive. Never connect as superuser (including superuser plus --role), or import archived authority/schema.',
|
|
159
|
+
'Compare expected identities, settings and historical sample points; test new writes and restart before reconnecting actuators.'
|
|
160
|
+
] }, null, 2), { flag: 'wx', mode: 0o600 });
|
|
161
|
+
return plan;
|
|
162
|
+
}
|
|
163
|
+
catch (error) {
|
|
164
|
+
if (created)
|
|
165
|
+
await (0, promises_1.rm)(output, { recursive: true, force: true });
|
|
166
|
+
throw error;
|
|
167
|
+
}
|
|
168
|
+
finally {
|
|
169
|
+
key.fill(0);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
103
172
|
if (require.main === module) {
|
|
104
173
|
const args = process.argv.slice(2);
|
|
105
174
|
const get = (key) => {
|
|
@@ -111,7 +180,9 @@ if (require.main === module) {
|
|
|
111
180
|
void Promise.resolve()
|
|
112
181
|
.then(() => args.includes('--install-key')
|
|
113
182
|
? installRecoveryKey(get('--key-file'), get('--data-dir'))
|
|
114
|
-
:
|
|
183
|
+
: args.includes('--set')
|
|
184
|
+
? prepareRestoreSet(get('--set'), get('--key-file'), get('--output'))
|
|
185
|
+
: prepareRestore(get('--archive'), get('--key-file'), get('--output')))
|
|
115
186
|
.then(path => {
|
|
116
187
|
process.stdout.write('Vorbereitet: ' + path + '\nKeine laufenden Controllerdaten verändert.\n');
|
|
117
188
|
}, error => {
|
|
@@ -45,6 +45,32 @@ function retentionCandidates(config, provider, runKind, entries, currentNames, e
|
|
|
45
45
|
throw (0, types_1.fail)('EOS_BACKUP_REMOTE_COUNT');
|
|
46
46
|
const types = new Set(currentNames.map(archiveKind).filter((type) => type !== null && !type.startsWith('legacy-')));
|
|
47
47
|
const current = new Set(currentNames), selected = [];
|
|
48
|
+
// A recovery set is indivisible: keeping its descriptor while pruning an older
|
|
49
|
+
// database component would turn a listed full backup into an unusable set.
|
|
50
|
+
if (types.has('recovery-set')) {
|
|
51
|
+
const count = retentionCount(config, provider, runKind, 'recovery-set', enabled);
|
|
52
|
+
if (!count)
|
|
53
|
+
return [];
|
|
54
|
+
let keep = count;
|
|
55
|
+
if (provider === 'cifs' && (0, types_1.str)(config, 'connectType') === 'SDCard' && types.has('influxDB')) {
|
|
56
|
+
const databaseKeep = (0, types_1.num)(config, 'sdCardInfluxRetention', 3);
|
|
57
|
+
if (!Number.isSafeInteger(databaseKeep) || databaseKeep < 0 || databaseKeep > 3650)
|
|
58
|
+
throw (0, types_1.fail)('EOS_BACKUP_CONFIG_RETENTION');
|
|
59
|
+
if (!databaseKeep)
|
|
60
|
+
return [];
|
|
61
|
+
keep = Math.min(keep, databaseKeep);
|
|
62
|
+
}
|
|
63
|
+
if (currentNames.some(name => !entries.some(entry => entry.name === name)))
|
|
64
|
+
throw (0, types_1.fail)('EOS_BACKUP_RETENTION_INCOMPLETE');
|
|
65
|
+
if (new Set(entries.map(entry => entry.name)).size !== entries.length)
|
|
66
|
+
throw (0, types_1.fail)('EOS_BACKUP_RETENTION_METADATA');
|
|
67
|
+
const descriptors = entries.filter(entry => archiveKind(entry.name) === 'recovery-set');
|
|
68
|
+
if (descriptors.some(entry => !Number.isFinite(entry.mtime) || entry.mtime <= 0))
|
|
69
|
+
throw (0, types_1.fail)('EOS_BACKUP_RETENTION_METADATA');
|
|
70
|
+
descriptors.sort((a, b) => b.mtime - a.mtime || b.name.localeCompare(a.name));
|
|
71
|
+
const oldJobs = new Set(descriptors.slice(keep).filter(entry => !current.has(entry.name)).map(entry => entry.name.slice(0, 48)));
|
|
72
|
+
return entries.filter(entry => archiveKind(entry.name) !== null && oldJobs.has(entry.name.slice(0, 48)) && !current.has(entry.name));
|
|
73
|
+
}
|
|
48
74
|
for (const type of types) {
|
|
49
75
|
const count = retentionCount(config, provider, runKind, type, enabled);
|
|
50
76
|
if (!count)
|