@dominevo/server 0.1.0 → 0.1.1
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/.env.example +4 -4
- package/CHANGELOG.md +7 -0
- package/THIRD_PARTY_MODELS.md +13 -13
- package/dist/addon-root-inventory.js +5 -5
- package/dist/agent/agent-config.js +8 -8
- package/dist/agent/agent-group-runner.js +2 -2
- package/dist/agent/agent-http.js +4 -4
- package/dist/agent/agent-infra-capabilities.js +2 -2
- package/dist/agent/agent-self-update.js +3 -3
- package/dist/agent/agent-service.js +3 -3
- package/dist/agent/agent-update-service.js +10 -10
- package/dist/agent/derive-hub-url.js +3 -3
- package/dist/agent/main.js +20 -20
- package/dist/agent/stale-addon-gate.js +7 -7
- package/dist/api/addon-upload.js +12 -12
- package/dist/api/core/auth.router.js +7 -7
- package/dist/api/core/cap-providers.js +1 -1
- package/dist/api/core/logging-settings.js +1 -1
- package/dist/api/core/request-census-settings.js +1 -1
- package/dist/api/cors/cors-policy.js +5 -5
- package/dist/api/dev-uploads-bundle.js +1 -1
- package/dist/api/logs-export-route.js +1 -1
- package/dist/api/model-distributor.js +1 -1
- package/dist/api/server-upload-propagate.js +1 -1
- package/dist/api/server-upload.js +2 -2
- package/dist/api/static/spa-mount.js +3 -3
- package/dist/api/static/spa-static.js +1 -1
- package/dist/api/tarball-manifest.js +4 -4
- package/dist/api/trpc/http-request-census.js +1 -1
- package/dist/api/trpc/trpc.router.js +7 -7
- package/dist/auth/addon-route-share-gate.js +2 -2
- package/dist/auth/app-confirm-page.js +1 -1
- package/dist/auth/app-confirmations.js +2 -2
- package/dist/auth/app-passkey-page.js +1 -1
- package/dist/auth/native-return.js +1 -1
- package/dist/auth/session-cookie.js +2 -2
- package/dist/auth/sso-routes.js +1 -1
- package/dist/boot/boot-config.js +3 -3
- package/dist/boot/post-boot.service.js +2 -2
- package/dist/boot/retired-public-url-env.js +3 -3
- package/dist/bootstrap-packages.js +3 -3
- package/dist/closure-patches/patch-reach.json +7 -7
- package/dist/closure-patches/werift+0.22.9.patch +34 -34
- package/dist/core/addon/addon-package.service.js +32 -32
- package/dist/core/addon/addon-registry.service.js +34 -34
- package/dist/core/addon/addon-requirements.js +8 -8
- package/dist/core/addon/addon-search.service.js +2 -2
- package/dist/core/addon/hub-addon-support.js +2 -2
- package/dist/core/addon/read-packed-file.js +1 -1
- package/dist/core/addon-bridge/addon-bridge.service.js +6 -6
- package/dist/core/addon-pages/addon-pages.service.js +1 -1
- package/dist/core/agent/agent-registry.service.js +1 -1
- package/dist/core/agent/delivery-requirements.js +1 -1
- package/dist/core/app-links/well-known-app-links.js +7 -9
- package/dist/core/auth/handoff-code.service.js +1 -1
- package/dist/core/moleculer/moleculer.service.js +6 -6
- package/dist/core/release-identity.js +2 -2
- package/dist/core/server-update/server-update.service.js +9 -9
- package/dist/core/updates/node-update-announcement.js +1 -1
- package/dist/core/updates/wrapper-update-checker.js +1 -1
- package/dist/framework-nodepath.js +1 -1
- package/dist/i18n/request-lang.js +1 -1
- package/dist/launch-args.js +4 -4
- package/dist/launcher.js +14 -14
- package/dist/main.js +9 -9
- package/dist/manual-boot.js +5 -5
- package/dist/node-role.js +2 -2
- package/dist/package-inventory.js +1 -1
- package/dist/pending-restore.js +1 -1
- package/dist/server-root/index.js +11 -11
- package/dist/single-copy-cleanup-runner.js +2 -2
- package/dist/single-copy-cleanup.js +2 -2
- package/dist/starter.js +9 -9
- package/package.json +71 -71
- package/system/dist/addon-runner.js +59 -59
- package/system/dist/addon-runner.mjs +59 -59
- package/system/dist/{addon-settings.cap-Cxgig-la.mjs → addon-settings.cap-CyWCCPvU.mjs} +1 -1
- package/system/dist/{addon-settings.cap-B3KYrDyh.js → addon-settings.cap-DT34AC0I.js} +1 -1
- package/system/dist/addon-utils.d.ts +1 -1
- package/system/dist/addon-utils.js +1 -1
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/auth/device-ca.d.ts +3 -3
- package/system/dist/auth/origin.d.ts +1 -1
- package/system/dist/{base-addon--EzLZ64f.js → base-addon-CwtR9jMm.js} +8 -28
- package/system/dist/{base-addon-D6i6fCDD.mjs → base-addon-DCfRA4Sq.mjs} +8 -28
- package/system/dist/{base-device-Aptq2PHd.js → base-device-B3OJaaod.js} +3 -3
- package/system/dist/{base-device-CuQ3xFwc.mjs → base-device-QXPOGWz3.mjs} +3 -3
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.d.ts +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +5 -5
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +8 -8
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +4 -4
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +8 -8
- package/system/dist/builtins/alerts/alerts.addon.js +7 -7
- package/system/dist/builtins/alerts/alerts.addon.mjs +9 -9
- package/system/dist/builtins/apps-aggregator/apps-aggregator.addon.js +1 -1
- package/system/dist/builtins/apps-aggregator/apps-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +2 -2
- package/system/dist/builtins/autotrack/index.mjs +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.d.ts +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +5 -5
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +8 -8
- package/system/dist/builtins/backup-orchestrator/manifest-store.d.ts +1 -1
- package/system/dist/builtins/calendars/calendars.addon.js +2 -2
- package/system/dist/builtins/calendars/calendars.addon.mjs +2 -2
- package/system/dist/builtins/camera-grid/index.js +5 -5
- package/system/dist/builtins/camera-grid/index.mjs +5 -5
- package/system/dist/builtins/composer/composer.addon.js +10 -10
- package/system/dist/builtins/composer/composer.addon.mjs +10 -10
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +22 -22
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +20 -20
- package/system/dist/builtins/core-notifier/core-notifier.addon.js +3 -3
- package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +6 -6
- package/system/dist/builtins/device-history/device-history.addon.mjs +6 -6
- package/system/dist/builtins/device-history/store/history-schema.d.ts +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.js +29 -29
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +16 -16
- package/system/dist/builtins/device-manager/device-row-store.d.ts +1 -1
- package/system/dist/builtins/device-manager/fleet-read-census.d.ts +1 -1
- package/system/dist/builtins/device-manager/runtime-state-persist-gate.d.ts +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +15 -15
- package/system/dist/builtins/keychain/index.mjs +15 -15
- package/system/dist/builtins/keychain/key-sources.d.ts +2 -2
- package/system/dist/builtins/keychain/keychain-store.d.ts +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +5 -5
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +5 -5
- package/system/dist/builtins/local-auth/auth-schema.d.ts +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +24 -24
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +17 -17
- package/system/dist/builtins/local-network/agent-mdns.d.ts +1 -1
- package/system/dist/builtins/local-network/hub-mdns.d.ts +1 -1
- package/system/dist/builtins/local-network/local-network.addon.d.ts +3 -3
- package/system/dist/builtins/local-network/local-network.addon.js +15 -15
- package/system/dist/builtins/local-network/local-network.addon.mjs +15 -15
- package/system/dist/builtins/loki-logging/index.js +7 -7
- package/system/dist/builtins/loki-logging/index.mjs +7 -7
- package/system/dist/builtins/loki-logging/loki-payload.d.ts +1 -1
- package/system/dist/builtins/native-metrics/cgroup-memory.d.ts +3 -3
- package/system/dist/builtins/native-metrics/native-metrics.addon.d.ts +2 -2
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +14 -14
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +23 -23
- package/system/dist/builtins/native-metrics/process-classification.d.ts +8 -8
- package/system/dist/builtins/platform-probe/accelerator-facts-probe.d.ts +1 -1
- package/system/dist/builtins/platform-probe/coral-accelerators.d.ts +2 -2
- package/system/dist/builtins/platform-probe/index.js +3 -3
- package/system/dist/builtins/platform-probe/index.mjs +12 -12
- package/system/dist/builtins/record-entries/index.js +3 -3
- package/system/dist/builtins/record-entries/index.mjs +3 -3
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +4 -4
- package/system/dist/builtins/snapshot/index.mjs +4 -4
- package/system/dist/builtins/sqlite-storage/file-host-handlers.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +22 -22
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/migrations/migration-pass.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/owned-sqlite-file.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/query-profiler.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-pragmas.d.ts +2 -2
- package/system/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +19 -19
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +19 -19
- package/system/dist/builtins/storage-orchestrator/access-guards.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/location-secrets.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +18 -18
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +18 -18
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +3 -3
- package/system/dist/builtins/system-backup/backup-encryption.d.ts +1 -1
- package/system/dist/builtins/system-backup/system-backup.service.d.ts +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +31 -31
- package/system/dist/builtins/system-config/system-config.addon.mjs +143 -143
- package/system/dist/builtins/winston-logging/index.js +5 -5
- package/system/dist/builtins/winston-logging/index.mjs +5 -5
- package/system/dist/builtins/winston-logging/log-file-cursor.d.ts +1 -1
- package/system/dist/{cap-call-context-DnLdYSyR.js → cap-call-context-3-L-JQ3d.js} +2 -2
- package/system/dist/{cap-call-context-D-su61hv.mjs → cap-call-context-C_59UKvE.mjs} +2 -2
- package/system/dist/{command-catalog-Cgz3MwLW.mjs → command-catalog-88WjnitG.mjs} +1 -1
- package/system/dist/{command-catalog-0Q83jcdv.js → command-catalog-Bt0rkK6T.js} +1 -1
- package/system/dist/{composition-sources-GNsOlYlG.js → composition-sources-BD_14SLn.js} +2 -2
- package/system/dist/{composition-sources-Dzx55O4S.mjs → composition-sources-BxNM5HHY.mjs} +2 -2
- package/system/dist/{constants-DVHYGlyi.js → constants-B8umFEGY.js} +2 -2
- package/system/dist/{constants-bg2DX4I6.mjs → constants-C86EPRS1.mjs} +2 -2
- package/system/dist/{coral-accelerators-DXDOGcym.mjs → coral-accelerators-CSu5Ahx5.mjs} +6 -6
- package/system/dist/{custom-action-registry-Bd52pRgO.mjs → custom-action-registry-BklzKCJe.mjs} +162 -162
- package/system/dist/{custom-action-registry-DHOCDRef.js → custom-action-registry-C_yB2qlc.js} +125 -125
- package/system/dist/{database-snapshot.cap-BymU4Xk9.js → database-snapshot.cap--dYj7W3i.js} +1 -1
- package/system/dist/{database-snapshot.cap-DAVS29qN.mjs → database-snapshot.cap-DfMxWoak.mjs} +1 -1
- package/system/dist/{declared-device-BSxSa0O8.js → declared-device-BFexdYcl.js} +1 -1
- package/system/dist/{declared-device-C4zPkK6G.mjs → declared-device-D-fwNbiU.mjs} +1 -1
- package/system/dist/{device-ca-BgYUqBEB.js → device-ca-CXDTXX4c.js} +8 -8
- package/system/dist/{device-ca-AvfcD1AT.mjs → device-ca-Du6rfexI.mjs} +8 -8
- package/system/dist/{device-certificate-IVBnrTHH.js → device-certificate-6irX-VEC.js} +4 -4
- package/system/dist/{device-certificate-Kh05tlrX.mjs → device-certificate-B5LojTd8.mjs} +4 -4
- package/system/dist/{device-manager.cap-zbFHbXlg.mjs → device-manager.cap-3gMy5WyI.mjs} +1 -1
- package/system/dist/{device-manager.cap-B-zweScL.js → device-manager.cap-CVm8e--n.js} +1 -1
- package/system/dist/{device-removal-reconcile-DSYwdCX-.mjs → device-removal-reconcile-Bca9Xmxa.mjs} +2 -2
- package/system/dist/{device-removal-reconcile-hF3PFXaD.js → device-removal-reconcile-BtBOAfIX.js} +2 -2
- package/system/dist/{camstack-error-DJ-TUAi1.js → dominevo-error-CTBRQM6p.js} +4 -4
- package/system/dist/{camstack-error-viZYfcj9.mjs → dominevo-error-EgrighSX.mjs} +4 -4
- package/system/dist/download/hosted-model-revisions.d.ts +1 -1
- package/system/dist/{entry-kind-BOBbd1lw.mjs → entry-kind-DJSOxSX2.mjs} +2 -2
- package/system/dist/{entry-kind-BVqSwPqz.js → entry-kind-DzaK6R6L.js} +2 -2
- package/system/dist/file-host-worker.js +3 -3
- package/system/dist/file-host-worker.mjs +3 -3
- package/system/dist/framework-resolver-hook.mjs +1 -1
- package/system/dist/{hub-identity-Ctf-OLhe.mjs → hub-identity-C1lUxisZ.mjs} +19 -19
- package/system/dist/{hub-identity-C5oay5SY.js → hub-identity-DihZeMUF.js} +10 -10
- package/system/dist/{hub-mdns-ciao-BjVwHmsr.js → hub-mdns-ciao-D2Rcz1Kb.js} +42 -42
- package/system/dist/{hub-mdns-ciao-C9adAMGN.mjs → hub-mdns-ciao-D5Udd2A_.mjs} +39 -39
- package/system/dist/index.js +152 -152
- package/system/dist/index.mjs +355 -355
- package/system/dist/{jobs.cap-DHu0iJ1C.js → jobs.cap-Blrf2noc.js} +4 -4
- package/system/dist/{jobs.cap-BPFm9yU4.mjs → jobs.cap-DdrDabtW.mjs} +4 -4
- package/system/dist/kernel/addon-class-resolver.d.ts +2 -2
- package/system/dist/kernel/addon-engine-manager.d.ts +2 -2
- package/system/dist/kernel/addon-installer.d.ts +12 -12
- package/system/dist/kernel/addon-loader.d.ts +6 -6
- package/system/dist/kernel/addon-version-policy.d.ts +1 -1
- package/system/dist/kernel/config-schema.d.ts +2 -2
- package/system/dist/kernel/deps/addon-deps-manager.d.ts +1 -1
- package/system/dist/kernel/deps/closure-dedupe.d.ts +3 -3
- package/system/dist/kernel/deps/ensure-addon-natives.d.ts +1 -1
- package/system/dist/kernel/deps/manifest-native-deps.d.ts +2 -2
- package/system/dist/kernel/deps/manifest-python-deps.d.ts +1 -1
- package/system/dist/kernel/deps/system-package-broker.d.ts +1 -1
- package/system/dist/kernel/deps/system-package-client.d.ts +1 -1
- package/system/dist/kernel/event-plane-report.d.ts +2 -2
- package/system/dist/kernel/fs-utils.d.ts +4 -4
- package/system/dist/kernel/heap-watch.d.ts +8 -8
- package/system/dist/kernel/index.d.ts +1 -1
- package/system/dist/kernel/moleculer/addon-context-factory.d.ts +3 -3
- package/system/dist/kernel/moleculer/addon-service-factory.d.ts +3 -3
- package/system/dist/kernel/moleculer/agent-event-scope.d.ts +2 -2
- package/system/dist/kernel/moleculer/agent-ui-unlock.d.ts +1 -1
- package/system/dist/kernel/moleculer/child-addon-call-dispatch.d.ts +2 -2
- package/system/dist/kernel/moleculer/event-bus-core.d.ts +1 -1
- package/system/dist/kernel/moleculer/event-bus.d.ts +5 -5
- package/system/dist/kernel/moleculer/mesh-mtls/constants.d.ts +1 -1
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-membership.d.ts +1 -1
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/pairing-protocol.d.ts +3 -3
- package/system/dist/kernel/moleculer/runner-heap-flags.d.ts +1 -1
- package/system/dist/kernel/moleculer/runner-native-allocator.d.ts +2 -2
- package/system/dist/kernel/moleculer/stream-probe-service.d.ts +1 -1
- package/system/dist/kernel/moleculer/worker-device-restore.d.ts +2 -2
- package/system/dist/kernel/requires-registry.d.ts +2 -2
- package/system/dist/kernel/transport/create-local-transport.d.ts +1 -1
- package/system/dist/kernel/transport/local-child-registry.d.ts +1 -1
- package/system/dist/kernel/transport/uds-event-bridge.d.ts +1 -1
- package/system/dist/kernel/unsupported-addon-tracker.d.ts +1 -1
- package/system/dist/{keychain-admin.cap-DOvL8TMG.mjs → keychain-admin.cap-C3eanzBT.mjs} +2 -2
- package/system/dist/{keychain-admin.cap-DcRCRWtu.js → keychain-admin.cap-yMG0j8XP.js} +2 -2
- package/system/dist/{legacy-integration-rows-door-CUpCwPm5.js → legacy-integration-rows-door-1c-XBxRt.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-bidgp6kI.mjs → legacy-integration-rows-door-CYFvlkdt.mjs} +1 -1
- package/system/dist/{log-file-read-protocol-hTaAsYlX.mjs → log-file-read-protocol-B3Tq2F50.mjs} +2 -2
- package/system/dist/{log-file-read-protocol-DSV_vQRb.js → log-file-read-protocol-BRHlsNCj.js} +2 -2
- package/system/dist/log-file-read-worker.js +1 -1
- package/system/dist/log-file-read-worker.mjs +1 -1
- package/system/dist/logging/formatter.d.ts +1 -1
- package/system/dist/{metrics-provider.cap-01SwpLu5.mjs → metrics-provider.cap-BKzH22yb.mjs} +2 -2
- package/system/dist/{metrics-provider.cap-BMKD5FH3.js → metrics-provider.cap-H0RjdYQj.js} +2 -2
- package/system/dist/{migration-CHPdAdNh.js → migration-CvC7YRxn.js} +1 -1
- package/system/dist/{migration-BvbfW9g-.mjs → migration-DDDUJnTU.mjs} +1 -1
- package/system/dist/migrations/hub/index.d.ts +1 -1
- package/system/dist/{named-entity-store-EQovvtag.js → named-entity-store-B7MMnZq_.js} +1 -1
- package/system/dist/{named-entity-store-C2JkesQG.mjs → named-entity-store-CLIUOHkl.mjs} +1 -1
- package/system/dist/{network-access.cap-CxqbyUYK.js → network-access.cap-C97_DUK9.js} +10 -10
- package/system/dist/{network-access.cap-B918UjWD.mjs → network-access.cap-DcLn1v6p.mjs} +9 -9
- package/system/dist/{notification-targets-Cj6I9DzV.js → notification-targets-BH-Kq5zA.js} +2 -2
- package/system/dist/{notification-targets-cJTv1p6y.mjs → notification-targets-gTLSExN5.mjs} +2 -2
- package/system/dist/{platform-key-source-Di7HrlGR.js → platform-key-source-DERonx7U.js} +1 -1
- package/system/dist/{platform-key-source-BWlq0jjn.mjs → platform-key-source-vw43KkgD.mjs} +1 -1
- package/system/dist/{record-entries.cap-jKkDRzZG.mjs → record-entries.cap-DqaspI30.mjs} +2 -2
- package/system/dist/{record-entries.cap-RXnOab_5.js → record-entries.cap-u4EjNUWg.js} +2 -2
- package/system/dist/{record-kind-Cm1DO1qJ.js → record-kind-BYbL_LNZ.js} +1 -1
- package/system/dist/{record-kind-DXFsj6uF.mjs → record-kind-DpcGjBK1.mjs} +1 -1
- package/system/dist/{record-kinds-CLYE4x8E.js → record-kinds-CF3IIGeU.js} +6 -6
- package/system/dist/{record-kinds-Xm95PUr5.mjs → record-kinds-HynLKMsB.mjs} +6 -6
- package/system/dist/{recording-archive.cap-BFiEztoo.js → recording-archive.cap-DPyT1msn.js} +5 -5
- package/system/dist/{recording-archive.cap-DljrTthl.mjs → recording-archive.cap-DoeNelun.mjs} +4 -4
- package/system/dist/{records.cap-BDUsx56H.mjs → records.cap-A6ZnC18-.mjs} +2 -2
- package/system/dist/{records.cap-DKDON4zv.js → records.cap-CrdoSJ1h.js} +2 -2
- package/system/dist/{rename-composition-block-BdhK2udh.mjs → rename-composition-block-CMfftDfW.mjs} +43 -43
- package/system/dist/{rename-composition-block-CJ-XbDsk.js → rename-composition-block-CeKeUquQ.js} +43 -43
- package/system/dist/{restore-archive-BQhYL8c4.mjs → restore-archive-DngNk5Yg.mjs} +104 -104
- package/system/dist/{restore-archive-DWIM3J3f.js → restore-archive-LKIQ4CNL.js} +11 -11
- package/system/dist/{retention-source.cap-BvNRqbz3.js → retention-source.cap-CuI320Je.js} +1 -1
- package/system/dist/{retention-source.cap-DUPeqB5h.mjs → retention-source.cap-DLKW-DAE.mjs} +1 -1
- package/system/dist/{retired-settings-keys-BFLkouoC.mjs → retired-settings-keys-Dakm_ir-.mjs} +1 -1
- package/system/dist/{retired-settings-keys-DNi9qA3K.js → retired-settings-keys-DdoaQDUr.js} +1 -1
- package/system/dist/{scoped-settings-DbyAaIot.js → scoped-settings-8uzhJVsE.js} +3 -3
- package/system/dist/{scoped-settings-d2_FTMty.mjs → scoped-settings-DnkTDuvk.mjs} +3 -3
- package/system/dist/{settings-store.cap-BhOIBtO4.js → settings-store.cap-DqFgT2Xo.js} +1 -1
- package/system/dist/{settings-store.cap-CaDSOqgK.mjs → settings-store.cap-DxsDTQxb.mjs} +1 -1
- package/system/dist/{state-refresh-scheduler-GlExK5Pt.js → state-refresh-scheduler-8_rBg2-4.js} +1 -1
- package/system/dist/{state-refresh-scheduler-CJuGzqZh.mjs → state-refresh-scheduler-B3pfIHRS.mjs} +1 -1
- package/system/dist/{storage-admin.cap-DPH4dWEl.js → storage-admin.cap-BndyGERv.js} +5 -5
- package/system/dist/{storage-admin.cap-CP_CtM0h.mjs → storage-admin.cap-DOZ5tsKA.mjs} +5 -5
- package/system/dist/{storage-migration.cap-DT_sdxio.js → storage-migration.cap-C52LxDX2.js} +4 -4
- package/system/dist/{storage-migration.cap-BonKGHaA.mjs → storage-migration.cap-DRl4rt-0.mjs} +4 -4
- package/system/dist/{storage-occupancy.cap-avoVkjfF.js → storage-occupancy.cap-CiGDOgpG.js} +3 -3
- package/system/dist/{storage-occupancy.cap-B_YU_aX3.mjs → storage-occupancy.cap-_VVBswn4.mjs} +3 -3
- package/system/dist/{stream-catalog.cap-Blw9nJ-a.js → stream-catalog.cap-Bl0BSYye.js} +4 -4
- package/system/dist/{stream-catalog.cap-D08FM3ow.mjs → stream-catalog.cap-C7vlYIih.mjs} +4 -4
- package/system/dist/tls/cert-evaluation.d.ts +3 -3
- package/system/dist/tls/cert-issue.d.ts +2 -2
- package/system/dist/tls/cert-manager.d.ts +7 -7
- package/system/dist/tls/tls-actions.d.ts +1 -1
- package/system/dist/tls/tls-status.d.ts +1 -1
- package/system/dist/{user-management.cap-BIOAtxeX.js → user-management.cap-D9EcsR2c.js} +2 -2
- package/system/dist/{user-management.cap-D8lVSHRA.mjs → user-management.cap-mDnBlJay.mjs} +2 -2
- package/system/dist/{wal-maintenance-8cxZxWU2.js → wal-maintenance-BPDo9Jao.js} +9 -9
- package/system/dist/{wal-maintenance-BGa2lDZp.mjs → wal-maintenance-SArcuHLu.mjs} +9 -9
- package/system/package.json +3 -3
|
@@ -3,17 +3,17 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_base_addon = require("../../base-addon
|
|
7
|
-
const require_scoped_settings = require("../../scoped-settings-
|
|
8
|
-
const require_record_kind = require("../../record-kind-
|
|
9
|
-
const require_keychain_admin_cap = require("../../keychain-admin.cap-
|
|
10
|
-
const require_device_ca = require("../../device-ca-
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
|
+
const require_scoped_settings = require("../../scoped-settings-8uzhJVsE.js");
|
|
8
|
+
const require_record_kind = require("../../record-kind-BYbL_LNZ.js");
|
|
9
|
+
const require_keychain_admin_cap = require("../../keychain-admin.cap-yMG0j8XP.js");
|
|
10
|
+
const require_device_ca = require("../../device-ca-CXDTXX4c.js");
|
|
11
11
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
12
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
13
|
-
const require_constants = require("../../constants-
|
|
14
|
-
const require_platform_key_source = require("../../platform-key-source-
|
|
15
|
-
let node_crypto = require("node:crypto");
|
|
12
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-1c-XBxRt.js");
|
|
13
|
+
const require_constants = require("../../constants-B8umFEGY.js");
|
|
14
|
+
const require_platform_key_source = require("../../platform-key-source-DERonx7U.js");
|
|
16
15
|
let _dominevo_types_node = require("@dominevo/types/node");
|
|
16
|
+
let node_crypto = require("node:crypto");
|
|
17
17
|
let node_fs = require("node:fs");
|
|
18
18
|
let node_path = require("node:path");
|
|
19
19
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -21,7 +21,7 @@ var IV_BYTES = 12;
|
|
|
21
21
|
var TAG_BYTES = 16;
|
|
22
22
|
var VALUE_PREFIX = "ck1";
|
|
23
23
|
var WRAP_PREFIX = "kw1";
|
|
24
|
-
var FINGERPRINT_LABEL = "
|
|
24
|
+
var FINGERPRINT_LABEL = "dominevo-keychain-v1";
|
|
25
25
|
/** 32 fresh random bytes — a master or a data key. */
|
|
26
26
|
function generateKey() {
|
|
27
27
|
return (0, node_crypto.randomBytes)(32);
|
|
@@ -86,7 +86,7 @@ function open(key, ivB64, tagB64, ctB64, aad) {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
function dekAad(keyId) {
|
|
89
|
-
return `
|
|
89
|
+
return `dominevo-keychain-dek:${keyId}`;
|
|
90
90
|
}
|
|
91
91
|
/** Wrap a data key under a master key. */
|
|
92
92
|
function wrapDek(kek, dek, keyId) {
|
|
@@ -122,7 +122,7 @@ function decryptValue(dek, ref, envelope) {
|
|
|
122
122
|
* Where the master key comes from (D788, amended by D991). FIXED paths only —
|
|
123
123
|
* no config key, NO env var carries a key or a key path:
|
|
124
124
|
*
|
|
125
|
-
* 1. `/run/secrets/
|
|
125
|
+
* 1. `/run/secrets/dominevo-master-key` — primary when the file EXISTS at boot
|
|
126
126
|
* (the Docker / Compose secrets convention; Unraid and Proxmox bind-mount a
|
|
127
127
|
* file there). A file outside the data volume: a whole-volume backup then
|
|
128
128
|
* holds the ciphertext but not the key. Dominevo only READS it — it is
|
|
@@ -135,16 +135,16 @@ function decryptValue(dek, ref, envelope) {
|
|
|
135
135
|
* the whole data directory carries key and database together, and the
|
|
136
136
|
* Secrets page says so.
|
|
137
137
|
*
|
|
138
|
-
* `/run/secrets/
|
|
138
|
+
* `/run/secrets/dominevo-master-key.previous` is consulted only to UNLOCK — so a
|
|
139
139
|
* move from one external key to another is a restart plus `rotateMasterKey`,
|
|
140
140
|
* with no window where neither key works.
|
|
141
141
|
*/
|
|
142
142
|
/** The directory the mounted key files live in (injectable for specs, never an env var). */
|
|
143
143
|
var DEFAULT_SECRETS_DIR = "/run/secrets";
|
|
144
144
|
/** The mounted primary key file, under the secrets directory. */
|
|
145
|
-
var MOUNTED_KEY_FILE_NAME = "
|
|
145
|
+
var MOUNTED_KEY_FILE_NAME = "dominevo-master-key";
|
|
146
146
|
/** The mounted unlock-only key file, under the secrets directory. */
|
|
147
|
-
var PREVIOUS_MOUNTED_KEY_FILE_NAME = "
|
|
147
|
+
var PREVIOUS_MOUNTED_KEY_FILE_NAME = "dominevo-master-key.previous";
|
|
148
148
|
/** Absolute form of both, for messages. */
|
|
149
149
|
var MOUNTED_KEY_FILE_PATH = `${DEFAULT_SECRETS_DIR}/${MOUNTED_KEY_FILE_NAME}`;
|
|
150
150
|
var PREVIOUS_MOUNTED_KEY_FILE_PATH = `${DEFAULT_SECRETS_DIR}/${PREVIOUS_MOUNTED_KEY_FILE_NAME}`;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { b as EventCategory, t as BaseAddon } from "../../base-addon-
|
|
2
|
-
import { C as normalizeSecretOwner, w as parseSecretRef, x as formatSecretScope } from "../../scoped-settings-
|
|
3
|
-
import { s as defineRecordKinds } from "../../record-kind-
|
|
4
|
-
import { a as keychainCapability, i as keychainAdminCapability, n as KeychainAuditEntrySchema, r as KeychainResetRecordSchema, t as KEYCHAIN_RESET_TRIGGER_ACTOR } from "../../keychain-admin.cap-
|
|
5
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
1
|
+
import { b as EventCategory, t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
|
|
2
|
+
import { C as normalizeSecretOwner, w as parseSecretRef, x as formatSecretScope } from "../../scoped-settings-DnkTDuvk.mjs";
|
|
3
|
+
import { s as defineRecordKinds } from "../../record-kind-DpcGjBK1.mjs";
|
|
4
|
+
import { a as keychainCapability, i as keychainAdminCapability, n as KeychainAuditEntrySchema, r as KeychainResetRecordSchema, t as KEYCHAIN_RESET_TRIGGER_ACTOR } from "../../keychain-admin.cap-C3eanzBT.mjs";
|
|
5
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-Du6rfexI.mjs";
|
|
6
6
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
7
|
-
import { t as LEGACY_INTEGRATION_ROWS_TABLE } from "../../legacy-integration-rows-door-
|
|
8
|
-
import { a as MESH_CA_KEY_REF } from "../../constants-
|
|
9
|
-
import { n as getPlatformKeychainKey } from "../../platform-key-source-
|
|
10
|
-
import { createCipheriv, createDecipheriv, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
7
|
+
import { t as LEGACY_INTEGRATION_ROWS_TABLE } from "../../legacy-integration-rows-door-CYFvlkdt.mjs";
|
|
8
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-C86EPRS1.mjs";
|
|
9
|
+
import { n as getPlatformKeychainKey } from "../../platform-key-source-vw43KkgD.mjs";
|
|
11
10
|
import { restrictDirToOwnerSync, restrictFileToOwnerSync, writeOwnerOnlyFileSync } from "@dominevo/types/node";
|
|
11
|
+
import { createCipheriv, createDecipheriv, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
12
12
|
import { promises } from "node:fs";
|
|
13
13
|
import * as path$1 from "node:path";
|
|
14
14
|
var IV_BYTES = 12;
|
|
15
15
|
var TAG_BYTES = 16;
|
|
16
16
|
var VALUE_PREFIX = "ck1";
|
|
17
17
|
var WRAP_PREFIX = "kw1";
|
|
18
|
-
var FINGERPRINT_LABEL = "
|
|
18
|
+
var FINGERPRINT_LABEL = "dominevo-keychain-v1";
|
|
19
19
|
/** 32 fresh random bytes — a master or a data key. */
|
|
20
20
|
function generateKey() {
|
|
21
21
|
return randomBytes(32);
|
|
@@ -80,7 +80,7 @@ function open(key, ivB64, tagB64, ctB64, aad) {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
function dekAad(keyId) {
|
|
83
|
-
return `
|
|
83
|
+
return `dominevo-keychain-dek:${keyId}`;
|
|
84
84
|
}
|
|
85
85
|
/** Wrap a data key under a master key. */
|
|
86
86
|
function wrapDek(kek, dek, keyId) {
|
|
@@ -116,7 +116,7 @@ function decryptValue(dek, ref, envelope) {
|
|
|
116
116
|
* Where the master key comes from (D788, amended by D991). FIXED paths only —
|
|
117
117
|
* no config key, NO env var carries a key or a key path:
|
|
118
118
|
*
|
|
119
|
-
* 1. `/run/secrets/
|
|
119
|
+
* 1. `/run/secrets/dominevo-master-key` — primary when the file EXISTS at boot
|
|
120
120
|
* (the Docker / Compose secrets convention; Unraid and Proxmox bind-mount a
|
|
121
121
|
* file there). A file outside the data volume: a whole-volume backup then
|
|
122
122
|
* holds the ciphertext but not the key. Dominevo only READS it — it is
|
|
@@ -129,16 +129,16 @@ function decryptValue(dek, ref, envelope) {
|
|
|
129
129
|
* the whole data directory carries key and database together, and the
|
|
130
130
|
* Secrets page says so.
|
|
131
131
|
*
|
|
132
|
-
* `/run/secrets/
|
|
132
|
+
* `/run/secrets/dominevo-master-key.previous` is consulted only to UNLOCK — so a
|
|
133
133
|
* move from one external key to another is a restart plus `rotateMasterKey`,
|
|
134
134
|
* with no window where neither key works.
|
|
135
135
|
*/
|
|
136
136
|
/** The directory the mounted key files live in (injectable for specs, never an env var). */
|
|
137
137
|
var DEFAULT_SECRETS_DIR = "/run/secrets";
|
|
138
138
|
/** The mounted primary key file, under the secrets directory. */
|
|
139
|
-
var MOUNTED_KEY_FILE_NAME = "
|
|
139
|
+
var MOUNTED_KEY_FILE_NAME = "dominevo-master-key";
|
|
140
140
|
/** The mounted unlock-only key file, under the secrets directory. */
|
|
141
|
-
var PREVIOUS_MOUNTED_KEY_FILE_NAME = "
|
|
141
|
+
var PREVIOUS_MOUNTED_KEY_FILE_NAME = "dominevo-master-key.previous";
|
|
142
142
|
/** Absolute form of both, for messages. */
|
|
143
143
|
var MOUNTED_KEY_FILE_PATH = `${DEFAULT_SECRETS_DIR}/${MOUNTED_KEY_FILE_NAME}`;
|
|
144
144
|
var PREVIOUS_MOUNTED_KEY_FILE_PATH = `${DEFAULT_SECRETS_DIR}/${PREVIOUS_MOUNTED_KEY_FILE_NAME}`;
|
|
@@ -2,9 +2,9 @@ import type { KeychainKeySource } from "@dominevo/types";
|
|
|
2
2
|
/** The directory the mounted key files live in (injectable for specs, never an env var). */
|
|
3
3
|
export declare const DEFAULT_SECRETS_DIR = "/run/secrets";
|
|
4
4
|
/** The mounted primary key file, under the secrets directory. */
|
|
5
|
-
export declare const MOUNTED_KEY_FILE_NAME = "
|
|
5
|
+
export declare const MOUNTED_KEY_FILE_NAME = "dominevo-master-key";
|
|
6
6
|
/** The mounted unlock-only key file, under the secrets directory. */
|
|
7
|
-
export declare const PREVIOUS_MOUNTED_KEY_FILE_NAME = "
|
|
7
|
+
export declare const PREVIOUS_MOUNTED_KEY_FILE_NAME = "dominevo-master-key.previous";
|
|
8
8
|
/** Absolute form of both, for messages. */
|
|
9
9
|
export declare const MOUNTED_KEY_FILE_PATH: string;
|
|
10
10
|
export declare const PREVIOUS_MOUNTED_KEY_FILE_PATH: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The keychain's three tables, behind the `settings-store` door (D44) — the
|
|
3
3
|
* same database file as every other collection, which is the point: what a
|
|
4
|
-
* stray copy of `
|
|
4
|
+
* stray copy of `dominevo.db` holds of them is ciphertext, wrapped key material
|
|
5
5
|
* and an audit trail, never a value.
|
|
6
6
|
*
|
|
7
7
|
* The repository takes a narrow door port rather than the whole tRPC client so
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_base_addon = require("../../base-addon
|
|
4
|
-
const require_scoped_settings = require("../../scoped-settings-
|
|
5
|
-
const require_recording_archive_cap = require("../../recording-archive.cap-
|
|
3
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
4
|
+
const require_scoped_settings = require("../../scoped-settings-8uzhJVsE.js");
|
|
5
|
+
const require_recording_archive_cap = require("../../recording-archive.cap-DPyT1msn.js");
|
|
6
6
|
const require_storage_location_mode = require("../../storage-location-mode-CS4sMzo-.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
let node_path = require("node:path");
|
|
@@ -382,7 +382,7 @@ var LivenessMonitorAddon = class extends require_base_addon.BaseAddon {
|
|
|
382
382
|
async lastSegmentMs(deviceId, nowMs, staleAfterMs) {
|
|
383
383
|
const recent = await this.ctx.api.recording.getAvailability.query({
|
|
384
384
|
deviceId,
|
|
385
|
-
provider: require_recording_archive_cap.
|
|
385
|
+
provider: require_recording_archive_cap.RECORDING_SOURCE_DOMINEVO_ADDON,
|
|
386
386
|
fromMs: nowMs - staleAfterMs,
|
|
387
387
|
toMs: nowMs
|
|
388
388
|
});
|
|
@@ -390,7 +390,7 @@ var LivenessMonitorAddon = class extends require_base_addon.BaseAddon {
|
|
|
390
390
|
if (recent.ranges.length > 0) return Math.max(...recent.ranges.map((r) => r.endMs));
|
|
391
391
|
const day = await this.ctx.api.recording.getAvailability.query({
|
|
392
392
|
deviceId,
|
|
393
|
-
provider: require_recording_archive_cap.
|
|
393
|
+
provider: require_recording_archive_cap.RECORDING_SOURCE_DOMINEVO_ADDON,
|
|
394
394
|
fromMs: nowMs - RECORDING_LOOKBACK_MS,
|
|
395
395
|
toMs: nowMs
|
|
396
396
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as EventCategory, p as createEvent, t as BaseAddon } from "../../base-addon-
|
|
2
|
-
import { Z as errMsg } from "../../scoped-settings-
|
|
3
|
-
import { r as
|
|
1
|
+
import { b as EventCategory, p as createEvent, t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
|
|
2
|
+
import { Z as errMsg } from "../../scoped-settings-DnkTDuvk.mjs";
|
|
3
|
+
import { r as RECORDING_SOURCE_DOMINEVO_ADDON, t as RecordingStatusSchema } from "../../recording-archive.cap-DoeNelun.mjs";
|
|
4
4
|
import { o as mayWriteToLocation } from "../../storage-location-mode-B21UVRRX.mjs";
|
|
5
5
|
import { constants } from "node:fs";
|
|
6
6
|
import path from "node:path";
|
|
@@ -378,7 +378,7 @@ var LivenessMonitorAddon = class extends BaseAddon {
|
|
|
378
378
|
async lastSegmentMs(deviceId, nowMs, staleAfterMs) {
|
|
379
379
|
const recent = await this.ctx.api.recording.getAvailability.query({
|
|
380
380
|
deviceId,
|
|
381
|
-
provider:
|
|
381
|
+
provider: RECORDING_SOURCE_DOMINEVO_ADDON,
|
|
382
382
|
fromMs: nowMs - staleAfterMs,
|
|
383
383
|
toMs: nowMs
|
|
384
384
|
});
|
|
@@ -386,7 +386,7 @@ var LivenessMonitorAddon = class extends BaseAddon {
|
|
|
386
386
|
if (recent.ranges.length > 0) return Math.max(...recent.ranges.map((r) => r.endMs));
|
|
387
387
|
const day = await this.ctx.api.recording.getAvailability.query({
|
|
388
388
|
deviceId,
|
|
389
|
-
provider:
|
|
389
|
+
provider: RECORDING_SOURCE_DOMINEVO_ADDON,
|
|
390
390
|
fromMs: nowMs - RECORDING_LOOKBACK_MS,
|
|
391
391
|
toMs: nowMs
|
|
392
392
|
});
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* a name that already exists with a legacy `(id, data)` KV shape, the
|
|
18
18
|
* `ensureTable` helper drops the old table and recreates it. Existing
|
|
19
19
|
* data is wiped — `ensureAdminExists` re-seeds the admin from
|
|
20
|
-
*
|
|
20
|
+
* DOMINEVO_ADMIN_USER / DOMINEVO_ADMIN_PASS on the next boot (an empty
|
|
21
21
|
* table is a first boot).
|
|
22
22
|
*/
|
|
23
23
|
import type { SettingsStoreClient } from "@dominevo/types";
|
|
@@ -3,21 +3,21 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_base_addon = require("../../base-addon
|
|
7
|
-
const require_scoped_settings = require("../../scoped-settings-
|
|
8
|
-
const
|
|
9
|
-
const require_record_kind = require("../../record-kind-
|
|
10
|
-
const require_user_management_cap = require("../../user-management.cap-
|
|
11
|
-
const require_device_certificate = require("../../device-certificate-
|
|
6
|
+
const require_base_addon = require("../../base-addon-CwtR9jMm.js");
|
|
7
|
+
const require_scoped_settings = require("../../scoped-settings-8uzhJVsE.js");
|
|
8
|
+
const require_dominevo_error = require("../../dominevo-error-CTBRQM6p.js");
|
|
9
|
+
const require_record_kind = require("../../record-kind-BYbL_LNZ.js");
|
|
10
|
+
const require_user_management_cap = require("../../user-management.cap-D9EcsR2c.js");
|
|
11
|
+
const require_device_certificate = require("../../device-certificate-6irX-VEC.js");
|
|
12
12
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
13
13
|
const require_ms$1 = require("../../ms-LB3giGoU.js");
|
|
14
|
-
const require_device_ca = require("../../device-ca-
|
|
14
|
+
const require_device_ca = require("../../device-ca-CXDTXX4c.js");
|
|
15
15
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
16
16
|
let zod = require("zod");
|
|
17
|
-
let node_crypto = require("node:crypto");
|
|
18
|
-
node_crypto = require_chunk.__toESM(node_crypto);
|
|
19
17
|
let crypto$1 = require("crypto");
|
|
20
18
|
crypto$1 = require_chunk.__toESM(crypto$1, 1);
|
|
19
|
+
let node_crypto = require("node:crypto");
|
|
20
|
+
node_crypto = require_chunk.__toESM(node_crypto);
|
|
21
21
|
let node_fs = require("node:fs");
|
|
22
22
|
node_fs = require_chunk.__toESM(node_fs);
|
|
23
23
|
let node_path = require("node:path");
|
|
@@ -29,7 +29,7 @@ node_path = require_chunk.__toESM(node_path);
|
|
|
29
29
|
* hub can reach the addon's `127.0.0.1` listener. Defined here (shared by the
|
|
30
30
|
* core proxy and the kernel listener) to keep both off a kernel↔core import.
|
|
31
31
|
*/
|
|
32
|
-
var DATAPLANE_SECRET_HEADER = "x-
|
|
32
|
+
var DATAPLANE_SECRET_HEADER = "x-dominevo-dataplane-secret";
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region ../types/dist/esm/auth/credential-scope.mjs
|
|
35
35
|
/** What a share-view grant lets its holder see. */
|
|
@@ -71,13 +71,13 @@ var CREDENTIAL_TOKEN_KIND = "credential";
|
|
|
71
71
|
* can never be replayed as a person's session. Only the credential verifier's
|
|
72
72
|
* own door (`verifyCredentialToken`) accepts it.
|
|
73
73
|
*/
|
|
74
|
-
var CREDENTIAL_TOKEN_AUDIENCE = "
|
|
74
|
+
var CREDENTIAL_TOKEN_AUDIENCE = "dominevo:credential";
|
|
75
75
|
/** Does a verified JWT payload belong to the minted-token family? */
|
|
76
76
|
function isCredentialTokenPayload(payload) {
|
|
77
77
|
if (payload === null || typeof payload !== "object") return false;
|
|
78
78
|
const kind = Reflect.get(payload, "kind");
|
|
79
79
|
const aud = Reflect.get(payload, "aud");
|
|
80
|
-
return kind === "credential" || aud === "
|
|
80
|
+
return kind === "credential" || aud === "dominevo:credential" || Array.isArray(aud) && aud.includes("dominevo:credential");
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* The claims of a unified token (`auth.mintToken`). It carries no `exp`: its
|
|
@@ -6824,7 +6824,7 @@ var DeviceCredentialManager = class {
|
|
|
6824
6824
|
/** A one-shot code for `userId` (admin path). Returned once; only its hash is kept. */
|
|
6825
6825
|
startEnrollment(input) {
|
|
6826
6826
|
this.prune();
|
|
6827
|
-
if (this.pendingEnrollments.size >= MAX_PENDING) throw
|
|
6827
|
+
if (this.pendingEnrollments.size >= MAX_PENDING) throw require_dominevo_error.userError("system.device-enrollment-busy", void 0, "Too many pending device enrollments — try again shortly");
|
|
6828
6828
|
const code = node_crypto.randomBytes(24).toString("base64url");
|
|
6829
6829
|
const expiresAt = this.now() + require_device_certificate.DEVICE_ENROLLMENT_TTL_MS;
|
|
6830
6830
|
this.pendingEnrollments.set(hash(code), {
|
|
@@ -7775,7 +7775,7 @@ function localAuthRecordStoresOf(records) {
|
|
|
7775
7775
|
}
|
|
7776
7776
|
//#endregion
|
|
7777
7777
|
//#region src/auth/session-revocation-bus.ts
|
|
7778
|
-
var BUS_KEY = Symbol.for("
|
|
7778
|
+
var BUS_KEY = Symbol.for("dominevo.login-sessions.revocation-bus");
|
|
7779
7779
|
function listeners() {
|
|
7780
7780
|
const existing = Reflect.get(globalThis, BUS_KEY);
|
|
7781
7781
|
if (existing instanceof Set) return existing;
|
|
@@ -8666,7 +8666,7 @@ var UserPreferencesStore = class {
|
|
|
8666
8666
|
//#endregion
|
|
8667
8667
|
//#region src/auth/user-management-internal.ts
|
|
8668
8668
|
/** Process-global, so every bundled copy of this module agrees on the key. */
|
|
8669
|
-
var USER_MANAGEMENT_INTERNAL = Symbol.for("
|
|
8669
|
+
var USER_MANAGEMENT_INTERNAL = Symbol.for("dominevo.user-management.internal");
|
|
8670
8670
|
/** Attach `internal` to `provider` (returns the same object, now carrying it). */
|
|
8671
8671
|
function attachUserManagementInternal(provider, internal) {
|
|
8672
8672
|
Object.defineProperty(provider, USER_MANAGEMENT_INTERNAL, {
|
|
@@ -8742,7 +8742,7 @@ var UserManager = class {
|
|
|
8742
8742
|
return this.legacyStore;
|
|
8743
8743
|
}
|
|
8744
8744
|
async create(input) {
|
|
8745
|
-
if (await this.findByUsername(input.username)) throw
|
|
8745
|
+
if (await this.findByUsername(input.username)) throw require_dominevo_error.userError("system.user-exists", { username: String(input.username) }, `User with username "${input.username}" already exists`);
|
|
8746
8746
|
const passwordHash = await this.auth.hashPassword(input.password);
|
|
8747
8747
|
const now = Date.now();
|
|
8748
8748
|
const record = {
|
|
@@ -8824,7 +8824,7 @@ var UserManager = class {
|
|
|
8824
8824
|
}
|
|
8825
8825
|
async update(id, data) {
|
|
8826
8826
|
const existing = await this.findById(id);
|
|
8827
|
-
if (!existing) throw
|
|
8827
|
+
if (!existing) throw require_dominevo_error.userError("system.user-not-found", { id: String(id) }, `User with id "${id}" not found`);
|
|
8828
8828
|
const next = {
|
|
8829
8829
|
...existing,
|
|
8830
8830
|
...data,
|
|
@@ -8860,7 +8860,7 @@ var UserManager = class {
|
|
|
8860
8860
|
}
|
|
8861
8861
|
async resetPassword(id, newPassword) {
|
|
8862
8862
|
const existing = await this.findById(id);
|
|
8863
|
-
if (!existing) throw
|
|
8863
|
+
if (!existing) throw require_dominevo_error.userError("system.user-not-found", { id: String(id) }, `User with id "${id}" not found`);
|
|
8864
8864
|
const passwordHash = await this.auth.hashPassword(newPassword);
|
|
8865
8865
|
const next = {
|
|
8866
8866
|
...existing,
|
|
@@ -8951,7 +8951,7 @@ function assertPersonScopes(scopes) {
|
|
|
8951
8951
|
if (scopes.length === 0) return;
|
|
8952
8952
|
const only = scopes[0];
|
|
8953
8953
|
if (scopes.length === 1 && only !== void 0 && only.type === "viewer") return;
|
|
8954
|
-
throw
|
|
8954
|
+
throw require_dominevo_error.userError("auth.person-scopes-refused", void 0, "A person is an admin, with no scope rows, or holds exactly one viewer grant");
|
|
8955
8955
|
}
|
|
8956
8956
|
var JwtSigningKeyKeeper = class {
|
|
8957
8957
|
deps;
|
|
@@ -8998,7 +8998,7 @@ var JwtSigningKeyKeeper = class {
|
|
|
8998
8998
|
}
|
|
8999
8999
|
if (previous.state === "ready") return;
|
|
9000
9000
|
require_device_ca.setProcessJwtSigningKey(next);
|
|
9001
|
-
this.deps.logger.error("Sessions are UNAVAILABLE: the session signing key cannot be read from the keychain. No one can sign in and no session token verifies until the keychain unlocks (Data → Secrets; or fix the mounted key at /run/secrets/
|
|
9001
|
+
this.deps.logger.error("Sessions are UNAVAILABLE: the session signing key cannot be read from the keychain. No one can sign in and no session token verifies until the keychain unlocks (Data → Secrets; or fix the mounted key at /run/secrets/dominevo-master-key and restart). No fallback key is used.", { meta: {
|
|
9002
9002
|
reason: next.reason,
|
|
9003
9003
|
ref: require_device_ca.JWT_SIGNING_KEY_REF
|
|
9004
9004
|
} });
|
|
@@ -12212,7 +12212,7 @@ var LocalAuthAddon = class extends require_base_addon.BaseAddon {
|
|
|
12212
12212
|
},
|
|
12213
12213
|
confirmTotp: async (input) => {
|
|
12214
12214
|
if (!this.totpManager) throw new Error("TOTP management not available");
|
|
12215
|
-
if (!await this.totpManager.confirm(input.userId, input.code)) throw
|
|
12215
|
+
if (!await this.totpManager.confirm(input.userId, input.code)) throw require_dominevo_error.userError("auth.totp-confirm-failed", void 0, "TOTP confirmation failed — code did not match");
|
|
12216
12216
|
return { success: true };
|
|
12217
12217
|
},
|
|
12218
12218
|
disableTotp: async (input) => {
|
|
@@ -12274,7 +12274,7 @@ var LocalAuthAddon = class extends require_base_addon.BaseAddon {
|
|
|
12274
12274
|
/** The admin cap (`device-credentials`): list, enroll-by-QR, revoke, rename, settings. */
|
|
12275
12275
|
buildDeviceCredentialsProvider() {
|
|
12276
12276
|
const manager = () => {
|
|
12277
|
-
if (this.deviceCredentials === null) throw
|
|
12277
|
+
if (this.deviceCredentials === null) throw require_dominevo_error.userError("device.credentials-unavailable", void 0, "Device credentials not available");
|
|
12278
12278
|
return this.deviceCredentials;
|
|
12279
12279
|
};
|
|
12280
12280
|
const hubOrigins = async () => {
|
|
@@ -12326,7 +12326,7 @@ var LocalAuthAddon = class extends require_base_addon.BaseAddon {
|
|
|
12326
12326
|
},
|
|
12327
12327
|
revokeDeviceCredential: async (input) => {
|
|
12328
12328
|
const record = manager().get(input.id);
|
|
12329
|
-
if (record === void 0) throw
|
|
12329
|
+
if (record === void 0) throw require_dominevo_error.userError("device.credential-not-found", { id: input.id }, `Device credential not found: ${input.id}`);
|
|
12330
12330
|
const revoked = await manager().revoke(input.id, require_device_certificate.formatDeviceRevoker({
|
|
12331
12331
|
kind: "admin",
|
|
12332
12332
|
userId: input.caller.userId
|
|
@@ -12397,7 +12397,7 @@ var LocalAuthAddon = class extends require_base_addon.BaseAddon {
|
|
|
12397
12397
|
return this.loginSessions;
|
|
12398
12398
|
};
|
|
12399
12399
|
const devices = () => {
|
|
12400
|
-
if (this.deviceCredentials === null) throw
|
|
12400
|
+
if (this.deviceCredentials === null) throw require_dominevo_error.userError("device.credentials-unavailable", void 0, "Device credentials not available");
|
|
12401
12401
|
return this.deviceCredentials;
|
|
12402
12402
|
};
|
|
12403
12403
|
const preferences = this.preferences;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { t as BaseAddon } from "../../base-addon-
|
|
3
|
-
import { K as makeSecretMarker, W as isSecretMarker } from "../../scoped-settings-
|
|
4
|
-
import { t as userError } from "../../
|
|
5
|
-
import { s as defineRecordKinds } from "../../record-kind-
|
|
6
|
-
import { a as authProviderCapability, c as TokenScopeSchema, i as deviceCredentialsCapability, l as UserRecordSchema, n as SsoBridgeClaimsSchema, o as MethodAccessSchema, s as ScopedTokenSchema, t as userManagementCapability, u as ViewerTokenScopeSchema } from "../../user-management.cap-
|
|
7
|
-
import { c as buildDeviceEnrollmentLink, l as buildDeviceSignatureMessage, n as DEVICE_NONCE_TTL_MS, t as DEVICE_ENROLLMENT_TTL_MS, u as formatDeviceRevoker } from "../../device-certificate-
|
|
2
|
+
import { t as BaseAddon } from "../../base-addon-DCfRA4Sq.mjs";
|
|
3
|
+
import { K as makeSecretMarker, W as isSecretMarker } from "../../scoped-settings-DnkTDuvk.mjs";
|
|
4
|
+
import { t as userError } from "../../dominevo-error-EgrighSX.mjs";
|
|
5
|
+
import { s as defineRecordKinds } from "../../record-kind-DpcGjBK1.mjs";
|
|
6
|
+
import { a as authProviderCapability, c as TokenScopeSchema, i as deviceCredentialsCapability, l as UserRecordSchema, n as SsoBridgeClaimsSchema, o as MethodAccessSchema, s as ScopedTokenSchema, t as userManagementCapability, u as ViewerTokenScopeSchema } from "../../user-management.cap-mDnBlJay.mjs";
|
|
7
|
+
import { c as buildDeviceEnrollmentLink, l as buildDeviceSignatureMessage, n as DEVICE_NONCE_TTL_MS, t as DEVICE_ENROLLMENT_TTL_MS, u as formatDeviceRevoker } from "../../device-certificate-B5LojTd8.mjs";
|
|
8
8
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
9
9
|
import { t as require_ms } from "../../ms-CgH2OFlD.mjs";
|
|
10
|
-
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-
|
|
10
|
+
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-Du6rfexI.mjs";
|
|
11
11
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
12
12
|
import { z } from "zod";
|
|
13
|
+
import nodeCrypto from "crypto";
|
|
13
14
|
import * as crypto$1 from "node:crypto";
|
|
14
15
|
import { X509Certificate, createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
15
|
-
import
|
|
16
|
-
import * as fs$1 from "node:fs";
|
|
16
|
+
import * as fs from "node:fs";
|
|
17
17
|
import * as path$1 from "node:path";
|
|
18
18
|
//#region ../types/dist/esm/interfaces/addon-data-plane.mjs
|
|
19
19
|
/**
|
|
@@ -22,7 +22,7 @@ import * as path$1 from "node:path";
|
|
|
22
22
|
* hub can reach the addon's `127.0.0.1` listener. Defined here (shared by the
|
|
23
23
|
* core proxy and the kernel listener) to keep both off a kernel↔core import.
|
|
24
24
|
*/
|
|
25
|
-
var DATAPLANE_SECRET_HEADER = "x-
|
|
25
|
+
var DATAPLANE_SECRET_HEADER = "x-dominevo-dataplane-secret";
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region ../types/dist/esm/auth/credential-scope.mjs
|
|
28
28
|
/** What a share-view grant lets its holder see. */
|
|
@@ -64,13 +64,13 @@ var CREDENTIAL_TOKEN_KIND = "credential";
|
|
|
64
64
|
* can never be replayed as a person's session. Only the credential verifier's
|
|
65
65
|
* own door (`verifyCredentialToken`) accepts it.
|
|
66
66
|
*/
|
|
67
|
-
var CREDENTIAL_TOKEN_AUDIENCE = "
|
|
67
|
+
var CREDENTIAL_TOKEN_AUDIENCE = "dominevo:credential";
|
|
68
68
|
/** Does a verified JWT payload belong to the minted-token family? */
|
|
69
69
|
function isCredentialTokenPayload(payload) {
|
|
70
70
|
if (payload === null || typeof payload !== "object") return false;
|
|
71
71
|
const kind = Reflect.get(payload, "kind");
|
|
72
72
|
const aud = Reflect.get(payload, "aud");
|
|
73
|
-
return kind === "credential" || aud === "
|
|
73
|
+
return kind === "credential" || aud === "dominevo:credential" || Array.isArray(aud) && aud.includes("dominevo:credential");
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* The claims of a unified token (`auth.mintToken`). It carries no `exp`: its
|
|
@@ -7765,7 +7765,7 @@ function localAuthRecordStoresOf(records) {
|
|
|
7765
7765
|
}
|
|
7766
7766
|
//#endregion
|
|
7767
7767
|
//#region src/auth/session-revocation-bus.ts
|
|
7768
|
-
var BUS_KEY = Symbol.for("
|
|
7768
|
+
var BUS_KEY = Symbol.for("dominevo.login-sessions.revocation-bus");
|
|
7769
7769
|
function listeners() {
|
|
7770
7770
|
const existing = Reflect.get(globalThis, BUS_KEY);
|
|
7771
7771
|
if (existing instanceof Set) return existing;
|
|
@@ -8655,7 +8655,7 @@ var UserPreferencesStore = class {
|
|
|
8655
8655
|
//#endregion
|
|
8656
8656
|
//#region src/auth/user-management-internal.ts
|
|
8657
8657
|
/** Process-global, so every bundled copy of this module agrees on the key. */
|
|
8658
|
-
var USER_MANAGEMENT_INTERNAL = Symbol.for("
|
|
8658
|
+
var USER_MANAGEMENT_INTERNAL = Symbol.for("dominevo.user-management.internal");
|
|
8659
8659
|
/** Attach `internal` to `provider` (returns the same object, now carrying it). */
|
|
8660
8660
|
function attachUserManagementInternal(provider, internal) {
|
|
8661
8661
|
Object.defineProperty(provider, USER_MANAGEMENT_INTERNAL, {
|
|
@@ -8987,7 +8987,7 @@ var JwtSigningKeyKeeper = class {
|
|
|
8987
8987
|
}
|
|
8988
8988
|
if (previous.state === "ready") return;
|
|
8989
8989
|
setProcessJwtSigningKey(next);
|
|
8990
|
-
this.deps.logger.error("Sessions are UNAVAILABLE: the session signing key cannot be read from the keychain. No one can sign in and no session token verifies until the keychain unlocks (Data → Secrets; or fix the mounted key at /run/secrets/
|
|
8990
|
+
this.deps.logger.error("Sessions are UNAVAILABLE: the session signing key cannot be read from the keychain. No one can sign in and no session token verifies until the keychain unlocks (Data → Secrets; or fix the mounted key at /run/secrets/dominevo-master-key and restart). No fallback key is used.", { meta: {
|
|
8991
8991
|
reason: next.reason,
|
|
8992
8992
|
ref: JWT_SIGNING_KEY_REF
|
|
8993
8993
|
} });
|
|
@@ -12025,8 +12025,8 @@ var LocalAuthAddon = class extends BaseAddon {
|
|
|
12025
12025
|
users: this.userManager,
|
|
12026
12026
|
dataDir: this.ctx.nodeDataDir,
|
|
12027
12027
|
fs: {
|
|
12028
|
-
exists: (filePath) => fs
|
|
12029
|
-
remove: (filePath) => fs
|
|
12028
|
+
exists: (filePath) => fs.existsSync(filePath),
|
|
12029
|
+
remove: (filePath) => fs.rmSync(filePath, { force: true })
|
|
12030
12030
|
},
|
|
12031
12031
|
logger: this.ctx.logger
|
|
12032
12032
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Agent mDNS advertisement (D857) — how a hub finds agents to pair.
|
|
3
3
|
*
|
|
4
|
-
* Every agent publishes ONE `
|
|
4
|
+
* Every agent publishes ONE `_dominevo-agent._tcp` service for its API port,
|
|
5
5
|
* paired or not. The TXT record carries only public facts: the node id, the
|
|
6
6
|
* version, the pairing state and — once paired — a short fingerprint of its
|
|
7
7
|
* mesh leaf. Finding an agent grants nothing: pairing still needs the code
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HubAddressBook, IScopedLogger } from "@dominevo/types";
|
|
2
2
|
/** What one published service says. Every value is public. */
|
|
3
3
|
export interface HubMdnsAnnouncement {
|
|
4
|
-
/** Instance name (`
|
|
4
|
+
/** Instance name (`dominevo-<hubId>`, else `dominevo-<nodeId>`). */
|
|
5
5
|
readonly name: string;
|
|
6
6
|
readonly type: string;
|
|
7
7
|
readonly port: number;
|
|
@@ -18,7 +18,7 @@ export declare const ALLOWLIST_RECONCILE_INTERVAL_MS: number;
|
|
|
18
18
|
export interface ListenPortSources {
|
|
19
19
|
/** `server.port` from the hub's live config section; null when unreadable. */
|
|
20
20
|
readonly configured: number | null;
|
|
21
|
-
/** `
|
|
21
|
+
/** `DOMINEVO_PORT` off the environment; null when unset / unparseable. */
|
|
22
22
|
readonly env: number | null;
|
|
23
23
|
/** The port the CALLER passed. A guess about our socket, not a fact. */
|
|
24
24
|
readonly callerHint: number | null;
|
|
@@ -76,7 +76,7 @@ interface LocalNetworkConfig {
|
|
|
76
76
|
readonly rememberedPublicEndpointUrl: string;
|
|
77
77
|
readonly rememberedPublicEndpointAddon: string;
|
|
78
78
|
/**
|
|
79
|
-
* Advertise this hub over mDNS (`
|
|
79
|
+
* Advertise this hub over mDNS (`_dominevo._tcp`, D838) so `dominevo login`
|
|
80
80
|
* finds it. On by default; needs UDP 5353 multicast to reach the LAN.
|
|
81
81
|
*/
|
|
82
82
|
readonly mdnsAdvertise: boolean;
|
|
@@ -262,7 +262,7 @@ export declare class LocalNetworkAddon extends BaseAddon<LocalNetworkConfig> {
|
|
|
262
262
|
private applyLanAccessFromSettings;
|
|
263
263
|
/**
|
|
264
264
|
* The port this hub is actually listening on, plus the provenance of the
|
|
265
|
-
* number. The boot loader merges the `
|
|
265
|
+
* number. The boot loader merges the `DOMINEVO_PORT` env override into the
|
|
266
266
|
* persisted `server` section (`server/backend/src/boot/boot-config.ts`), so
|
|
267
267
|
* reading that section gives the authoritative live port — no new setting,
|
|
268
268
|
* and the same source `tailscale-client` already stamps its mesh endpoints
|