@camstack/server 1.2.718 → 1.2.720
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/CHANGELOG.md +13 -0
- package/dist/addon-root-inventory.js +1 -1
- package/dist/agent/addon-scan.js +11 -7
- package/dist/agent/agent-addon-updates.js +1 -1
- package/dist/agent/agent-cap-dispatch-service.js +1 -1
- package/dist/agent/agent-heap-watch.js +1 -1
- package/dist/agent/agent-http.js +1 -1
- package/dist/agent/agent-hub-addon-update.js +1 -1
- package/dist/agent/agent-hub-registration.js +1 -1
- package/dist/agent/agent-infra-capabilities.js +2 -2
- package/dist/agent/agent-mesh-gate.js +1 -1
- package/dist/agent/agent-node-certificates.js +1 -1
- package/dist/agent/agent-pairing-routes.js +1 -1
- package/dist/agent/agent-pairing-store.js +1 -1
- package/dist/agent/agent-service.js +6 -2
- package/dist/agent/agent-update-service.js +3 -1
- package/dist/agent/hub-membership-client.js +1 -1
- package/dist/agent/infra-boot-guard.js +2 -2
- package/dist/agent/main.js +9 -9
- package/dist/api/addon-upload.js +1 -1
- package/dist/api/core/addon-settings.router.js +1 -1
- package/dist/api/core/agent-pairing.router.js +1 -1
- package/dist/api/core/auth-device-cert.procedures.js +1 -1
- package/dist/api/core/cap-providers.js +6 -6
- package/dist/api/core/certificates.router.js +1 -1
- package/dist/api/core/lifecycle-job-runner.js +1 -1
- package/dist/api/core/logging-settings.js +1 -1
- package/dist/api/core/logs.router.js +2 -2
- package/dist/api/core/notifications.router.js +1 -1
- package/dist/api/core/preferences.router.js +1 -1
- package/dist/api/core/repl.router.js +1 -1
- package/dist/api/cors/cors-policy.js +1 -1
- package/dist/api/mesh-membership-routes.js +1 -1
- package/dist/api/model-distributor.js +1 -1
- package/dist/api/trpc/cap-route-error-formatter.js +1 -1
- package/dist/api/trpc/cap-router-runtime.js +2 -2
- package/dist/api/trpc/core-cap-bridge.js +1 -1
- package/dist/api/trpc/device-collection-dispatch.js +1 -1
- package/dist/api/trpc/generated-cap-routers.js +1 -1
- package/dist/api/trpc/principal-authorization.js +1 -1
- package/dist/api/trpc/principal-visibility.js +1 -1
- package/dist/api/trpc/scope-access.js +1 -1
- package/dist/api/trpc/trpc.context.js +1 -1
- package/dist/api/trpc/trpc.middleware.js +1 -1
- package/dist/api/trpc/trpc.router.js +3 -3
- package/dist/auth/auth-network-policy.js +1 -1
- package/dist/auth/client-address.js +1 -1
- package/dist/auth/hub-sessions.js +1 -1
- package/dist/auth/session-lifetimes.js +1 -1
- package/dist/auth/sso-finish-deps.js +1 -1
- package/dist/boot/boot-config.js +53 -133
- package/dist/boot/platform-keychain-key.js +1 -1
- package/dist/boot/post-boot.service.js +1 -1
- package/dist/bootstrap-packages.js +3 -3
- package/dist/core/addon/addon-call-gateway.js +1 -1
- package/dist/core/addon/addon-package.service.js +140 -21
- package/dist/core/addon/addon-registry.service.js +36 -32
- package/dist/core/addon/addon-requirements.js +81 -0
- package/dist/core/addon/hub-addon-api.js +1 -1
- package/dist/core/addon/installed-addon-versions.js +82 -0
- package/dist/core/addon/package-dir-utils.js +11 -1
- package/dist/core/addon/settings-door-wiring.js +1 -1
- package/dist/core/addon-bridge/addon-bridge.service.js +3 -3
- package/dist/core/addon-pages/addon-pages.service.js +1 -1
- package/dist/core/agent/agent-desired-set.js +1 -1
- package/dist/core/agent/agent-pairing-http.js +1 -1
- package/dist/core/agent/agent-registry.service.js +41 -7
- package/dist/core/agent/cluster-node-history-store.js +1 -1
- package/dist/core/agent/delivery-requirements.js +36 -0
- package/dist/core/agent/forgotten-node-revoker.js +1 -1
- package/dist/core/agent/node-removal-hooks.js +6 -2
- package/dist/core/auth/auth.service.js +1 -1
- package/dist/core/config/config.schema.js +2 -2
- package/dist/core/config/config.service.js +1 -1
- package/dist/core/events/event-bus.service.js +1 -1
- package/dist/core/feature/feature.service.js +1 -1
- package/dist/core/lifecycle/lifecycle-state-machine.js +2 -2
- package/dist/core/logging/log-history.js +1 -1
- package/dist/core/logging/log-ring-buffer.js +2 -2
- package/dist/core/logging/logging.service.js +2 -2
- package/dist/core/logging/scoped-logger.js +2 -2
- package/dist/core/moleculer/cap-route-authority.js +2 -2
- package/dist/core/moleculer/hub-mesh-guard.js +1 -1
- package/dist/core/moleculer/moleculer.service.js +1 -1
- package/dist/core/network/network-quality.service.js +1 -1
- package/dist/core/notification/notification-wrapper.service.js +1 -1
- package/dist/core/notification/toast-wrapper.service.js +1 -1
- package/dist/core/repl/repl-engine.service.js +1 -1
- package/dist/core/server-update/server-update.service.js +3 -0
- package/dist/core/server-update/system-ensure-prebuilds.js +3 -3
- package/dist/core/server-update/system-exec-npm.js +2 -2
- package/dist/core/storage/fs-storage-backend.js +2 -2
- package/dist/core/storage/storage-location-manager.js +2 -2
- package/dist/core/storage/storage.service.js +1 -1
- package/dist/framework-nodepath.js +14 -1
- package/dist/launcher.js +23 -23
- package/dist/legacy-package-names.js +15 -0
- package/dist/main.js +2 -2
- package/dist/manual-boot.js +4 -3
- package/dist/package-inventory.js +6 -3
- package/dist/server-root/index.js +182 -30
- package/dist/single-copy-cleanup-runner.js +3 -3
- package/dist/single-copy-cleanup.js +19 -14
- package/package.json +53 -19
- package/scripts/closure-postinstall.mjs +1 -1
- package/system/assets/addon-pages-aggregator/icon.svg +5 -0
- package/system/assets/addon-widgets-aggregator/icon.svg +6 -0
- package/system/assets/alert-center/icon.svg +5 -0
- package/system/assets/autotrack/icon.svg +5 -0
- package/system/assets/backup-orchestrator/icon.svg +5 -0
- package/system/assets/calendars/icon.svg +5 -0
- package/system/assets/camera-grid/icon.svg +10 -0
- package/system/assets/composer/icon.svg +7 -0
- package/system/assets/console-logging/icon.svg +4 -0
- package/system/assets/core-blocks/icon.svg +6 -0
- package/system/assets/device-history/icon.svg +4 -0
- package/system/assets/device-manager/icon.svg +6 -0
- package/system/assets/filesystem-storage/icon.svg +6 -0
- package/system/assets/hub-forwarder/icon.svg +7 -0
- package/system/assets/keychain/icon.svg +6 -0
- package/system/assets/liveness-monitor/icon.svg +4 -0
- package/system/assets/local-auth/icon.svg +5 -0
- package/system/assets/local-network/icon.svg +7 -0
- package/system/assets/loki-logging/icon.svg +7 -0
- package/system/assets/metrics-native/icon.svg +3 -0
- package/system/assets/platform-probe/icon.svg +5 -0
- package/system/assets/record-entries/icon.svg +8 -0
- package/system/assets/remote-access-orchestrator/icon.svg +5 -0
- package/system/assets/snapshot/icon.svg +4 -0
- package/system/assets/sqlite-settings/icon.svg +5 -0
- package/system/assets/storage-orchestrator/icon.svg +8 -0
- package/system/assets/system-config/icon.svg +4 -0
- package/system/assets/winston-logging/icon.svg +6 -0
- package/system/dist/addon/addon-api-factory.d.ts +35 -0
- package/system/dist/addon-routes/addon-route-registry.d.ts +37 -0
- package/system/dist/addon-runner.js +11894 -0
- package/system/dist/addon-runner.mjs +11840 -0
- package/system/dist/addon-utils.d.ts +23 -0
- package/system/dist/addon-utils.js +27 -0
- package/system/dist/addon-utils.mjs +3 -0
- package/system/dist/agent-https-BMbnmX5u.mjs +1042 -0
- package/system/dist/agent-https-DslXCDRW.js +1289 -0
- package/system/dist/amd-accelerators-CEuPFBBK.js +36 -0
- package/system/dist/amd-accelerators-U_RsoEDd.mjs +35 -0
- package/system/dist/auth/auth-audit-log.d.ts +45 -0
- package/system/dist/auth/auth-manager.d.ts +155 -0
- package/system/dist/auth/cidr.d.ts +22 -0
- package/system/dist/auth/device-ca-store.d.ts +57 -0
- package/system/dist/auth/device-ca.d.ts +65 -0
- package/system/dist/auth/device-credential-manager.d.ts +158 -0
- package/system/dist/auth/external-identity-manager.d.ts +42 -0
- package/system/dist/auth/jwt-signing-key.d.ts +42 -0
- package/system/dist/auth/legacy-token-tables.d.ts +16 -0
- package/system/dist/auth/login-session-manager.d.ts +140 -0
- package/system/dist/auth/origin.d.ts +34 -0
- package/system/dist/auth/parse-record.d.ts +18 -0
- package/system/dist/auth/scope-matcher.d.ts +8 -0
- package/system/dist/auth/session-revocation-bus.d.ts +32 -0
- package/system/dist/auth/token-expiry.d.ts +62 -0
- package/system/dist/auth/totp-manager.d.ts +107 -0
- package/system/dist/auth/user-management-internal.d.ts +90 -0
- package/system/dist/auth/user-manager.d.ts +69 -0
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.d.ts +57 -0
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +271 -0
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +263 -0
- package/system/dist/builtins/addon-pages-aggregator/dedupe-pages.d.ts +24 -0
- package/system/dist/builtins/addon-pages-aggregator/index.d.ts +1 -0
- package/system/dist/builtins/addon-pages-aggregator/index.js +8 -0
- package/system/dist/builtins/addon-pages-aggregator/index.mjs +2 -0
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.d.ts +57 -0
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +257 -0
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +249 -0
- package/system/dist/builtins/addon-widgets-aggregator/index.d.ts +1 -0
- package/system/dist/builtins/addon-widgets-aggregator/index.js +8 -0
- package/system/dist/builtins/addon-widgets-aggregator/index.mjs +2 -0
- package/system/dist/builtins/alerts/alert-episode-policy.d.ts +39 -0
- package/system/dist/builtins/alerts/alert-store.d.ts +32 -0
- package/system/dist/builtins/alerts/alerts.addon.d.ts +148 -0
- package/system/dist/builtins/alerts/alerts.addon.js +1566 -0
- package/system/dist/builtins/alerts/alerts.addon.mjs +1559 -0
- package/system/dist/builtins/alerts/device-label.d.ts +8 -0
- package/system/dist/builtins/alerts/emit-alert-policy.d.ts +15 -0
- package/system/dist/builtins/alerts/index.d.ts +1 -0
- package/system/dist/builtins/alerts/index.js +4 -0
- package/system/dist/builtins/alerts/index.mjs +2 -0
- package/system/dist/builtins/alerts/migration-alerts.d.ts +13 -0
- package/system/dist/builtins/alerts/prune-policy.d.ts +44 -0
- package/system/dist/builtins/alerts/record-kinds.d.ts +15 -0
- package/system/dist/builtins/alerts/runner-alert.d.ts +58 -0
- package/system/dist/builtins/autotrack/autotrack-cameras.d.ts +125 -0
- package/system/dist/builtins/autotrack/autotrack-config.d.ts +89 -0
- package/system/dist/builtins/autotrack/autotrack-decision.d.ts +86 -0
- package/system/dist/builtins/autotrack/autotrack-loop.d.ts +95 -0
- package/system/dist/builtins/autotrack/autotrack.addon.d.ts +108 -0
- package/system/dist/builtins/autotrack/frame-error.d.ts +50 -0
- package/system/dist/builtins/autotrack/frame-measurements.d.ts +97 -0
- package/system/dist/builtins/autotrack/index.d.ts +2 -0
- package/system/dist/builtins/autotrack/index.js +1018 -0
- package/system/dist/builtins/autotrack/index.mjs +1012 -0
- package/system/dist/builtins/autotrack/ptz-mirror.d.ts +54 -0
- package/system/dist/builtins/autotrack/target-selection.d.ts +46 -0
- package/system/dist/builtins/backup-orchestrator/backup-databases.d.ts +51 -0
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.d.ts +291 -0
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +3213 -0
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +3204 -0
- package/system/dist/builtins/backup-orchestrator/cron-helpers.d.ts +23 -0
- package/system/dist/builtins/backup-orchestrator/destination-policy.d.ts +91 -0
- package/system/dist/builtins/backup-orchestrator/download-helpers.d.ts +12 -0
- package/system/dist/builtins/backup-orchestrator/encryption-key-store.d.ts +49 -0
- package/system/dist/builtins/backup-orchestrator/index.d.ts +2 -0
- package/system/dist/builtins/backup-orchestrator/index.js +8 -0
- package/system/dist/builtins/backup-orchestrator/index.mjs +2 -0
- package/system/dist/builtins/backup-orchestrator/manifest-store.d.ts +134 -0
- package/system/dist/builtins/backup-orchestrator/record-kinds.d.ts +56 -0
- package/system/dist/builtins/backup-orchestrator/restore-archive.d.ts +24 -0
- package/system/dist/builtins/backup-orchestrator/run-queue.d.ts +106 -0
- package/system/dist/builtins/backup-orchestrator/schedule-store.d.ts +59 -0
- package/system/dist/builtins/backup-orchestrator/seed-marker-store.d.ts +26 -0
- package/system/dist/builtins/backup-orchestrator/staging-paths.d.ts +36 -0
- package/system/dist/builtins/backup-orchestrator/write-targets.d.ts +63 -0
- package/system/dist/builtins/calendars/calendar-color.d.ts +9 -0
- package/system/dist/builtins/calendars/calendar-prefs-store.d.ts +34 -0
- package/system/dist/builtins/calendars/calendars.addon.d.ts +19 -0
- package/system/dist/builtins/calendars/calendars.addon.js +227 -0
- package/system/dist/builtins/calendars/calendars.addon.mjs +220 -0
- package/system/dist/builtins/calendars/index.d.ts +1 -0
- package/system/dist/builtins/calendars/index.js +8 -0
- package/system/dist/builtins/calendars/index.mjs +2 -0
- package/system/dist/builtins/calendars/record-kinds.d.ts +18 -0
- package/system/dist/builtins/camera-grid/acquire-retry.d.ts +30 -0
- package/system/dist/builtins/camera-grid/addon.d.ts +205 -0
- package/system/dist/builtins/camera-grid/flv-join.d.ts +40 -0
- package/system/dist/builtins/camera-grid/grid-activity-mirror.d.ts +42 -0
- package/system/dist/builtins/camera-grid/grid-activity.d.ts +91 -0
- package/system/dist/builtins/camera-grid/grid-camera-declarations.d.ts +59 -0
- package/system/dist/builtins/camera-grid/grid-camera-device.d.ts +68 -0
- package/system/dist/builtins/camera-grid/grid-canvas-derivation.d.ts +54 -0
- package/system/dist/builtins/camera-grid/grid-canvas-seed.d.ts +112 -0
- package/system/dist/builtins/camera-grid/grid-canvas.d.ts +85 -0
- package/system/dist/builtins/camera-grid/grid-child.d.ts +32 -0
- package/system/dist/builtins/camera-grid/grid-compositor-child.d.ts +3 -0
- package/system/dist/builtins/camera-grid/grid-compositor-invocation.d.ts +47 -0
- package/system/dist/builtins/camera-grid/grid-compositor.d.ts +54 -0
- package/system/dist/builtins/camera-grid/grid-detection-mapping.d.ts +61 -0
- package/system/dist/builtins/camera-grid/grid-device-settings.d.ts +35 -0
- package/system/dist/builtins/camera-grid/grid-filter-graph.d.ts +53 -0
- package/system/dist/builtins/camera-grid/grid-frame-sample.d.ts +53 -0
- package/system/dist/builtins/camera-grid/grid-instances.d.ts +22 -0
- package/system/dist/builtins/camera-grid/grid-last-frame-store.d.ts +58 -0
- package/system/dist/builtins/camera-grid/grid-layout-native-provider.d.ts +34 -0
- package/system/dist/builtins/camera-grid/grid-plan.d.ts +34 -0
- package/system/dist/builtins/camera-grid/grid-profiles.d.ts +104 -0
- package/system/dist/builtins/camera-grid/grid-row-normalization.d.ts +10 -0
- package/system/dist/builtins/camera-grid/grid-sentry-sources.d.ts +64 -0
- package/system/dist/builtins/camera-grid/grid-snapshot.d.ts +62 -0
- package/system/dist/builtins/camera-grid/grid-stream-descriptor.d.ts +53 -0
- package/system/dist/builtins/camera-grid/grid-stream-invocation.d.ts +44 -0
- package/system/dist/builtins/camera-grid/grid-stream-relay.d.ts +35 -0
- package/system/dist/builtins/camera-grid/grid-stream-session.d.ts +143 -0
- package/system/dist/builtins/camera-grid/grid-tile-feed.d.ts +50 -0
- package/system/dist/builtins/camera-grid/grid-tile-plan.d.ts +66 -0
- package/system/dist/builtins/camera-grid/grid-wire-format.d.ts +30 -0
- package/system/dist/builtins/camera-grid/index.d.ts +45 -0
- package/system/dist/builtins/camera-grid/index.js +3994 -0
- package/system/dist/builtins/camera-grid/index.mjs +3961 -0
- package/system/dist/builtins/camera-grid/silence-analysis.d.ts +37 -0
- package/system/dist/builtins/cluster-agent/record-kinds.d.ts +49 -0
- package/system/dist/builtins/composer/actuator-dispatch.d.ts +13 -0
- package/system/dist/builtins/composer/actuator-groups.d.ts +68 -0
- package/system/dist/builtins/composer/actuator-invoke.d.ts +32 -0
- package/system/dist/builtins/composer/claim-gate.d.ts +59 -0
- package/system/dist/builtins/composer/composed-device-set.d.ts +52 -0
- package/system/dist/builtins/composer/composed-device.d.ts +57 -0
- package/system/dist/builtins/composer/composer-apply-waits.d.ts +28 -0
- package/system/dist/builtins/composer/composer-grafts.d.ts +73 -0
- package/system/dist/builtins/composer/composer-live-set.d.ts +30 -0
- package/system/dist/builtins/composer/composer-plan.d.ts +112 -0
- package/system/dist/builtins/composer/composer-runtime-factory.d.ts +30 -0
- package/system/dist/builtins/composer/composer-seeds.d.ts +28 -0
- package/system/dist/builtins/composer/composer-verdict.d.ts +33 -0
- package/system/dist/builtins/composer/composer.addon.d.ts +26 -0
- package/system/dist/builtins/composer/composer.addon.js +6229 -0
- package/system/dist/builtins/composer/composer.addon.mjs +6223 -0
- package/system/dist/builtins/composer/composer.d.ts +208 -0
- package/system/dist/builtins/composer/composition-declarations.d.ts +64 -0
- package/system/dist/builtins/composer/composition-evaluation.d.ts +53 -0
- package/system/dist/builtins/composer/composition-runtime.d.ts +203 -0
- package/system/dist/builtins/composer/composition-target.d.ts +60 -0
- package/system/dist/builtins/composer/confirmed-seed.d.ts +44 -0
- package/system/dist/builtins/composer/deadline-timer.d.ts +18 -0
- package/system/dist/builtins/composer/existing-target.d.ts +131 -0
- package/system/dist/builtins/composer/field-record.d.ts +64 -0
- package/system/dist/builtins/composer/forward-commands.d.ts +61 -0
- package/system/dist/builtins/composer/graft-host.d.ts +71 -0
- package/system/dist/builtins/composer/held-claims.d.ts +29 -0
- package/system/dist/builtins/composer/history-helpers.d.ts +67 -0
- package/system/dist/builtins/composer/index.d.ts +1 -0
- package/system/dist/builtins/composer/index.js +8 -0
- package/system/dist/builtins/composer/index.mjs +2 -0
- package/system/dist/builtins/composer/math-quantity.d.ts +20 -0
- package/system/dist/builtins/composer/own-field-reads.d.ts +30 -0
- package/system/dist/builtins/composer/owned-fields-target.d.ts +95 -0
- package/system/dist/builtins/composer/pulse-seed-resolve.d.ts +59 -0
- package/system/dist/builtins/composer/pulse-seed.d.ts +75 -0
- package/system/dist/builtins/composer/slice-assembler.d.ts +26 -0
- package/system/dist/builtins/composer/source-readings.d.ts +128 -0
- package/system/dist/builtins/composer/source-tracker.d.ts +135 -0
- package/system/dist/builtins/console-logging/console-destination.d.ts +19 -0
- package/system/dist/builtins/console-logging/console-logging.addon.d.ts +26 -0
- package/system/dist/builtins/console-logging/index.d.ts +3 -0
- package/system/dist/builtins/console-logging/index.js +108 -0
- package/system/dist/builtins/console-logging/index.mjs +99 -0
- package/system/dist/builtins/core-blocks/actions-service.d.ts +113 -0
- package/system/dist/builtins/core-blocks/actions-store.d.ts +32 -0
- package/system/dist/builtins/core-blocks/actions-wiring.d.ts +32 -0
- package/system/dist/builtins/core-blocks/block-package.d.ts +54 -0
- package/system/dist/builtins/core-blocks/block-settings-store.d.ts +93 -0
- package/system/dist/builtins/core-blocks/block-supervisor.d.ts +176 -0
- package/system/dist/builtins/core-blocks/block-type-defs.d.ts +29 -0
- package/system/dist/builtins/core-blocks/blocks-integration.d.ts +89 -0
- package/system/dist/builtins/core-blocks/compile-block.d.ts +52 -0
- package/system/dist/builtins/core-blocks/composition-api.d.ts +50 -0
- package/system/dist/builtins/core-blocks/composition-peers.d.ts +31 -0
- package/system/dist/builtins/core-blocks/composition-sources.d.ts +40 -0
- package/system/dist/builtins/core-blocks/core-block-store.d.ts +120 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +108 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +6374 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +6355 -0
- package/system/dist/builtins/core-blocks/extract-settings-schema.d.ts +6 -0
- package/system/dist/builtins/core-blocks/index.d.ts +8 -0
- package/system/dist/builtins/core-blocks/index.js +21 -0
- package/system/dist/builtins/core-blocks/index.mjs +2 -0
- package/system/dist/builtins/core-blocks/lock-door-gate.d.ts +31 -0
- package/system/dist/builtins/core-blocks/lock-door-sensor.d.ts +35 -0
- package/system/dist/builtins/core-blocks/power-source-service.d.ts +70 -0
- package/system/dist/builtins/core-blocks/record-kinds.d.ts +83 -0
- package/system/dist/builtins/core-blocks/remote-call-redirect.d.ts +23 -0
- package/system/dist/builtins/core-blocks/remote-components-service.d.ts +10 -0
- package/system/dist/builtins/core-blocks/remote-service.d.ts +85 -0
- package/system/dist/builtins/core-blocks/remote-wiring.d.ts +49 -0
- package/system/dist/builtins/core-blocks/runs-api.d.ts +30 -0
- package/system/dist/builtins/core-blocks/runs-ledger.d.ts +64 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-engine.d.ts +91 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-holds.d.ts +54 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-service.d.ts +76 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-store.d.ts +23 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-timeline.d.ts +53 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-trace.d.ts +17 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-types.d.ts +20 -0
- package/system/dist/builtins/core-blocks/scheduler/scheduler-wiring.d.ts +41 -0
- package/system/dist/builtins/core-blocks/templates-service.d.ts +24 -0
- package/system/dist/builtins/device-history/capture/capture-engine.d.ts +113 -0
- package/system/dist/builtins/device-history/capture/capture-filter.d.ts +37 -0
- package/system/dist/builtins/device-history/capture/device-directory.d.ts +47 -0
- package/system/dist/builtins/device-history/capture/field-path.d.ts +10 -0
- package/system/dist/builtins/device-history/capture/point-writer.d.ts +63 -0
- package/system/dist/builtins/device-history/device-history.addon.d.ts +53 -0
- package/system/dist/builtins/device-history/device-history.addon.js +2885 -0
- package/system/dist/builtins/device-history/device-history.addon.mjs +2878 -0
- package/system/dist/builtins/device-history/index.d.ts +3 -0
- package/system/dist/builtins/device-history/ingest/producer-ingest.d.ts +99 -0
- package/system/dist/builtins/device-history/query/history-query.d.ts +116 -0
- package/system/dist/builtins/device-history/query/point-shape.d.ts +31 -0
- package/system/dist/builtins/device-history/retention/departure-tracker.d.ts +33 -0
- package/system/dist/builtins/device-history/retention/orphans.d.ts +50 -0
- package/system/dist/builtins/device-history/retention/retention.d.ts +74 -0
- package/system/dist/builtins/device-history/rollup/rollup-engine.d.ts +74 -0
- package/system/dist/builtins/device-history/rollup/rollup-math.d.ts +50 -0
- package/system/dist/builtins/device-history/runtime/history-runtime.d.ts +118 -0
- package/system/dist/builtins/device-history/status/counters.d.ts +55 -0
- package/system/dist/builtins/device-history/store/history-door.d.ts +7 -0
- package/system/dist/builtins/device-history/store/history-schema.d.ts +28 -0
- package/system/dist/builtins/device-history/store/history-store.d.ts +109 -0
- package/system/dist/builtins/device-history/store/row-readers.d.ts +11 -0
- package/system/dist/builtins/device-history/store/series-registry.d.ts +64 -0
- package/system/dist/builtins/device-history/store/series-scale.d.ts +37 -0
- package/system/dist/builtins/device-history/time/bucket-time.d.ts +25 -0
- package/system/dist/builtins/device-manager/adoption-job-engine.d.ts +153 -0
- package/system/dist/builtins/device-manager/claimed-status-overlay.d.ts +45 -0
- package/system/dist/builtins/device-manager/contribution-cache.d.ts +85 -0
- package/system/dist/builtins/device-manager/day-night-config-schema.d.ts +30 -0
- package/system/dist/builtins/device-manager/device-aggregation-merge.d.ts +22 -0
- package/system/dist/builtins/device-manager/device-aggregation.d.ts +335 -0
- package/system/dist/builtins/device-manager/device-bindings-store.d.ts +278 -0
- package/system/dist/builtins/device-manager/device-config-contribution.d.ts +45 -0
- package/system/dist/builtins/device-manager/device-config-secrets.d.ts +40 -0
- package/system/dist/builtins/device-manager/device-event-propagator.d.ts +26 -0
- package/system/dist/builtins/device-manager/device-extension-linked-slot.d.ts +27 -0
- package/system/dist/builtins/device-manager/device-form-secrets.d.ts +25 -0
- package/system/dist/builtins/device-manager/device-linked-devices.d.ts +201 -0
- package/system/dist/builtins/device-manager/device-manager.addon.d.ts +234 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +11369 -0
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +11358 -0
- package/system/dist/builtins/device-manager/device-meta-actions.d.ts +338 -0
- package/system/dist/builtins/device-manager/device-meta-store.d.ts +103 -0
- package/system/dist/builtins/device-manager/device-meta-types.d.ts +277 -0
- package/system/dist/builtins/device-manager/device-online-fallback.d.ts +35 -0
- package/system/dist/builtins/device-manager/device-projection.d.ts +71 -0
- package/system/dist/builtins/device-manager/device-provider-context.d.ts +126 -0
- package/system/dist/builtins/device-manager/device-queries.d.ts +67 -0
- package/system/dist/builtins/device-manager/device-removal-hooks.d.ts +92 -0
- package/system/dist/builtins/device-manager/device-row-store.d.ts +449 -0
- package/system/dist/builtins/device-manager/device-source-activation.d.ts +103 -0
- package/system/dist/builtins/device-manager/device-state-claim-views.d.ts +92 -0
- package/system/dist/builtins/device-manager/device-state-claims.d.ts +66 -0
- package/system/dist/builtins/device-manager/device-state-mirror.d.ts +267 -0
- package/system/dist/builtins/device-manager/device-sync-resolvers.d.ts +30 -0
- package/system/dist/builtins/device-manager/device-tombstone-store.d.ts +29 -0
- package/system/dist/builtins/device-manager/discovery-orchestrator.d.ts +45 -0
- package/system/dist/builtins/device-manager/field-claims-index.d.ts +96 -0
- package/system/dist/builtins/device-manager/field-ownership.d.ts +71 -0
- package/system/dist/builtins/device-manager/fleet-read-census.d.ts +104 -0
- package/system/dist/builtins/device-manager/image-settings-config-schema.d.ts +22 -0
- package/system/dist/builtins/device-manager/index.d.ts +2 -0
- package/system/dist/builtins/device-manager/index.js +8 -0
- package/system/dist/builtins/device-manager/index.mjs +2 -0
- package/system/dist/builtins/device-manager/linked-devices-manual-backfill.d.ts +27 -0
- package/system/dist/builtins/device-manager/location-alignment.d.ts +61 -0
- package/system/dist/builtins/device-manager/migrate-device.d.ts +192 -0
- package/system/dist/builtins/device-manager/migrate-guard.d.ts +78 -0
- package/system/dist/builtins/device-manager/migrate-hardware-state.d.ts +79 -0
- package/system/dist/builtins/device-manager/migrate-reload.d.ts +46 -0
- package/system/dist/builtins/device-manager/migration-refused.d.ts +23 -0
- package/system/dist/builtins/device-manager/mirror-row-writer.d.ts +222 -0
- package/system/dist/builtins/device-manager/record-kinds.d.ts +14 -0
- package/system/dist/builtins/device-manager/recording-onboard-config-schema.d.ts +65 -0
- package/system/dist/builtins/device-manager/removal-cleanup.d.ts +50 -0
- package/system/dist/builtins/device-manager/removal-fence.d.ts +58 -0
- package/system/dist/builtins/device-manager/running-flip.d.ts +11 -0
- package/system/dist/builtins/device-manager/runtime-state-persist-gate.d.ts +64 -0
- package/system/dist/builtins/device-manager/secret-config-paths.d.ts +24 -0
- package/system/dist/builtins/device-manager/stale-wrapper-activations.d.ts +59 -0
- package/system/dist/builtins/device-manager/write-lock.d.ts +17 -0
- package/system/dist/builtins/hub-forwarder/hub-forwarder-destination.d.ts +43 -0
- package/system/dist/builtins/hub-forwarder/hub-forwarder.addon.d.ts +16 -0
- package/system/dist/builtins/hub-forwarder/index.d.ts +3 -0
- package/system/dist/builtins/hub-forwarder/index.js +151 -0
- package/system/dist/builtins/hub-forwarder/index.mjs +142 -0
- package/system/dist/builtins/keychain/index.d.ts +1 -0
- package/system/dist/builtins/keychain/index.js +2059 -0
- package/system/dist/builtins/keychain/index.mjs +2052 -0
- package/system/dist/builtins/keychain/key-sources.d.ts +37 -0
- package/system/dist/builtins/keychain/keychain-crypto.d.ts +28 -0
- package/system/dist/builtins/keychain/keychain-reset-trigger.d.ts +25 -0
- package/system/dist/builtins/keychain/keychain-service.d.ts +180 -0
- package/system/dist/builtins/keychain/keychain-store.d.ts +125 -0
- package/system/dist/builtins/keychain/keychain-usage.d.ts +17 -0
- package/system/dist/builtins/keychain/keychain.addon.d.ts +36 -0
- package/system/dist/builtins/keychain/platform-key-source.d.ts +24 -0
- package/system/dist/builtins/keychain/record-kinds.d.ts +16 -0
- package/system/dist/builtins/keychain/system-held-secrets.d.ts +25 -0
- package/system/dist/builtins/liveness-monitor/index.d.ts +2 -0
- package/system/dist/builtins/liveness-monitor/index.js +6 -0
- package/system/dist/builtins/liveness-monitor/index.mjs +2 -0
- package/system/dist/builtins/liveness-monitor/liveness-checks.d.ts +85 -0
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.d.ts +46 -0
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +443 -0
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +437 -0
- package/system/dist/builtins/liveness-monitor/liveness-reporter.d.ts +28 -0
- package/system/dist/builtins/liveness-monitor/storage-root-access.d.ts +53 -0
- package/system/dist/builtins/local-auth/admin-account-boot.d.ts +27 -0
- package/system/dist/builtins/local-auth/auth-config-reader.d.ts +39 -0
- package/system/dist/builtins/local-auth/auth-schema.d.ts +93 -0
- package/system/dist/builtins/local-auth/index.d.ts +1 -0
- package/system/dist/builtins/local-auth/index.js +4 -0
- package/system/dist/builtins/local-auth/index.mjs +2 -0
- package/system/dist/builtins/local-auth/jwt-signing-key-keeper.d.ts +30 -0
- package/system/dist/builtins/local-auth/local-auth.addon.d.ts +48 -0
- package/system/dist/builtins/local-auth/local-auth.addon.js +12418 -0
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +12388 -0
- package/system/dist/builtins/local-auth/oauth-grants.d.ts +71 -0
- package/system/dist/builtins/local-auth/oauth-session-manager.d.ts +44 -0
- package/system/dist/builtins/local-auth/person-scopes.d.ts +7 -0
- package/system/dist/builtins/local-auth/preferences-record-kinds.d.ts +27 -0
- package/system/dist/builtins/local-auth/record-kinds.d.ts +137 -0
- package/system/dist/builtins/local-auth/user-preferences-store.d.ts +56 -0
- package/system/dist/builtins/local-network/address-book.d.ts +128 -0
- package/system/dist/builtins/local-network/agent-mdns.d.ts +56 -0
- package/system/dist/builtins/local-network/hub-mdns-ciao.d.ts +7 -0
- package/system/dist/builtins/local-network/hub-mdns.d.ts +58 -0
- package/system/dist/builtins/local-network/index.d.ts +1 -0
- package/system/dist/builtins/local-network/index.js +10 -0
- package/system/dist/builtins/local-network/index.mjs +2 -0
- package/system/dist/builtins/local-network/ipv6-lan.d.ts +21 -0
- package/system/dist/builtins/local-network/local-hostname.d.ts +15 -0
- package/system/dist/builtins/local-network/local-network.addon.d.ts +334 -0
- package/system/dist/builtins/local-network/local-network.addon.js +2487 -0
- package/system/dist/builtins/local-network/local-network.addon.mjs +2466 -0
- package/system/dist/builtins/local-network/scan/dns-wire.d.ts +17 -0
- package/system/dist/builtins/local-network/scan/scan-engine.d.ts +31 -0
- package/system/dist/builtins/local-network/scan/scan-io-node.d.ts +2 -0
- package/system/dist/builtins/local-network/scan/scan-io.d.ts +56 -0
- package/system/dist/builtins/local-network/scan/subnets.d.ts +57 -0
- package/system/dist/builtins/loki-logging/index.d.ts +4 -0
- package/system/dist/builtins/loki-logging/index.js +915 -0
- package/system/dist/builtins/loki-logging/index.mjs +901 -0
- package/system/dist/builtins/loki-logging/loki-destination.d.ts +142 -0
- package/system/dist/builtins/loki-logging/loki-logging.addon.d.ts +66 -0
- package/system/dist/builtins/loki-logging/loki-payload.d.ts +100 -0
- package/system/dist/builtins/loki-logging/loki-read.d.ts +51 -0
- package/system/dist/builtins/loki-logging/retire-enabled-flag.d.ts +48 -0
- package/system/dist/builtins/native-metrics/cgroup-memory.d.ts +240 -0
- package/system/dist/builtins/native-metrics/cgroup-pids.d.ts +159 -0
- package/system/dist/builtins/native-metrics/container-memory-ring.d.ts +18 -0
- package/system/dist/builtins/native-metrics/darwin-memory.d.ts +26 -0
- package/system/dist/builtins/native-metrics/gpu-probe.d.ts +18 -0
- package/system/dist/builtins/native-metrics/index.d.ts +2 -0
- package/system/dist/builtins/native-metrics/load-series-config.d.ts +83 -0
- package/system/dist/builtins/native-metrics/load-series-reader.d.ts +63 -0
- package/system/dist/builtins/native-metrics/load-series-types.d.ts +14 -0
- package/system/dist/builtins/native-metrics/native-metrics-provider.d.ts +49 -0
- package/system/dist/builtins/native-metrics/native-metrics.addon.d.ts +233 -0
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +3116 -0
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +3106 -0
- package/system/dist/builtins/native-metrics/node-load-ring.d.ts +212 -0
- package/system/dist/builtins/native-metrics/node-metrics-history-recorder.d.ts +155 -0
- package/system/dist/builtins/native-metrics/proc-process-table.d.ts +25 -0
- package/system/dist/builtins/native-metrics/process-classification.d.ts +110 -0
- package/system/dist/builtins/native-metrics/thread-cpu-sampler.d.ts +116 -0
- package/system/dist/builtins/platform-probe/accelerator-facts-probe.d.ts +24 -0
- package/system/dist/builtins/platform-probe/accelerator-reprobe.d.ts +23 -0
- package/system/dist/builtins/platform-probe/amd-accelerators.d.ts +15 -0
- package/system/dist/builtins/platform-probe/amd-npu.d.ts +35 -0
- package/system/dist/builtins/platform-probe/coral-accelerators.d.ts +87 -0
- package/system/dist/builtins/platform-probe/index.d.ts +57 -0
- package/system/dist/builtins/platform-probe/index.js +1151 -0
- package/system/dist/builtins/platform-probe/index.mjs +1140 -0
- package/system/dist/builtins/platform-probe/inference-config-resolver.d.ts +29 -0
- package/system/dist/builtins/platform-probe/intel-accelerators.d.ts +14 -0
- package/system/dist/builtins/platform-probe/intel-npu.d.ts +38 -0
- package/system/dist/builtins/platform-probe/platform-scorer.d.ts +66 -0
- package/system/dist/builtins/platform-probe/runtime-packages.d.ts +6 -0
- package/system/dist/builtins/platform-probe/windows-hardware.d.ts +77 -0
- package/system/dist/builtins/record-entries/entries-service.d.ts +42 -0
- package/system/dist/builtins/record-entries/index.d.ts +1 -0
- package/system/dist/builtins/record-entries/index.js +162 -0
- package/system/dist/builtins/record-entries/index.mjs +156 -0
- package/system/dist/builtins/record-entries/record-entries.addon.d.ts +13 -0
- package/system/dist/builtins/records-isolated.d.ts +10 -0
- package/system/dist/builtins/remote-access-orchestrator/enabled-providers-reconcile.d.ts +96 -0
- package/system/dist/builtins/remote-access-orchestrator/index.d.ts +1 -0
- package/system/dist/builtins/remote-access-orchestrator/index.js +8 -0
- package/system/dist/builtins/remote-access-orchestrator/index.mjs +2 -0
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.d.ts +71 -0
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +214 -0
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +208 -0
- package/system/dist/builtins/shared/device-state-changed.d.ts +16 -0
- package/system/dist/builtins/shared/settle-sources.d.ts +22 -0
- package/system/dist/builtins/snapshot/index.d.ts +2 -0
- package/system/dist/builtins/snapshot/index.js +2720 -0
- package/system/dist/builtins/snapshot/index.mjs +2713 -0
- package/system/dist/builtins/snapshot/snapshot-cache.d.ts +108 -0
- package/system/dist/builtins/snapshot/snapshot-coalescing.d.ts +135 -0
- package/system/dist/builtins/snapshot/snapshot-courtesy.d.ts +68 -0
- package/system/dist/builtins/snapshot/snapshot-durable-store.d.ts +36 -0
- package/system/dist/builtins/snapshot/snapshot-fatigue.d.ts +41 -0
- package/system/dist/builtins/snapshot/snapshot-grab-pick.d.ts +20 -0
- package/system/dist/builtins/snapshot/snapshot-link-url.d.ts +66 -0
- package/system/dist/builtins/snapshot/snapshot-media-handler.d.ts +121 -0
- package/system/dist/builtins/snapshot/snapshot-resize.d.ts +75 -0
- package/system/dist/builtins/snapshot/snapshot.addon.d.ts +581 -0
- package/system/dist/builtins/sqlite-storage/analyze-stats.d.ts +83 -0
- package/system/dist/builtins/sqlite-storage/config-store.d.ts +8 -0
- package/system/dist/builtins/sqlite-storage/database-snapshot-provider.d.ts +18 -0
- package/system/dist/builtins/sqlite-storage/device-store.d.ts +23 -0
- package/system/dist/builtins/sqlite-storage/file-host-client.d.ts +75 -0
- package/system/dist/builtins/sqlite-storage/file-host-handlers.d.ts +27 -0
- package/system/dist/builtins/sqlite-storage/file-host-protocol.d.ts +167 -0
- package/system/dist/builtins/sqlite-storage/file-host-worker.d.ts +1 -0
- package/system/dist/builtins/sqlite-storage/filesystem-browse-provider.d.ts +25 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage-provider.d.ts +83 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +419 -0
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +411 -0
- package/system/dist/builtins/sqlite-storage/filter-compiler.d.ts +126 -0
- package/system/dist/builtins/sqlite-storage/index.d.ts +12 -0
- package/system/dist/builtins/sqlite-storage/index.js +82 -0
- package/system/dist/builtins/sqlite-storage/index.mjs +50 -0
- package/system/dist/builtins/sqlite-storage/integration-record-kinds.d.ts +31 -0
- package/system/dist/builtins/sqlite-storage/integration-registry.d.ts +34 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-actions.d.ts +12 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-edits.d.ts +35 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-engine.d.ts +125 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-hold.d.ts +23 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-pass.d.ts +48 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-restore-marker.d.ts +3 -0
- package/system/dist/builtins/sqlite-storage/migrations/migration-types.d.ts +151 -0
- package/system/dist/builtins/sqlite-storage/migrations/migrations-provider.d.ts +61 -0
- package/system/dist/builtins/sqlite-storage/owned-sqlite-file.d.ts +173 -0
- package/system/dist/builtins/sqlite-storage/path-guard.d.ts +11 -0
- package/system/dist/builtins/sqlite-storage/placement-errors.d.ts +60 -0
- package/system/dist/builtins/sqlite-storage/placement-router.d.ts +85 -0
- package/system/dist/builtins/sqlite-storage/prefix-range.d.ts +50 -0
- package/system/dist/builtins/sqlite-storage/query-bounds.d.ts +110 -0
- package/system/dist/builtins/sqlite-storage/query-profiler.d.ts +242 -0
- package/system/dist/builtins/sqlite-storage/records/records-catalog.d.ts +27 -0
- package/system/dist/builtins/sqlite-storage/records/records-engine-types.d.ts +48 -0
- package/system/dist/builtins/sqlite-storage/records/records-engine.d.ts +115 -0
- package/system/dist/builtins/sqlite-storage/records/records-explain.d.ts +18 -0
- package/system/dist/builtins/sqlite-storage/records/records-plan.d.ts +95 -0
- package/system/dist/builtins/sqlite-storage/records/records-probe.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/records/records-provider.d.ts +72 -0
- package/system/dist/builtins/sqlite-storage/records/records-rows.d.ts +46 -0
- package/system/dist/builtins/sqlite-storage/records/records-sql.d.ts +39 -0
- package/system/dist/builtins/sqlite-storage/retired-settings-keys.d.ts +276 -0
- package/system/dist/builtins/sqlite-storage/shm-lock-canary.d.ts +60 -0
- package/system/dist/builtins/sqlite-storage/sqlite-pragmas.d.ts +191 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +583 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.d.ts +52 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2960 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2952 -0
- package/system/dist/builtins/sqlite-storage/sqlite-snapshot-protocol.d.ts +54 -0
- package/system/dist/builtins/sqlite-storage/sqlite-snapshot-worker.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/sqlite-snapshotter.d.ts +118 -0
- package/system/dist/builtins/sqlite-storage/stale-data/stale-data-audit.d.ts +81 -0
- package/system/dist/builtins/sqlite-storage/stale-data/stale-data-ports.d.ts +17 -0
- package/system/dist/builtins/sqlite-storage/statement-shape.d.ts +64 -0
- package/system/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +33 -0
- package/system/dist/builtins/sqlite-storage/table-sizes.d.ts +95 -0
- package/system/dist/builtins/sqlite-storage/vector-index-shared.d.ts +81 -0
- package/system/dist/builtins/sqlite-storage/vector-index-vec.d.ts +143 -0
- package/system/dist/builtins/sqlite-storage/vector-provider.d.ts +30 -0
- package/system/dist/builtins/sqlite-storage/wal-checkpoint-policy.d.ts +196 -0
- package/system/dist/builtins/sqlite-storage/wal-checkpoint-worker.d.ts +1 -0
- package/system/dist/builtins/sqlite-storage/wal-checkpointer.d.ts +76 -0
- package/system/dist/builtins/sqlite-storage/wal-maintenance.d.ts +130 -0
- package/system/dist/builtins/storage-orchestrator/access-guards.d.ts +43 -0
- package/system/dist/builtins/storage-orchestrator/data-store-dispatch.d.ts +39 -0
- package/system/dist/builtins/storage-orchestrator/drain-ratchet.d.ts +104 -0
- package/system/dist/builtins/storage-orchestrator/drain-state-store.d.ts +26 -0
- package/system/dist/builtins/storage-orchestrator/hub-settings-forward.d.ts +128 -0
- package/system/dist/builtins/storage-orchestrator/index.d.ts +7 -0
- package/system/dist/builtins/storage-orchestrator/index.js +11 -0
- package/system/dist/builtins/storage-orchestrator/index.mjs +2 -0
- package/system/dist/builtins/storage-orchestrator/location-class-paths.d.ts +13 -0
- package/system/dist/builtins/storage-orchestrator/location-history-recorder.d.ts +76 -0
- package/system/dist/builtins/storage-orchestrator/location-occupancy-slice.d.ts +71 -0
- package/system/dist/builtins/storage-orchestrator/location-occupancy.d.ts +19 -0
- package/system/dist/builtins/storage-orchestrator/location-protection.d.ts +20 -0
- package/system/dist/builtins/storage-orchestrator/location-repoint-move.d.ts +57 -0
- package/system/dist/builtins/storage-orchestrator/location-repointer.d.ts +97 -0
- package/system/dist/builtins/storage-orchestrator/location-root-collision.d.ts +80 -0
- package/system/dist/builtins/storage-orchestrator/location-secrets.d.ts +114 -0
- package/system/dist/builtins/storage-orchestrator/location-store.d.ts +82 -0
- package/system/dist/builtins/storage-orchestrator/location-volume-capacity.d.ts +58 -0
- package/system/dist/builtins/storage-orchestrator/provider-discovery.d.ts +24 -0
- package/system/dist/builtins/storage-orchestrator/record-kinds.d.ts +43 -0
- package/system/dist/builtins/storage-orchestrator/storage-cleanup-coordinator.d.ts +68 -0
- package/system/dist/builtins/storage-orchestrator/storage-location-band-monitor.d.ts +77 -0
- package/system/dist/builtins/storage-orchestrator/storage-migration-coordinator.d.ts +241 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +318 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +5280 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +5264 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +475 -0
- package/system/dist/builtins/storage-orchestrator/storage-pressure-manager.d.ts +115 -0
- package/system/dist/builtins/system-backup/backup-encryption.d.ts +94 -0
- package/system/dist/builtins/system-backup/system-backup.service.d.ts +308 -0
- package/system/dist/builtins/system-config/index.d.ts +2 -0
- package/system/dist/builtins/system-config/index.js +10 -0
- package/system/dist/builtins/system-config/index.mjs +2 -0
- package/system/dist/builtins/system-config/mesh-actions.d.ts +3 -0
- package/system/dist/builtins/system-config/record-kinds.d.ts +32 -0
- package/system/dist/builtins/system-config/system-config.addon.d.ts +56 -0
- package/system/dist/builtins/system-config/system-config.addon.js +89334 -0
- package/system/dist/builtins/system-config/system-config.addon.mjs +89233 -0
- package/system/dist/builtins/winston-logging/index.d.ts +3 -0
- package/system/dist/builtins/winston-logging/index.js +324 -0
- package/system/dist/builtins/winston-logging/index.mjs +313 -0
- package/system/dist/builtins/winston-logging/log-file-cursor.d.ts +12 -0
- package/system/dist/builtins/winston-logging/log-file-index-store.d.ts +11 -0
- package/system/dist/builtins/winston-logging/log-file-index.d.ts +77 -0
- package/system/dist/builtins/winston-logging/log-file-read-client.d.ts +44 -0
- package/system/dist/builtins/winston-logging/log-file-read-protocol.d.ts +41 -0
- package/system/dist/builtins/winston-logging/log-file-read-worker.d.ts +1 -0
- package/system/dist/builtins/winston-logging/log-file-reader.d.ts +51 -0
- package/system/dist/builtins/winston-logging/winston-destination.d.ts +39 -0
- package/system/dist/builtins/winston-logging/winston-logging.addon.d.ts +20 -0
- package/system/dist/chunk-CNf5ZN-e.mjs +37 -0
- package/system/dist/chunk-Cek0wNdY.js +64 -0
- package/system/dist/composition-sources-C14epb_m.js +155 -0
- package/system/dist/composition-sources-EXNuxmGQ.mjs +132 -0
- package/system/dist/constants-DIGWBiNC.mjs +20 -0
- package/system/dist/constants-M7NtSiRo.js +66 -0
- package/system/dist/coral-accelerators-BSVsBVzt.js +250 -0
- package/system/dist/coral-accelerators-DBlgWB8k.mjs +231 -0
- package/system/dist/custom-action-registry-JuMHGKEc.js +1638 -0
- package/system/dist/custom-action-registry-oHl1xltx.mjs +1482 -0
- package/system/dist/device-ca-3vmBP1i0.js +474 -0
- package/system/dist/device-ca-DZlvNBWU.mjs +367 -0
- package/system/dist/dist-DcMqHB_N.mjs +108095 -0
- package/system/dist/dist-M9yHiIY7.js +110554 -0
- package/system/dist/download/hosted-model-revisions.d.ts +10 -0
- package/system/dist/download/model-download-service.d.ts +35 -0
- package/system/dist/download/model-downloader.d.ts +156 -0
- package/system/dist/events/event-bus.d.ts +10 -0
- package/system/dist/events/system-event-bus.d.ts +14 -0
- package/system/dist/feature/feature-manager.d.ts +11 -0
- package/system/dist/file-host-worker.js +160 -0
- package/system/dist/file-host-worker.mjs +160 -0
- package/system/dist/formatter-DkYZ4LXp.mjs +162 -0
- package/system/dist/formatter-xbxeV4GD.js +167 -0
- package/system/dist/framework-resolver-hook.mjs +49 -0
- package/system/dist/http/asset-compression.d.ts +55 -0
- package/system/dist/http/authenticated-file-server.d.ts +53 -0
- package/system/dist/http/data-plane-registry.d.ts +58 -0
- package/system/dist/http/file-data-plane.d.ts +18 -0
- package/system/dist/http/lan-http-bind.d.ts +41 -0
- package/system/dist/http/reverse-proxy.d.ts +42 -0
- package/system/dist/hub-mdns-ciao-CpCKuQnK.js +1163 -0
- package/system/dist/hub-mdns-ciao-Czz2ssit.mjs +942 -0
- package/system/dist/i18n/catalog-registry.d.ts +35 -0
- package/system/dist/i18n/index.d.ts +2 -0
- package/system/dist/index.d.ts +156 -0
- package/system/dist/index.js +28736 -0
- package/system/dist/index.mjs +28065 -0
- package/system/dist/intel-accelerators-BvBjZn4j.js +16 -0
- package/system/dist/intel-accelerators-idEumqk1.mjs +15 -0
- package/system/dist/intel-npu-C8HKvRQF.mjs +27 -0
- package/system/dist/intel-npu-DYF5hO5K.js +28 -0
- package/system/dist/kernel/addon-class-resolver.d.ts +4 -0
- package/system/dist/kernel/addon-engine-manager.d.ts +22 -0
- package/system/dist/kernel/addon-health-monitor.d.ts +163 -0
- package/system/dist/kernel/addon-installer.d.ts +651 -0
- package/system/dist/kernel/addon-loader.d.ts +144 -0
- package/system/dist/kernel/addon-manifest.d.ts +128 -0
- package/system/dist/kernel/addon-refused-error.d.ts +30 -0
- package/system/dist/kernel/addon-residue.d.ts +45 -0
- package/system/dist/kernel/addon-settings-store.d.ts +43 -0
- package/system/dist/kernel/addon-version-policy.d.ts +34 -0
- package/system/dist/kernel/anon-rss.d.ts +12 -0
- package/system/dist/kernel/array-buffer-census.d.ts +118 -0
- package/system/dist/kernel/bootstrap-config.d.ts +7 -0
- package/system/dist/kernel/cap-router-builder.d.ts +180 -0
- package/system/dist/kernel/capability-handle.d.ts +46 -0
- package/system/dist/kernel/capability-registry.d.ts +621 -0
- package/system/dist/kernel/config-manager.d.ts +174 -0
- package/system/dist/kernel/config-schema.d.ts +37 -0
- package/system/dist/kernel/custom-action-registry.d.ts +32 -0
- package/system/dist/kernel/deps/addon-deps-manager.d.ts +28 -0
- package/system/dist/kernel/deps/closure-dedupe.d.ts +105 -0
- package/system/dist/kernel/deps/ensure-addon-natives.d.ts +41 -0
- package/system/dist/kernel/deps/ensure-native-prebuilds.d.ts +40 -0
- package/system/dist/kernel/deps/manifest-native-deps.d.ts +42 -0
- package/system/dist/kernel/deps/manifest-python-deps.d.ts +20 -0
- package/system/dist/kernel/deps/manifest-system-deps.d.ts +18 -0
- package/system/dist/kernel/deps/npm-command.d.ts +60 -0
- package/system/dist/kernel/deps/system-package-allowlist.d.ts +12 -0
- package/system/dist/kernel/deps/system-package-broker.d.ts +31 -0
- package/system/dist/kernel/deps/system-package-client.d.ts +9 -0
- package/system/dist/kernel/device-call-redirect.d.ts +18 -0
- package/system/dist/kernel/device-registry.d.ts +29 -0
- package/system/dist/kernel/device-settings-store.d.ts +74 -0
- package/system/dist/kernel/event-loop-stall-monitor.d.ts +41 -0
- package/system/dist/kernel/event-plane-report.d.ts +225 -0
- package/system/dist/kernel/fs-utils.d.ts +88 -0
- package/system/dist/kernel/gc-census.d.ts +161 -0
- package/system/dist/kernel/heap-spaces.d.ts +112 -0
- package/system/dist/kernel/heap-watch.d.ts +816 -0
- package/system/dist/kernel/host-externals.d.ts +12 -0
- package/system/dist/kernel/hwaccel/hwaccel-resolver.d.ts +56 -0
- package/system/dist/kernel/hwaccel/vaapi-init-probe.d.ts +29 -0
- package/system/dist/kernel/index.d.ts +116 -0
- package/system/dist/kernel/inference/inference-resolver.d.ts +22 -0
- package/system/dist/kernel/inference/local-python-runtimes.d.ts +2 -0
- package/system/dist/kernel/infra-capabilities.d.ts +13 -0
- package/system/dist/kernel/isolated-builtin-phase.d.ts +57 -0
- package/system/dist/kernel/lifecycle/job-journal.d.ts +19 -0
- package/system/dist/kernel/lifecycle/lifecycle-job-engine.d.ts +106 -0
- package/system/dist/kernel/lifecycle/staging-area.d.ts +31 -0
- package/system/dist/kernel/moleculer/accessory-prune-gate.d.ts +55 -0
- package/system/dist/kernel/moleculer/addon-context-factory.d.ts +104 -0
- package/system/dist/kernel/moleculer/addon-data-plane-facility.d.ts +19 -0
- package/system/dist/kernel/moleculer/addon-deploy-source.d.ts +16 -0
- package/system/dist/kernel/moleculer/addon-peer-bytes-facility.d.ts +25 -0
- package/system/dist/kernel/moleculer/addon-runner.d.ts +1 -0
- package/system/dist/kernel/moleculer/addon-service-factory.d.ts +50 -0
- package/system/dist/kernel/moleculer/agent-event-scope.d.ts +49 -0
- package/system/dist/kernel/moleculer/agent-ui-unlock.d.ts +67 -0
- package/system/dist/kernel/moleculer/broker-factory.d.ts +95 -0
- package/system/dist/kernel/moleculer/broker-transport-swap.d.ts +60 -0
- package/system/dist/kernel/moleculer/cap-usage-registry.d.ts +126 -0
- package/system/dist/kernel/moleculer/capabilities-access.d.ts +21 -0
- package/system/dist/kernel/moleculer/child-addon-call-dispatch.d.ts +53 -0
- package/system/dist/kernel/moleculer/child-cap-descriptors.d.ts +34 -0
- package/system/dist/kernel/moleculer/child-cap-dispatch.d.ts +59 -0
- package/system/dist/kernel/moleculer/children-batch-loader.d.ts +98 -0
- package/system/dist/kernel/moleculer/core-cap-service.d.ts +65 -0
- package/system/dist/kernel/moleculer/crash-supervisor.d.ts +50 -0
- package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +70 -0
- package/system/dist/kernel/moleculer/device-event-ring.d.ts +155 -0
- package/system/dist/kernel/moleculer/event-bus-core.d.ts +198 -0
- package/system/dist/kernel/moleculer/event-bus.d.ts +106 -0
- package/system/dist/kernel/moleculer/hub-log-forwarder.d.ts +36 -0
- package/system/dist/kernel/moleculer/hub-service.d.ts +39 -0
- package/system/dist/kernel/moleculer/init-watchdog.d.ts +60 -0
- package/system/dist/kernel/moleculer/mesh-access-middleware.d.ts +42 -0
- package/system/dist/kernel/moleculer/mesh-identity.d.ts +57 -0
- package/system/dist/kernel/moleculer/mesh-mtls/constants.d.ts +17 -0
- package/system/dist/kernel/moleculer/mesh-mtls/index.d.ts +12 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-ca-keeper.d.ts +60 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-ca.d.ts +49 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-certificate-registry.d.ts +105 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-crl.d.ts +16 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-membership.d.ts +64 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-peer-transport.d.ts +47 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-renewal.d.ts +135 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-tls-enabler.d.ts +9 -0
- package/system/dist/kernel/moleculer/mesh-mtls/mesh-tls-gate.d.ts +40 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/agent-pairing.d.ts +214 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/hub-pairing.d.ts +115 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/index.d.ts +3 -0
- package/system/dist/kernel/moleculer/mesh-mtls/pairing/pairing-protocol.d.ts +107 -0
- package/system/dist/kernel/moleculer/mesh-mtls/tls-tcp-transporter.d.ts +242 -0
- package/system/dist/kernel/moleculer/mesh-queue-report.d.ts +51 -0
- package/system/dist/kernel/moleculer/node-registry.d.ts +146 -0
- package/system/dist/kernel/moleculer/process-context.d.ts +4 -0
- package/system/dist/kernel/moleculer/process-service.d.ts +92 -0
- package/system/dist/kernel/moleculer/provider-registry.d.ts +28 -0
- package/system/dist/kernel/moleculer/readiness-context.d.ts +67 -0
- package/system/dist/kernel/moleculer/readiness-service.d.ts +37 -0
- package/system/dist/kernel/moleculer/records-api-transport.d.ts +9 -0
- package/system/dist/kernel/moleculer/register-framework-resolver.d.ts +8 -0
- package/system/dist/kernel/moleculer/register-node-client.d.ts +49 -0
- package/system/dist/kernel/moleculer/remote-logger.d.ts +43 -0
- package/system/dist/kernel/moleculer/resilient-cap-call.d.ts +28 -0
- package/system/dist/kernel/moleculer/runner-addon-settings.d.ts +29 -0
- package/system/dist/kernel/moleculer/runner-device-settings.d.ts +39 -0
- package/system/dist/kernel/moleculer/runner-heap-flags.d.ts +228 -0
- package/system/dist/kernel/moleculer/runner-native-allocator.d.ts +107 -0
- package/system/dist/kernel/moleculer/runner-process-group.d.ts +96 -0
- package/system/dist/kernel/moleculer/runner-refusal.d.ts +27 -0
- package/system/dist/kernel/moleculer/runtime-state-load.d.ts +29 -0
- package/system/dist/kernel/moleculer/settings-read-guard.d.ts +49 -0
- package/system/dist/kernel/moleculer/stream-probe-service.d.ts +28 -0
- package/system/dist/kernel/moleculer/trpc-links.d.ts +244 -0
- package/system/dist/kernel/moleculer/typed-array-serde.d.ts +14 -0
- package/system/dist/kernel/moleculer/worker-device-restore.d.ts +10 -0
- package/system/dist/kernel/outbound-queue-watch.d.ts +94 -0
- package/system/dist/kernel/prefix-walk.d.ts +39 -0
- package/system/dist/kernel/process-cpu-census.d.ts +74 -0
- package/system/dist/kernel/provider-kind-drift.d.ts +21 -0
- package/system/dist/kernel/restart-coordinator.d.ts +90 -0
- package/system/dist/kernel/sections-store.d.ts +20 -0
- package/system/dist/kernel/settings-door-view.d.ts +41 -0
- package/system/dist/kernel/settings-read-error.d.ts +35 -0
- package/system/dist/kernel/settings-view-types.d.ts +80 -0
- package/system/dist/kernel/socket-plane-report.d.ts +268 -0
- package/system/dist/kernel/status-overlay.d.ts +38 -0
- package/system/dist/kernel/storage-location-registry.d.ts +55 -0
- package/system/dist/kernel/store-settings-view.d.ts +14 -0
- package/system/dist/kernel/system-settings-mirror.d.ts +46 -0
- package/system/dist/kernel/system-settings-policy.d.ts +28 -0
- package/system/dist/kernel/transport/cap-action-census.d.ts +218 -0
- package/system/dist/kernel/transport/cap-action-name.d.ts +100 -0
- package/system/dist/kernel/transport/cap-child-index.d.ts +49 -0
- package/system/dist/kernel/transport/cap-route-resolver.d.ts +231 -0
- package/system/dist/kernel/transport/cap-route.d.ts +168 -0
- package/system/dist/kernel/transport/cap-routing-hints.d.ts +42 -0
- package/system/dist/kernel/transport/child-cap-protocol.d.ts +307 -0
- package/system/dist/kernel/transport/claimed-get-status.d.ts +39 -0
- package/system/dist/kernel/transport/create-local-transport.d.ts +7 -0
- package/system/dist/kernel/transport/device-call-redirect.d.ts +39 -0
- package/system/dist/kernel/transport/frame-codec.d.ts +122 -0
- package/system/dist/kernel/transport/hub-cap-forward.d.ts +96 -0
- package/system/dist/kernel/transport/index.d.ts +38 -0
- package/system/dist/kernel/transport/local-child-client.d.ts +199 -0
- package/system/dist/kernel/transport/local-child-registry.d.ts +654 -0
- package/system/dist/kernel/transport/local-endpoint-path.d.ts +6 -0
- package/system/dist/kernel/transport/local-transport.d.ts +122 -0
- package/system/dist/kernel/transport/parent-unowned-call.d.ts +283 -0
- package/system/dist/kernel/transport/peer-answered-error.d.ts +21 -0
- package/system/dist/kernel/transport/socket-channel.d.ts +116 -0
- package/system/dist/kernel/transport/socket-traffic.d.ts +118 -0
- package/system/dist/kernel/transport/uds-event-bridge.d.ts +85 -0
- package/system/dist/kernel/transport/uds-event-bus.d.ts +93 -0
- package/system/dist/kernel/transport/uds-local-transport.d.ts +18 -0
- package/system/dist/kernel/transport/uds-log-ingest.d.ts +43 -0
- package/system/dist/kernel/transport/uds-logger.d.ts +44 -0
- package/system/dist/kernel/utils/ring-buffer.d.ts +15 -0
- package/system/dist/kernel/workspace-detect.d.ts +9 -0
- package/system/dist/lib-5THG9eKz.mjs +15545 -0
- package/system/dist/lib-C3U1yluo.js +7110 -0
- package/system/dist/lib-CZ3g2WTS.js +15549 -0
- package/system/dist/lib-DFZblCIu.mjs +7106 -0
- package/system/dist/lifecycle/lifecycle-state-machine.d.ts +28 -0
- package/system/dist/log-file-read-protocol-B7M3X3bT.mjs +785 -0
- package/system/dist/log-file-read-protocol-D0WcLbIV.js +817 -0
- package/system/dist/log-file-read-worker.js +64 -0
- package/system/dist/log-file-read-worker.mjs +64 -0
- package/system/dist/log-read-filter-Bi066jwU.js +134 -0
- package/system/dist/log-read-filter-D7Ev3zm-.mjs +93 -0
- package/system/dist/logging/formatter.d.ts +57 -0
- package/system/dist/logging/log-manager.d.ts +145 -0
- package/system/dist/logging/log-read-filter.d.ts +43 -0
- package/system/dist/logging/log-redactor.d.ts +30 -0
- package/system/dist/logging/log-ring-buffer.d.ts +62 -0
- package/system/dist/logging/logging-gate.d.ts +76 -0
- package/system/dist/logging/logging-gate.singleton.d.ts +16 -0
- package/system/dist/logging/partitioned-log-buffer.d.ts +169 -0
- package/system/dist/logging/scoped-logger.d.ts +17 -0
- package/system/dist/migrations/hub/index.d.ts +11 -0
- package/system/dist/ms-CgH2OFlD.mjs +120 -0
- package/system/dist/ms-LB3giGoU.js +124 -0
- package/system/dist/network/network-quality.d.ts +11 -0
- package/system/dist/notification/notification-service.d.ts +43 -0
- package/system/dist/notification/toast-service.d.ts +22 -0
- package/system/dist/pipeline/engine-manager-resolver.d.ts +15 -0
- package/system/dist/pipeline/pipeline-runner.d.ts +8 -0
- package/system/dist/pipeline/pipeline-validator.d.ts +13 -0
- package/system/dist/platform-key-source-BWlq0jjn.mjs +23 -0
- package/system/dist/platform-key-source-Di7HrlGR.js +40 -0
- package/system/dist/prefix-range-D_KueXbQ.js +27 -0
- package/system/dist/prefix-range-Dl0znowN.mjs +22 -0
- package/system/dist/prefix-walk-DAOBSyH1.mjs +88 -0
- package/system/dist/prefix-walk-Dv6MLZlM.js +99 -0
- package/system/dist/process/proc-stat.d.ts +75 -0
- package/system/dist/process/resource-monitor.d.ts +28 -0
- package/system/dist/python/python-env-manager.d.ts +12 -0
- package/system/dist/read-all-rows-CVoO1ONM.js +29 -0
- package/system/dist/read-all-rows-TaPqdWNF.mjs +25 -0
- package/system/dist/records/read-all-rows.d.ts +6 -0
- package/system/dist/repl/interfaces.d.ts +31 -0
- package/system/dist/repl/repl-engine.d.ts +8 -0
- package/system/dist/resource-monitor-Di9daRwI.mjs +96 -0
- package/system/dist/resource-monitor-mio9dSCT.js +113 -0
- package/system/dist/restore-archive-Cy7jGqiD.js +4325 -0
- package/system/dist/restore-archive-DS4nvQ43.mjs +4213 -0
- package/system/dist/retention-Dqm_EiVq.mjs +893 -0
- package/system/dist/retention-Ufa2fci-.js +1024 -0
- package/system/dist/retired-settings-keys-C8nOOr5H.js +381 -0
- package/system/dist/retired-settings-keys-u6xQA6r7.mjs +364 -0
- package/system/dist/safe-buffer-B1OjL1I9.mjs +42 -0
- package/system/dist/safe-buffer-D3aoa-7X.js +46 -0
- package/system/dist/settle-sources-Bhsy57y-.js +38 -0
- package/system/dist/settle-sources-CDtNC8ub.mjs +33 -0
- package/system/dist/snapshot-courtesy-CyFs1M3I.mjs +167 -0
- package/system/dist/snapshot-courtesy-D_C5-nC0.js +192 -0
- package/system/dist/sqlite-snapshot-protocol-2QaTouWV.mjs +34 -0
- package/system/dist/sqlite-snapshot-protocol-B9OndqZv.js +51 -0
- package/system/dist/sqlite-snapshot-worker.js +185 -0
- package/system/dist/sqlite-snapshot-worker.mjs +179 -0
- package/system/dist/src-CnAqG6EF.js +714 -0
- package/system/dist/src-hG4grMU4.mjs +709 -0
- package/system/dist/storage/fs-storage-backend.d.ts +40 -0
- package/system/dist/storage/storage-location-manager.d.ts +23 -0
- package/system/dist/storage/storage-manager.d.ts +83 -0
- package/system/dist/tls/agent-https-names.d.ts +25 -0
- package/system/dist/tls/agent-https.d.ts +111 -0
- package/system/dist/tls/boot-tls.d.ts +35 -0
- package/system/dist/tls/cert-backdate.d.ts +10 -0
- package/system/dist/tls/cert-evaluation.d.ts +41 -0
- package/system/dist/tls/cert-identity.d.ts +60 -0
- package/system/dist/tls/cert-issue.d.ts +57 -0
- package/system/dist/tls/cert-manager.d.ts +124 -0
- package/system/dist/tls/cert-name-constraints.d.ts +53 -0
- package/system/dist/tls/cert-utc-time.d.ts +1 -0
- package/system/dist/tls/https-listener.d.ts +30 -0
- package/system/dist/tls/index.d.ts +12 -0
- package/system/dist/tls/tls-actions.d.ts +49 -0
- package/system/dist/tls/tls-status.d.ts +57 -0
- package/system/dist/tls/uploaded-cert.d.ts +46 -0
- package/system/dist/wal-checkpoint-policy-BahrTtyD.mjs +186 -0
- package/system/dist/wal-checkpoint-policy-d2z2qPqx.js +233 -0
- package/system/dist/wal-checkpoint-worker.js +144 -0
- package/system/dist/wal-checkpoint-worker.mjs +143 -0
- package/system/dist/wal-maintenance-BmugbgS7.js +0 -0
- package/system/dist/wal-maintenance-Bnb2QzYG.mjs +0 -0
- package/system/dist/x509.es-BRiJgOvu.mjs +11939 -0
- package/system/dist/x509.es-WtnRNyYS.js +12076 -0
- package/system/package.json +516 -0
|
@@ -0,0 +1,1289 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
+
const require_dist = require("./dist-M9yHiIY7.js");
|
|
3
|
+
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
+
let zod = require("zod");
|
|
5
|
+
let node_crypto = require("node:crypto");
|
|
6
|
+
let _camstack_types_node = require("@camstack/types/node");
|
|
7
|
+
let node_net = require("node:net");
|
|
8
|
+
let node_path = require("node:path");
|
|
9
|
+
let node_os = require("node:os");
|
|
10
|
+
node_os = require_chunk.__toESM(node_os);
|
|
11
|
+
let node_fs = require("node:fs");
|
|
12
|
+
var MeshNodeCertificateBodySchema = zod.z.object({
|
|
13
|
+
nodeId: zod.z.string(),
|
|
14
|
+
serial: zod.z.string(),
|
|
15
|
+
fingerprint: zod.z.string(),
|
|
16
|
+
notBefore: zod.z.number(),
|
|
17
|
+
notAfter: zod.z.number(),
|
|
18
|
+
issuedAt: zod.z.number(),
|
|
19
|
+
issuedVia: zod.z.string(),
|
|
20
|
+
revokedAt: zod.z.number().nullish(),
|
|
21
|
+
revokedReason: zod.z.string().nullish()
|
|
22
|
+
});
|
|
23
|
+
var AgentHttpsNameBodySchema = zod.z.object({
|
|
24
|
+
names: zod.z.array(zod.z.string()).readonly(),
|
|
25
|
+
issuedAt: zod.z.number()
|
|
26
|
+
});
|
|
27
|
+
var _systemConfigRecordKinds = require_dist.defineRecordKinds({
|
|
28
|
+
"mesh-node-certificates": {
|
|
29
|
+
schema: MeshNodeCertificateBodySchema,
|
|
30
|
+
class: "config",
|
|
31
|
+
writeTrigger: "mesh pairing, renewal, revocation (CRL mirror refreshed from rows)",
|
|
32
|
+
device: "none",
|
|
33
|
+
at: "none",
|
|
34
|
+
indexes: [{
|
|
35
|
+
name: "node",
|
|
36
|
+
fields: ["nodeId"]
|
|
37
|
+
}, {
|
|
38
|
+
name: "fingerprint",
|
|
39
|
+
fields: ["fingerprint"]
|
|
40
|
+
}],
|
|
41
|
+
retention: {
|
|
42
|
+
owner: "system-config",
|
|
43
|
+
reason: "daily reap removes revoked/expired rows older than 90 days"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"agent-https-names": {
|
|
47
|
+
schema: AgentHttpsNameBodySchema,
|
|
48
|
+
class: "config",
|
|
49
|
+
writeTrigger: "agent HTTPS certificate issuance records the CN/SAN set",
|
|
50
|
+
device: "none",
|
|
51
|
+
at: "none",
|
|
52
|
+
retention: { none: "one row per node id" }
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
var systemConfigRecordKinds = _systemConfigRecordKinds;
|
|
56
|
+
_systemConfigRecordKinds["mesh-node-certificates"];
|
|
57
|
+
_systemConfigRecordKinds["agent-https-names"];
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/tls/agent-https-names.ts
|
|
60
|
+
var AGENT_HTTPS_NAMES_COLLECTION = "agent_https_names";
|
|
61
|
+
var AGENT_HTTPS_NAMES_COLUMNS = [
|
|
62
|
+
{
|
|
63
|
+
name: "id",
|
|
64
|
+
type: "TEXT",
|
|
65
|
+
primaryKey: true,
|
|
66
|
+
notNull: true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "names",
|
|
70
|
+
type: "JSON",
|
|
71
|
+
notNull: true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "issuedAt",
|
|
75
|
+
type: "INTEGER",
|
|
76
|
+
notNull: true
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
var AgentHttpsNames = class {
|
|
80
|
+
byNode = /* @__PURE__ */ new Map();
|
|
81
|
+
kind;
|
|
82
|
+
store;
|
|
83
|
+
constructor(deps) {
|
|
84
|
+
if ("agentHttpsNamesKind" in deps) {
|
|
85
|
+
this.kind = deps.agentHttpsNamesKind;
|
|
86
|
+
this.store = deps.legacyStore ?? null;
|
|
87
|
+
} else {
|
|
88
|
+
this.kind = null;
|
|
89
|
+
this.store = deps;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
async load() {
|
|
93
|
+
const kind = this.kind;
|
|
94
|
+
if (kind !== null) {
|
|
95
|
+
const page = await kind.query({ limit: 1e4 });
|
|
96
|
+
for (const row of page.records) this.byNode.set(row.id, row.data.names.map((n) => n.toLowerCase()));
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const rows = await this.store.query.query({ collection: AGENT_HTTPS_NAMES_COLLECTION });
|
|
100
|
+
for (const row of rows) {
|
|
101
|
+
const names = row.data["names"];
|
|
102
|
+
if (Array.isArray(names)) this.byNode.set(row.id, names.filter((n) => typeof n === "string").map((n) => n.toLowerCase()));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
namesOf(nodeId) {
|
|
106
|
+
return this.byNode.get(nodeId) ?? null;
|
|
107
|
+
}
|
|
108
|
+
takenByOthers(nodeId) {
|
|
109
|
+
const out = /* @__PURE__ */ new Set();
|
|
110
|
+
for (const [id, names] of this.byNode) {
|
|
111
|
+
if (id === nodeId) continue;
|
|
112
|
+
for (const n of names) out.add(n);
|
|
113
|
+
}
|
|
114
|
+
return out;
|
|
115
|
+
}
|
|
116
|
+
async release(nodeId) {
|
|
117
|
+
if (!this.byNode.delete(nodeId)) return false;
|
|
118
|
+
const kind = this.kind;
|
|
119
|
+
if (kind !== null) {
|
|
120
|
+
await kind.delete(nodeId);
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
123
|
+
await this.store.delete.mutate({
|
|
124
|
+
collection: AGENT_HTTPS_NAMES_COLLECTION,
|
|
125
|
+
key: nodeId
|
|
126
|
+
});
|
|
127
|
+
return true;
|
|
128
|
+
}
|
|
129
|
+
async record(nodeId, names) {
|
|
130
|
+
const lowered = names.map((n) => n.toLowerCase());
|
|
131
|
+
const existed = this.byNode.has(nodeId);
|
|
132
|
+
this.byNode.set(nodeId, lowered);
|
|
133
|
+
const issuedAt = Date.now();
|
|
134
|
+
const body = {
|
|
135
|
+
names: lowered,
|
|
136
|
+
issuedAt
|
|
137
|
+
};
|
|
138
|
+
const kind = this.kind;
|
|
139
|
+
if (kind !== null) {
|
|
140
|
+
const parsed = systemConfigRecordKinds["agent-https-names"].schema.safeParse(body);
|
|
141
|
+
if (!parsed.success) throw new Error(parsed.error.message);
|
|
142
|
+
await kind.put({
|
|
143
|
+
id: nodeId,
|
|
144
|
+
data: parsed.data
|
|
145
|
+
});
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
const data = {
|
|
149
|
+
names: lowered,
|
|
150
|
+
issuedAt
|
|
151
|
+
};
|
|
152
|
+
if (existed) await this.store.update.mutate({
|
|
153
|
+
collection: AGENT_HTTPS_NAMES_COLLECTION,
|
|
154
|
+
id: nodeId,
|
|
155
|
+
data
|
|
156
|
+
});
|
|
157
|
+
else await this.store.insert.mutate({
|
|
158
|
+
collection: AGENT_HTTPS_NAMES_COLLECTION,
|
|
159
|
+
record: {
|
|
160
|
+
id: nodeId,
|
|
161
|
+
data
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
var SLOT = Symbol.for("camstack.agent-https.names");
|
|
167
|
+
function setProcessAgentHttpsNames(names) {
|
|
168
|
+
if (names === null) Reflect.deleteProperty(globalThis, SLOT);
|
|
169
|
+
else Reflect.set(globalThis, SLOT, names);
|
|
170
|
+
}
|
|
171
|
+
function getProcessAgentHttpsNames() {
|
|
172
|
+
const value = Reflect.get(globalThis, SLOT);
|
|
173
|
+
return value !== null && typeof value === "object" && typeof Reflect.get(value, "takenByOthers") === "function" ? value : null;
|
|
174
|
+
}
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/tls/cert-name-constraints.ts
|
|
177
|
+
/**
|
|
178
|
+
* Name constraints of the hub's generated local CA (D873).
|
|
179
|
+
*
|
|
180
|
+
* An unconstrained private CA vouches for EVERY site on the internet to any
|
|
181
|
+
* device that trusts it, so a leaked CA key would let its holder impersonate
|
|
182
|
+
* a bank. The generated CA therefore carries a CRITICAL `nameConstraints`
|
|
183
|
+
* extension (RFC 5280 4.2.1.10) that limits what it can ever certify to the
|
|
184
|
+
* private address space and local-only names. A verifier that does not
|
|
185
|
+
* understand a critical extension must reject the certificate, so the
|
|
186
|
+
* constraint cannot be silently ignored by a conforming client.
|
|
187
|
+
*
|
|
188
|
+
* Pure: no filesystem, no clock. `cert-issue.ts` embeds the extension,
|
|
189
|
+
* `cert-manager.ts` filters leaf names through {@link permitsIdentity}.
|
|
190
|
+
*/
|
|
191
|
+
/** `id-ce-nameConstraints`. */
|
|
192
|
+
var NAME_CONSTRAINTS_OID = "2.5.29.30";
|
|
193
|
+
/** The address space the generated CA may certify. 100.64.0.0/10 is CGNAT, which Tailscale hands out. Loopback is for the hub's own `127.0.0.1` / `::1` SANs. */
|
|
194
|
+
var PERMITTED_IP_RANGES = [
|
|
195
|
+
"10.0.0.0/8",
|
|
196
|
+
"172.16.0.0/12",
|
|
197
|
+
"192.168.0.0/16",
|
|
198
|
+
"100.64.0.0/10",
|
|
199
|
+
"127.0.0.0/8",
|
|
200
|
+
"fc00::/7",
|
|
201
|
+
"::1/128"
|
|
202
|
+
];
|
|
203
|
+
/**
|
|
204
|
+
* Local-only DNS suffixes: none of them is delegated in public DNS. A leading
|
|
205
|
+
* dot permits every name under the suffix and not the suffix itself.
|
|
206
|
+
*/
|
|
207
|
+
var PERMITTED_DNS_SUFFIXES = [
|
|
208
|
+
".local",
|
|
209
|
+
".lan",
|
|
210
|
+
".home.arpa",
|
|
211
|
+
".internal",
|
|
212
|
+
".localdomain",
|
|
213
|
+
"localhost"
|
|
214
|
+
];
|
|
215
|
+
var LABEL_RE = /^(?!-)[a-z0-9-]{1,63}(?<!-)$/i;
|
|
216
|
+
/** A name that cannot collide with public DNS: a single label, or under a local-only suffix. */
|
|
217
|
+
function isLocalOnlyHostname(name) {
|
|
218
|
+
const lower = name.toLowerCase();
|
|
219
|
+
if (lower.length === 0 || lower.length > 253) return false;
|
|
220
|
+
if (!lower.includes(".")) return LABEL_RE.test(lower);
|
|
221
|
+
if (!PERMITTED_DNS_SUFFIXES.some((suffix) => suffix.startsWith(".") && lower.endsWith(suffix))) return false;
|
|
222
|
+
return lower.split(".").every((label) => LABEL_RE.test(label));
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* The constraint set for a new CA. `hostnames` are the hub's own local-only
|
|
226
|
+
* names at creation time (a single-label OS hostname has no suffix to hide
|
|
227
|
+
* under), added as exact entries; anything that could collide with public DNS
|
|
228
|
+
* is dropped here, never constrained in.
|
|
229
|
+
*/
|
|
230
|
+
function buildNameConstraintSet(hostnames) {
|
|
231
|
+
const dns = new Set(PERMITTED_DNS_SUFFIXES);
|
|
232
|
+
for (const name of hostnames) {
|
|
233
|
+
const lower = name.trim().toLowerCase();
|
|
234
|
+
if ((0, node_net.isIP)(lower) === 0 && isLocalOnlyHostname(lower)) dns.add(lower);
|
|
235
|
+
}
|
|
236
|
+
return {
|
|
237
|
+
ipRanges: PERMITTED_IP_RANGES,
|
|
238
|
+
dnsNames: [...dns],
|
|
239
|
+
critical: true
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
/** The `nameConstraints` extension for a CA: permitted subtrees only, marked critical. */
|
|
243
|
+
function createNameConstraintsExtension(set) {
|
|
244
|
+
const subtrees = [...set.ipRanges.map((range) => new require_x509_es.GeneralSubtree({ base: new require_x509_es.GeneralName({ iPAddress: range }) })), ...set.dnsNames.map((name) => new require_x509_es.GeneralSubtree({ base: new require_x509_es.GeneralName({ dNSName: name }) }))];
|
|
245
|
+
const value = require_x509_es.AsnConvert.serialize(new require_x509_es.NameConstraints({ permittedSubtrees: new require_x509_es.GeneralSubtrees(subtrees) }));
|
|
246
|
+
return new require_x509_es.Extension(NAME_CONSTRAINTS_OID, set.critical, value);
|
|
247
|
+
}
|
|
248
|
+
/** The CA's constraint set, or `null` when the certificate carries no `nameConstraints`. */
|
|
249
|
+
function readNameConstraints(cert) {
|
|
250
|
+
const ext = cert.extensions.find((e) => e.type === NAME_CONSTRAINTS_OID);
|
|
251
|
+
if (ext === void 0) return null;
|
|
252
|
+
const parsed = require_x509_es.AsnConvert.parse(ext.value, require_x509_es.NameConstraints);
|
|
253
|
+
const ipRanges = [];
|
|
254
|
+
const dnsNames = [];
|
|
255
|
+
for (const subtree of parsed.permittedSubtrees ?? []) {
|
|
256
|
+
if (subtree.base.iPAddress !== void 0) ipRanges.push(subtree.base.iPAddress);
|
|
257
|
+
if (subtree.base.dNSName !== void 0) dnsNames.push(subtree.base.dNSName.toLowerCase());
|
|
258
|
+
}
|
|
259
|
+
return {
|
|
260
|
+
ipRanges,
|
|
261
|
+
dnsNames,
|
|
262
|
+
critical: ext.critical
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* True when a CA is safe to keep as the hub's anchor: constrained to a
|
|
267
|
+
* non-empty permitted set AND marked critical. A non-critical constraint is
|
|
268
|
+
* ignored by clients that do not know the extension, which is the same as none.
|
|
269
|
+
*/
|
|
270
|
+
function isConstrainedCa(cert) {
|
|
271
|
+
const set = readNameConstraints(cert);
|
|
272
|
+
return set !== null && set.critical && (set.ipRanges.length > 0 || set.dnsNames.length > 0);
|
|
273
|
+
}
|
|
274
|
+
function ipv4ToBigInt(address) {
|
|
275
|
+
return address.split(".").reduce((acc, octet) => acc << 8n | BigInt(Number(octet)), 0n);
|
|
276
|
+
}
|
|
277
|
+
function ipv6ToBigInt(address) {
|
|
278
|
+
const mapped = /^(.*:)(\d+\.\d+\.\d+\.\d+)$/.exec(address);
|
|
279
|
+
let text = address;
|
|
280
|
+
if (mapped !== null) {
|
|
281
|
+
const v4 = ipv4ToBigInt(mapped[2] ?? "0.0.0.0");
|
|
282
|
+
text = `${mapped[1] ?? ""}${(v4 >> 16n & 65535n).toString(16)}:${(v4 & 65535n).toString(16)}`;
|
|
283
|
+
}
|
|
284
|
+
const halves = text.split("::");
|
|
285
|
+
if (halves.length > 2) return null;
|
|
286
|
+
const head = (halves[0] ?? "") === "" ? [] : (halves[0] ?? "").split(":");
|
|
287
|
+
const tail = halves.length === 2 && (halves[1] ?? "") !== "" ? (halves[1] ?? "").split(":") : [];
|
|
288
|
+
const fill = halves.length === 2 ? 8 - head.length - tail.length : 0;
|
|
289
|
+
if (fill < 0 || halves.length === 1 && head.length !== 8) return null;
|
|
290
|
+
return [
|
|
291
|
+
...head,
|
|
292
|
+
...Array(fill).fill("0"),
|
|
293
|
+
...tail
|
|
294
|
+
].reduce((acc, group) => acc << 16n | BigInt(Number.parseInt(group, 16)), 0n);
|
|
295
|
+
}
|
|
296
|
+
function toBigInt(address) {
|
|
297
|
+
const family = (0, node_net.isIP)(address);
|
|
298
|
+
if (family === 4) return {
|
|
299
|
+
value: ipv4ToBigInt(address),
|
|
300
|
+
bits: 32
|
|
301
|
+
};
|
|
302
|
+
if (family === 6) {
|
|
303
|
+
const value = ipv6ToBigInt(address);
|
|
304
|
+
return value === null ? null : {
|
|
305
|
+
value,
|
|
306
|
+
bits: 128
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
return null;
|
|
310
|
+
}
|
|
311
|
+
function ipInRange(address, range) {
|
|
312
|
+
const [base, prefixText] = range.split("/");
|
|
313
|
+
if (base === void 0 || prefixText === void 0) return false;
|
|
314
|
+
const target = toBigInt(address);
|
|
315
|
+
const net = toBigInt(base);
|
|
316
|
+
const prefix = Number(prefixText);
|
|
317
|
+
if (target === null || net === null || target.bits !== net.bits) return false;
|
|
318
|
+
if (!Number.isInteger(prefix) || prefix < 0 || prefix > net.bits) return false;
|
|
319
|
+
const shift = BigInt(net.bits - prefix);
|
|
320
|
+
return target.value >> shift === net.value >> shift;
|
|
321
|
+
}
|
|
322
|
+
/** RFC 5280 DNS matching: a leading dot is a strict subtree, a bare name is itself and everything under it. */
|
|
323
|
+
function dnsPermitted(name, constraint) {
|
|
324
|
+
const lower = name.toLowerCase();
|
|
325
|
+
if (constraint.startsWith(".")) return lower.endsWith(constraint);
|
|
326
|
+
return lower === constraint || lower.endsWith(`.${constraint}`);
|
|
327
|
+
}
|
|
328
|
+
/** Is this SAN value (an IP literal or a DNS name) inside the permitted set? */
|
|
329
|
+
function permitsName(set, value) {
|
|
330
|
+
if ((0, node_net.isIP)(value) !== 0) return set.ipRanges.some((range) => ipInRange(value, range));
|
|
331
|
+
return set.dnsNames.some((constraint) => dnsPermitted(value, constraint));
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* The part of an identity the CA is allowed to certify. A leaf naming
|
|
335
|
+
* anything outside the constraints makes the WHOLE chain fail validation in
|
|
336
|
+
* OpenSSL, so such names are dropped (and reported), never signed. The
|
|
337
|
+
* required lists shrink the same way: otherwise a name the CA cannot certify
|
|
338
|
+
* would count as a permanent SAN gap and reissue the leaf on every boot.
|
|
339
|
+
*/
|
|
340
|
+
function permitsIdentity(set, identity) {
|
|
341
|
+
const dropped = /* @__PURE__ */ new Set();
|
|
342
|
+
const keep = (values) => values.filter((value) => {
|
|
343
|
+
if (permitsName(set, value)) return true;
|
|
344
|
+
dropped.add(value);
|
|
345
|
+
return false;
|
|
346
|
+
});
|
|
347
|
+
return {
|
|
348
|
+
identity: {
|
|
349
|
+
dnsNames: keep(identity.dnsNames),
|
|
350
|
+
ipAddresses: keep(identity.ipAddresses),
|
|
351
|
+
requiredDnsNames: keep(identity.requiredDnsNames),
|
|
352
|
+
requiredIpAddresses: keep(identity.requiredIpAddresses)
|
|
353
|
+
},
|
|
354
|
+
dropped: [...dropped]
|
|
355
|
+
};
|
|
356
|
+
}
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region src/tls/cert-evaluation.ts
|
|
359
|
+
/**
|
|
360
|
+
* The regeneration rule (D227), as a pure function.
|
|
361
|
+
*
|
|
362
|
+
* `ensureTlsCert` reissues **only** when the material on disk cannot do
|
|
363
|
+
* its job. Never because it is old, never because the machine picked up
|
|
364
|
+
* an address the certificate does not need, never because a new build
|
|
365
|
+
* shipped. The decision is a function of (files on disk, machine
|
|
366
|
+
* identity, clock) alone, so the same inputs always produce the same
|
|
367
|
+
* answer — which is what makes a reissue happen once and then stop.
|
|
368
|
+
*/
|
|
369
|
+
/** OID `id-kp-serverAuth`. Apple's trustd requires it on the leaf. */
|
|
370
|
+
var SERVER_AUTH_OID = "1.3.6.1.5.5.7.3.1";
|
|
371
|
+
/**
|
|
372
|
+
* Apple's `SecPolicyCheckOtherTrustValidityPeriod` ceiling is 825 days;
|
|
373
|
+
* the CA/Browser Forum's recommended maximum is 397. We sit at 397.
|
|
374
|
+
*/
|
|
375
|
+
var MAX_LEAF_VALIDITY_DAYS = 397;
|
|
376
|
+
/** Reissue this long before the leaf dies, so nobody serves an expired one. */
|
|
377
|
+
var LEAF_RENEWAL_WINDOW_DAYS = 30;
|
|
378
|
+
/** A local root outlives many leaves — it is the anchor an operator trusts. */
|
|
379
|
+
var CA_VALIDITY_DAYS = 3650;
|
|
380
|
+
var MS_PER_DAY$1 = 864e5;
|
|
381
|
+
/** Reasons that invalidate the root as well as the leaf. */
|
|
382
|
+
var REASONS_REQUIRING_NEW_CA = [
|
|
383
|
+
"missing",
|
|
384
|
+
"unreadable",
|
|
385
|
+
"no-local-ca",
|
|
386
|
+
"ca-expiring",
|
|
387
|
+
"ca-unconstrained"
|
|
388
|
+
];
|
|
389
|
+
function reasonRequiresNewCa(reason) {
|
|
390
|
+
return REASONS_REQUIRING_NEW_CA.includes(reason);
|
|
391
|
+
}
|
|
392
|
+
function parse(pem) {
|
|
393
|
+
try {
|
|
394
|
+
return new node_crypto.X509Certificate(pem);
|
|
395
|
+
} catch {
|
|
396
|
+
return null;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
/** A root without a CRITICAL name constraint (every pre-D873 install) can vouch for any site. */
|
|
400
|
+
function caIsUnconstrained(caPem) {
|
|
401
|
+
try {
|
|
402
|
+
return !isConstrainedCa(new require_x509_es.X509Certificate(caPem));
|
|
403
|
+
} catch {
|
|
404
|
+
return true;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
function daysBetween(from, to) {
|
|
408
|
+
return (to.getTime() - from.getTime()) / MS_PER_DAY$1;
|
|
409
|
+
}
|
|
410
|
+
function hasServerAuthEku(leaf) {
|
|
411
|
+
const eku = leaf.keyUsage;
|
|
412
|
+
return eku !== void 0 && eku.length === 1 && eku[0] === "1.3.6.1.5.5.7.3.1";
|
|
413
|
+
}
|
|
414
|
+
function keyMatches(leaf, keyPem) {
|
|
415
|
+
try {
|
|
416
|
+
return leaf.checkPrivateKey((0, node_crypto.createPrivateKey)(keyPem));
|
|
417
|
+
} catch {
|
|
418
|
+
return false;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
function coversIdentity(leaf, identity) {
|
|
422
|
+
for (const name of identity.requiredDnsNames) if (leaf.checkHost(name) === void 0) return false;
|
|
423
|
+
for (const ip of identity.requiredIpAddresses) if (leaf.checkIP(ip) === void 0) return false;
|
|
424
|
+
return true;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* `null` when the material on disk is fit to keep serving.
|
|
428
|
+
*
|
|
429
|
+
* Order matters only for the quality of the reported reason; any
|
|
430
|
+
* non-null answer produces the same action.
|
|
431
|
+
*/
|
|
432
|
+
function evaluateExistingCert(input) {
|
|
433
|
+
const leaf = parse(input.chainPem);
|
|
434
|
+
const ca = parse(input.caPem);
|
|
435
|
+
if (leaf === null || ca === null) return "unreadable";
|
|
436
|
+
if (daysBetween(input.now, new Date(ca.validTo)) < 427) return "ca-expiring";
|
|
437
|
+
if (caIsUnconstrained(input.caPem)) return "ca-unconstrained";
|
|
438
|
+
if (!keyMatches(leaf, input.keyPem)) return "key-mismatch";
|
|
439
|
+
if (daysBetween(input.now, new Date(leaf.validTo)) < 30) return "expiring";
|
|
440
|
+
if (!hasServerAuthEku(leaf)) return "missing-server-auth-eku";
|
|
441
|
+
if (leaf.ca || !leaf.checkIssued(ca) || !leaf.verify(ca.publicKey)) return "not-issued-by-local-ca";
|
|
442
|
+
if (daysBetween(new Date(leaf.validFrom), new Date(leaf.validTo)) > 398) return "validity-too-long";
|
|
443
|
+
if (!coversIdentity(leaf, input.identity)) return "san-coverage-gap";
|
|
444
|
+
return null;
|
|
445
|
+
}
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region src/tls/cert-identity.ts
|
|
448
|
+
/**
|
|
449
|
+
* What names and addresses the hub's certificate has to answer for.
|
|
450
|
+
*
|
|
451
|
+
* Split out of `cert-manager.ts` because it is pure and because the
|
|
452
|
+
* regeneration rule (D227) is decided entirely by the difference between
|
|
453
|
+
* *this* and what the certificate on disk already carries.
|
|
454
|
+
*/
|
|
455
|
+
/** The real machine. The only place in `tls/` that touches `os`. */
|
|
456
|
+
function systemHostFacts() {
|
|
457
|
+
return {
|
|
458
|
+
hostname: node_os.hostname(),
|
|
459
|
+
networkInterfaces: node_os.networkInterfaces()
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Interfaces whose addresses are certified but never gate a reissue:
|
|
464
|
+
* container bridges, VPN tunnels and mesh overlays hand out addresses
|
|
465
|
+
* that change without the hub moving.
|
|
466
|
+
*/
|
|
467
|
+
var VOLATILE_INTERFACE_PREFIXES = [
|
|
468
|
+
"docker",
|
|
469
|
+
"br-",
|
|
470
|
+
"veth",
|
|
471
|
+
"virbr",
|
|
472
|
+
"cni",
|
|
473
|
+
"flannel",
|
|
474
|
+
"tun",
|
|
475
|
+
"utun",
|
|
476
|
+
"tap",
|
|
477
|
+
"wg",
|
|
478
|
+
"zt",
|
|
479
|
+
"tailscale",
|
|
480
|
+
"ppp",
|
|
481
|
+
"awdl",
|
|
482
|
+
"llw"
|
|
483
|
+
];
|
|
484
|
+
/** A DNS name we are willing to put in a SAN. */
|
|
485
|
+
var DNS_NAME_PATTERN = /^[A-Za-z0-9]([A-Za-z0-9._-]*[A-Za-z0-9])?$/;
|
|
486
|
+
function isIpv4(value) {
|
|
487
|
+
return (0, node_net.isIP)(value) === 4;
|
|
488
|
+
}
|
|
489
|
+
function isIpv6(value) {
|
|
490
|
+
return (0, node_net.isIP)(value) === 6;
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* `fe80::/10` and `169.254.0.0/16`. An IPv6 link-local address needs a
|
|
494
|
+
* zone index to be usable and a SAN cannot carry one, so such an entry
|
|
495
|
+
* can never match anything — it is noise that makes the certificate look
|
|
496
|
+
* broader than it is.
|
|
497
|
+
*/
|
|
498
|
+
function isLinkLocal(value) {
|
|
499
|
+
if (isIpv4(value)) return value.startsWith("169.254.");
|
|
500
|
+
if (!isIpv6(value)) return false;
|
|
501
|
+
const firstGroup = value.split(":")[0] ?? "";
|
|
502
|
+
if (firstGroup === "") return false;
|
|
503
|
+
const parsed = Number.parseInt(firstGroup, 16);
|
|
504
|
+
return Number.isFinite(parsed) && (parsed & 65472) === 65152;
|
|
505
|
+
}
|
|
506
|
+
function isVolatileInterface(name) {
|
|
507
|
+
const lower = name.toLowerCase();
|
|
508
|
+
return VOLATILE_INTERFACE_PREFIXES.some((prefix) => lower.startsWith(prefix));
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Only IPv4 gates a reissue. Every IPv6 address we see — global **or**
|
|
512
|
+
* ULA — is certified but never required: `os` cannot tell a temporary
|
|
513
|
+
* address from a permanent one, and the live hub's ULA interface-id
|
|
514
|
+
* rotated on every restart (eight leaf reissues in one day under
|
|
515
|
+
* `san-coverage-gap`). Gating on ULA reproduced the churn D227 exists
|
|
516
|
+
* to prevent. Operators who need a fixed IPv6 declare it via `extraSans`.
|
|
517
|
+
*/
|
|
518
|
+
function isStableGateAddress(address) {
|
|
519
|
+
if (isLinkLocal(address)) return false;
|
|
520
|
+
return isIpv4(address);
|
|
521
|
+
}
|
|
522
|
+
function addSan(dns, ips, value) {
|
|
523
|
+
const trimmed = value.trim();
|
|
524
|
+
if (trimmed === "") return;
|
|
525
|
+
if ((0, node_net.isIP)(trimmed) !== 0) {
|
|
526
|
+
if (!isLinkLocal(trimmed)) ips.add(trimmed);
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
if (DNS_NAME_PATTERN.test(trimmed)) dns.add(trimmed);
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Snapshot the machine's identity. Called once per `ensureTlsCert`; the
|
|
533
|
+
* result is both the SAN list for a new leaf and the yardstick the
|
|
534
|
+
* existing leaf is measured against.
|
|
535
|
+
*/
|
|
536
|
+
function collectCertIdentity(options) {
|
|
537
|
+
const host = options.hostFacts ?? systemHostFacts();
|
|
538
|
+
const dnsNames = /* @__PURE__ */ new Set();
|
|
539
|
+
const ipAddresses = new Set(["127.0.0.1", "::1"]);
|
|
540
|
+
const requiredDnsNames = /* @__PURE__ */ new Set();
|
|
541
|
+
const requiredIpAddresses = new Set(["127.0.0.1"]);
|
|
542
|
+
for (const name of [
|
|
543
|
+
"localhost",
|
|
544
|
+
options.commonName,
|
|
545
|
+
host.hostname
|
|
546
|
+
]) {
|
|
547
|
+
addSan(dnsNames, ipAddresses, name);
|
|
548
|
+
addSan(requiredDnsNames, requiredIpAddresses, name);
|
|
549
|
+
}
|
|
550
|
+
for (const [ifaceName, addrs] of Object.entries(host.networkInterfaces)) for (const addr of addrs ?? []) {
|
|
551
|
+
if (addr.internal) continue;
|
|
552
|
+
if (isLinkLocal(addr.address)) continue;
|
|
553
|
+
ipAddresses.add(addr.address);
|
|
554
|
+
if (isVolatileInterface(ifaceName)) continue;
|
|
555
|
+
if (isStableGateAddress(addr.address)) requiredIpAddresses.add(addr.address);
|
|
556
|
+
}
|
|
557
|
+
for (const san of options.extraSans) {
|
|
558
|
+
addSan(dnsNames, ipAddresses, san);
|
|
559
|
+
addSan(requiredDnsNames, requiredIpAddresses, san);
|
|
560
|
+
}
|
|
561
|
+
return {
|
|
562
|
+
dnsNames: [...dnsNames],
|
|
563
|
+
ipAddresses: [...ipAddresses],
|
|
564
|
+
requiredDnsNames: [...requiredDnsNames],
|
|
565
|
+
requiredIpAddresses: [...requiredIpAddresses]
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
//#endregion
|
|
569
|
+
//#region src/tls/cert-issue.ts
|
|
570
|
+
/**
|
|
571
|
+
* Certificate issuance. Isolated so `cert-manager.ts` reads as policy and
|
|
572
|
+
* this file reads as mechanics.
|
|
573
|
+
*
|
|
574
|
+
* **In-process, by decision (D551).** This used to shell out to `openssl`
|
|
575
|
+
* three times. The hub's own TLS identity is not allowed to be a function
|
|
576
|
+
* of which openssl happens to sit on the host: this fleet alone runs four
|
|
577
|
+
* of them, and one — Ubuntu 20.04's 1.1.1f — silently ADDED the ambient
|
|
578
|
+
* `/etc/ssl/openssl.cnf` `[req] x509_extensions = v3_ca` block on top of
|
|
579
|
+
* our `-addext` flags, producing a root with two `basicConstraints` and
|
|
580
|
+
* two `subjectKeyIdentifier` extensions. RFC 5280 §4.2 allows each at
|
|
581
|
+
* most once, so OpenSSL 3 (which is what `node:crypto` is) marked that
|
|
582
|
+
* root invalid: `X509Certificate.ca` read `false` on our own CA and
|
|
583
|
+
* `checkIssued()` refused the pair. Under D227 that means "not issued by
|
|
584
|
+
* the local CA", i.e. rotate the root — on every boot, forever, voiding
|
|
585
|
+
* every trust an operator had granted by hand.
|
|
586
|
+
*
|
|
587
|
+
* Keys come from WebCrypto (`node:crypto`'s own implementation) and the
|
|
588
|
+
* DER is assembled by `@peculiar/x509`. Nothing here reads the host.
|
|
589
|
+
*/
|
|
590
|
+
require_x509_es.cryptoProvider.set(node_crypto.webcrypto);
|
|
591
|
+
/** Subject of the local root. Distinct from the leaf's CN by construction. */
|
|
592
|
+
var CA_COMMON_NAME = "CamStack Local CA";
|
|
593
|
+
/** Between {@link CA_COMMON_NAME} and the hub's name in a new root's subject. */
|
|
594
|
+
var CA_HUB_NAME_SEPARATOR = " — ";
|
|
595
|
+
/** X.520 `ub-common-name`: the most characters a CN may carry. */
|
|
596
|
+
var X509_COMMON_NAME_MAX_LENGTH = 64;
|
|
597
|
+
/** C0 controls, DEL and the C1 range. */
|
|
598
|
+
function isControlCodePoint(code) {
|
|
599
|
+
return code <= 31 || code >= 127 && code <= 159;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* The subject CN of a NEW local root: `CamStack Local CA — <hub name>`, so two hubs'
|
|
603
|
+
* roots installed on one phone can be told apart in its settings. The name is
|
|
604
|
+
* sanitised for a CN (controls removed, whitespace collapsed) and cut so the whole
|
|
605
|
+
* CN stays within 64 characters. An absent or unusable name, or one that is just
|
|
606
|
+
* the product's own name, yields the plain {@link CA_COMMON_NAME}.
|
|
607
|
+
*
|
|
608
|
+
* Only a root being CREATED is named: an existing root is never reissued to rename
|
|
609
|
+
* it, since every device that trusts it would have to install it again.
|
|
610
|
+
*/
|
|
611
|
+
function localCaCommonName(hubName) {
|
|
612
|
+
if (hubName === void 0) return CA_COMMON_NAME;
|
|
613
|
+
const cleaned = [...hubName].map((char) => isControlCodePoint(char.codePointAt(0) ?? 0) ? " " : char).join("").replace(/\s+/gu, " ").trim();
|
|
614
|
+
if (cleaned === "" || cleaned.toLowerCase() === "camstack") return CA_COMMON_NAME;
|
|
615
|
+
const room = X509_COMMON_NAME_MAX_LENGTH - 17 - 3;
|
|
616
|
+
return `${CA_COMMON_NAME}${CA_HUB_NAME_SEPARATOR}${[...cleaned].slice(0, room).join("").trimEnd()}`;
|
|
617
|
+
}
|
|
618
|
+
var MS_PER_DAY = 864e5;
|
|
619
|
+
/**
|
|
620
|
+
* Expiry of a served leaf. Browsers cap the TOTAL span (notBefore to notAfter) at 397 days, so
|
|
621
|
+
* the span is `validDays` counted from the backdated start: the backdate costs five minutes of
|
|
622
|
+
* expiry here, never extra span.
|
|
623
|
+
*/
|
|
624
|
+
function leafNotAfter(now, validDays) {
|
|
625
|
+
return new Date(require_x509_es.backdatedNotBefore(now).getTime() + validDays * MS_PER_DAY);
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* RSA-2048 / SHA-256. Unchanged from the openssl invocation this replaces:
|
|
629
|
+
* every client that trusted the previous material still understands this.
|
|
630
|
+
*/
|
|
631
|
+
var SIGNING_ALGORITHM = {
|
|
632
|
+
name: "RSASSA-PKCS1-v1_5",
|
|
633
|
+
hash: "SHA-256",
|
|
634
|
+
publicExponent: new Uint8Array([
|
|
635
|
+
1,
|
|
636
|
+
0,
|
|
637
|
+
1
|
|
638
|
+
]),
|
|
639
|
+
modulusLength: 2048
|
|
640
|
+
};
|
|
641
|
+
/**
|
|
642
|
+
* A serial number that is positive and unpredictable. `00` prefix for the
|
|
643
|
+
* same reason the openssl invocation carried one: a leading bit of 1 would
|
|
644
|
+
* make the DER INTEGER negative.
|
|
645
|
+
*/
|
|
646
|
+
function freshSerial() {
|
|
647
|
+
return `00${(0, node_crypto.randomBytes)(16).toString("hex")}`;
|
|
648
|
+
}
|
|
649
|
+
function toPkcs8Pem(pkcs8) {
|
|
650
|
+
return `${require_x509_es.PemConverter.encode(pkcs8, "PRIVATE KEY")}\n`;
|
|
651
|
+
}
|
|
652
|
+
function toCertPem(cert) {
|
|
653
|
+
return `${cert.toString("pem")}\n`;
|
|
654
|
+
}
|
|
655
|
+
async function exportKeyPem(key) {
|
|
656
|
+
return toPkcs8Pem(await node_crypto.webcrypto.subtle.exportKey("pkcs8", key));
|
|
657
|
+
}
|
|
658
|
+
/** SAN entries, in the order `cert-identity` produced them. */
|
|
659
|
+
function subjectAltNames(identity) {
|
|
660
|
+
const names = [];
|
|
661
|
+
for (const dns of identity.dnsNames) names.push({
|
|
662
|
+
type: "dns",
|
|
663
|
+
value: dns
|
|
664
|
+
});
|
|
665
|
+
for (const ip of identity.ipAddresses) if ((0, node_net.isIP)(ip) !== 0) names.push({
|
|
666
|
+
type: "ip",
|
|
667
|
+
value: ip
|
|
668
|
+
});
|
|
669
|
+
return names;
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* A local root: 10 years, `pathlen:0` so it can sign leaves and nothing
|
|
673
|
+
* else, and **no EKU** — Apple rejects an anchor asserting
|
|
674
|
+
* `anyExtendedKeyUsage`, and a root with no EKU constrains nothing.
|
|
675
|
+
*
|
|
676
|
+
* It carries a CRITICAL `nameConstraints` extension (D873): private address
|
|
677
|
+
* ranges and local-only DNS names, plus `hostnames` (the hub's own single-label
|
|
678
|
+
* names at creation). A leaked key therefore cannot vouch for a public site.
|
|
679
|
+
*
|
|
680
|
+
* `commonName` is the subject CN, from {@link localCaCommonName}.
|
|
681
|
+
*/
|
|
682
|
+
async function generateCa(now, hostnames = [], commonName = CA_COMMON_NAME) {
|
|
683
|
+
const keys = await node_crypto.webcrypto.subtle.generateKey(SIGNING_ALGORITHM, true, ["sign", "verify"]);
|
|
684
|
+
const extensions = [
|
|
685
|
+
new require_x509_es.BasicConstraintsExtension(true, 0, true),
|
|
686
|
+
new require_x509_es.KeyUsagesExtension(require_x509_es.KeyUsageFlags.keyCertSign | require_x509_es.KeyUsageFlags.cRLSign, true),
|
|
687
|
+
await require_x509_es.SubjectKeyIdentifierExtension.create(keys.publicKey),
|
|
688
|
+
createNameConstraintsExtension(buildNameConstraintSet(hostnames))
|
|
689
|
+
];
|
|
690
|
+
const cert = await require_x509_es.withUtcTimeEncoding(() => require_x509_es.X509CertificateGenerator.createSelfSigned({
|
|
691
|
+
serialNumber: freshSerial(),
|
|
692
|
+
name: [{ CN: [commonName] }],
|
|
693
|
+
notBefore: require_x509_es.backdatedNotBefore(now),
|
|
694
|
+
notAfter: new Date(now.getTime() + CA_VALIDITY_DAYS * MS_PER_DAY),
|
|
695
|
+
keys,
|
|
696
|
+
signingAlgorithm: SIGNING_ALGORITHM,
|
|
697
|
+
extensions
|
|
698
|
+
}));
|
|
699
|
+
return {
|
|
700
|
+
certPem: toCertPem(cert),
|
|
701
|
+
keyPem: await exportKeyPem(keys.privateKey),
|
|
702
|
+
cert,
|
|
703
|
+
privateKey: keys.privateKey
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
/** Re-open a root already on disk so a leaf can be issued under it. */
|
|
707
|
+
async function loadCa(certPem, keyPem) {
|
|
708
|
+
return {
|
|
709
|
+
certPem,
|
|
710
|
+
keyPem,
|
|
711
|
+
cert: new require_x509_es.X509Certificate(certPem),
|
|
712
|
+
privateKey: await node_crypto.webcrypto.subtle.importKey("pkcs8", require_x509_es.PemConverter.decodeFirst(keyPem), SIGNING_ALGORITHM, true, ["sign"])
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* A server leaf signed by the local root: `CA:FALSE`, and
|
|
717
|
+
* `extendedKeyUsage=serverAuth` — not `anyExtendedKeyUsage`, which
|
|
718
|
+
* Apple's `testAppTrustRoot_AnyEKU_AfterJul2019` asserts must fail.
|
|
719
|
+
*/
|
|
720
|
+
async function issueLeaf(ca, identity, commonName, validDays, now) {
|
|
721
|
+
const keys = await node_crypto.webcrypto.subtle.generateKey(SIGNING_ALGORITHM, true, ["sign", "verify"]);
|
|
722
|
+
const extensions = [
|
|
723
|
+
new require_x509_es.BasicConstraintsExtension(false, void 0, true),
|
|
724
|
+
new require_x509_es.KeyUsagesExtension(require_x509_es.KeyUsageFlags.digitalSignature | require_x509_es.KeyUsageFlags.keyEncipherment, true),
|
|
725
|
+
new require_x509_es.ExtendedKeyUsageExtension([SERVER_AUTH_OID]),
|
|
726
|
+
await require_x509_es.SubjectKeyIdentifierExtension.create(keys.publicKey),
|
|
727
|
+
await require_x509_es.AuthorityKeyIdentifierExtension.create(ca.cert),
|
|
728
|
+
new require_x509_es.SubjectAlternativeNameExtension(subjectAltNames(identity))
|
|
729
|
+
];
|
|
730
|
+
return {
|
|
731
|
+
certPem: toCertPem(await require_x509_es.withUtcTimeEncoding(() => require_x509_es.X509CertificateGenerator.create({
|
|
732
|
+
serialNumber: freshSerial(),
|
|
733
|
+
subject: `CN=${commonName}`,
|
|
734
|
+
issuer: ca.cert.subject,
|
|
735
|
+
notBefore: require_x509_es.backdatedNotBefore(now),
|
|
736
|
+
notAfter: leafNotAfter(now, validDays),
|
|
737
|
+
publicKey: keys.publicKey,
|
|
738
|
+
signingKey: ca.privateKey,
|
|
739
|
+
signingAlgorithm: SIGNING_ALGORITHM,
|
|
740
|
+
extensions
|
|
741
|
+
}))),
|
|
742
|
+
keyPem: await exportKeyPem(keys.privateKey)
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* A server leaf for a key pair the CALLER holds (D856): an agent sends a CSR, the
|
|
747
|
+
* hub signs its public key under the local root. Same extensions as
|
|
748
|
+
* {@link issueLeaf} - `CA:FALSE`, serverAuth only - so a device that trusts the
|
|
749
|
+
* hub root trusts the agent. The private key never exists on the hub.
|
|
750
|
+
*/
|
|
751
|
+
async function issueLeafFromCsr(ca, csrPem, identity, commonName, validDays, now) {
|
|
752
|
+
const csr = new require_x509_es.Pkcs10CertificateRequest(csrPem);
|
|
753
|
+
if (!await csr.verify(node_crypto.webcrypto)) throw new Error("CSR signature is invalid");
|
|
754
|
+
const extensions = [
|
|
755
|
+
new require_x509_es.BasicConstraintsExtension(false, void 0, true),
|
|
756
|
+
new require_x509_es.KeyUsagesExtension(require_x509_es.KeyUsageFlags.digitalSignature | require_x509_es.KeyUsageFlags.keyEncipherment, true),
|
|
757
|
+
new require_x509_es.ExtendedKeyUsageExtension([SERVER_AUTH_OID]),
|
|
758
|
+
await require_x509_es.SubjectKeyIdentifierExtension.create(csr.publicKey),
|
|
759
|
+
await require_x509_es.AuthorityKeyIdentifierExtension.create(ca.cert),
|
|
760
|
+
new require_x509_es.SubjectAlternativeNameExtension(subjectAltNames(identity))
|
|
761
|
+
];
|
|
762
|
+
return toCertPem(await require_x509_es.withUtcTimeEncoding(() => require_x509_es.X509CertificateGenerator.create({
|
|
763
|
+
serialNumber: freshSerial(),
|
|
764
|
+
subject: `CN=${commonName}`,
|
|
765
|
+
issuer: ca.cert.subject,
|
|
766
|
+
notBefore: require_x509_es.backdatedNotBefore(now),
|
|
767
|
+
notAfter: leafNotAfter(now, validDays),
|
|
768
|
+
publicKey: csr.publicKey,
|
|
769
|
+
signingKey: ca.privateKey,
|
|
770
|
+
signingAlgorithm: SIGNING_ALGORITHM,
|
|
771
|
+
extensions
|
|
772
|
+
})));
|
|
773
|
+
}
|
|
774
|
+
//#endregion
|
|
775
|
+
//#region src/tls/agent-https.ts
|
|
776
|
+
/**
|
|
777
|
+
* HTTPS for agents (D856): a leaf from the hub's LOCAL CA, so a device that
|
|
778
|
+
* trusts the hub root trusts the agents too.
|
|
779
|
+
*
|
|
780
|
+
* The agent generates its key and a CSR; the hub signs only the PUBLIC key under
|
|
781
|
+
* the local CA and returns the certificate - no private key ever crosses the mesh.
|
|
782
|
+
* The agent keeps ONE file, `tls/agent-https.json` (0600: key + leaf + the pinned CA),
|
|
783
|
+
* written atomically (temp file + rename) so a crash can never leave a key that does
|
|
784
|
+
* not match its certificate. It persists no database.
|
|
785
|
+
*
|
|
786
|
+
* What the hub is willing to certify (the smaller safe option). The local CA is trusted
|
|
787
|
+
* by every device that trusts the hub, so a compromised agent must not obtain a name it
|
|
788
|
+
* does not own. The hub signs ONLY what it knows by itself:
|
|
789
|
+
* - the agent's node id (unique in the cluster), when it is a local-only name;
|
|
790
|
+
* - the remote address of the agent's LIVE mesh socket as the hub sees it, when it is
|
|
791
|
+
* a private address - never an address the agent reports.
|
|
792
|
+
* Anything the agent reports (host names, interface addresses) is DROPPED and logged:
|
|
793
|
+
* extra self-reported names would need an explicit operator approval flow, which does
|
|
794
|
+
* not exist, so they are not certified. A name the hub's own certificate holds, or one
|
|
795
|
+
* already certified to another node, is never signed (a NAT'd pair of agents would
|
|
796
|
+
* otherwise share an address).
|
|
797
|
+
*/
|
|
798
|
+
require_x509_es.cryptoProvider.set(node_crypto.webcrypto);
|
|
799
|
+
function agentHttpsPaths(dataDir) {
|
|
800
|
+
const dir = (0, node_path.join)(dataDir, "tls");
|
|
801
|
+
return {
|
|
802
|
+
dir,
|
|
803
|
+
bundlePath: (0, node_path.join)(dir, "agent-https.json"),
|
|
804
|
+
certPath: (0, node_path.join)(dir, "agent.crt"),
|
|
805
|
+
pendingKeyPath: (0, node_path.join)(dir, "agent.key.pending")
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* The material on disk, or `null` while no hub-issued leaf is installed. A bundle that
|
|
810
|
+
* cannot be parsed is reported through `onCorrupt` and treated as absent: a bad file must
|
|
811
|
+
* never take the agent API down.
|
|
812
|
+
*/
|
|
813
|
+
function loadAgentHttps(dataDir, onCorrupt) {
|
|
814
|
+
const { bundlePath } = agentHttpsPaths(dataDir);
|
|
815
|
+
if (!(0, node_fs.existsSync)(bundlePath)) return null;
|
|
816
|
+
try {
|
|
817
|
+
const parsed = JSON.parse((0, node_fs.readFileSync)(bundlePath, "utf8"));
|
|
818
|
+
const field = (name) => {
|
|
819
|
+
const v = parsed !== null && typeof parsed === "object" ? Reflect.get(parsed, name) : null;
|
|
820
|
+
return typeof v === "string" && v.length > 0 ? v : null;
|
|
821
|
+
};
|
|
822
|
+
const keyPem = field("keyPem");
|
|
823
|
+
const certPem = field("certPem");
|
|
824
|
+
const caCertPem = field("caCertPem");
|
|
825
|
+
if (keyPem === null || certPem === null || caCertPem === null) {
|
|
826
|
+
onCorrupt?.("the bundle is missing a field");
|
|
827
|
+
return null;
|
|
828
|
+
}
|
|
829
|
+
if (!new node_crypto.X509Certificate(certPem).checkPrivateKey((0, node_crypto.createPrivateKey)(keyPem))) {
|
|
830
|
+
onCorrupt?.("the certificate does not match the key");
|
|
831
|
+
return null;
|
|
832
|
+
}
|
|
833
|
+
return {
|
|
834
|
+
keyPem,
|
|
835
|
+
certPem,
|
|
836
|
+
caCertPem
|
|
837
|
+
};
|
|
838
|
+
} catch (error) {
|
|
839
|
+
onCorrupt?.(error instanceof Error ? error.message : String(error));
|
|
840
|
+
return null;
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
function collectAgentNames(nodeId, hostFacts) {
|
|
844
|
+
const identity = collectCertIdentity({
|
|
845
|
+
commonName: nodeId,
|
|
846
|
+
extraSans: [],
|
|
847
|
+
hostFacts
|
|
848
|
+
});
|
|
849
|
+
return {
|
|
850
|
+
hostnames: identity.dnsNames,
|
|
851
|
+
addresses: identity.ipAddresses
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
/** SHA-256 of the hub local CA this agent pinned, or `null` while none is. */
|
|
855
|
+
function pinnedHttpsCaFingerprint(dataDir) {
|
|
856
|
+
const material = loadAgentHttps(dataDir);
|
|
857
|
+
return material === null ? null : new node_crypto.X509Certificate(material.caCertPem).fingerprint256;
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* A fresh key pair (EC P-256, kept in `agent.key.pending`, 0600) and its CSR. The
|
|
861
|
+
* key becomes `agent.key` only when the matching certificate is installed, so a
|
|
862
|
+
* request that is never answered changes nothing that is being served.
|
|
863
|
+
*/
|
|
864
|
+
async function createAgentHttpsRequest(dataDir, nodeId, names) {
|
|
865
|
+
const paths = agentHttpsPaths(dataDir);
|
|
866
|
+
(0, node_fs.mkdirSync)(paths.dir, { recursive: true });
|
|
867
|
+
const keys = await node_crypto.webcrypto.subtle.generateKey({
|
|
868
|
+
name: "ECDSA",
|
|
869
|
+
namedCurve: "P-256"
|
|
870
|
+
}, true, ["sign", "verify"]);
|
|
871
|
+
const csr = await require_x509_es.Pkcs10CertificateRequestGenerator.create({
|
|
872
|
+
name: `CN=${nodeId}`,
|
|
873
|
+
keys,
|
|
874
|
+
signingAlgorithm: {
|
|
875
|
+
name: "ECDSA",
|
|
876
|
+
hash: "SHA-256"
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
const pkcs8 = await node_crypto.webcrypto.subtle.exportKey("pkcs8", keys.privateKey);
|
|
880
|
+
(0, _camstack_types_node.writeOwnerOnlyFileSync)(paths.pendingKeyPath, `${require_x509_es.PemConverter.encode(pkcs8, "PRIVATE KEY")}\n`);
|
|
881
|
+
return {
|
|
882
|
+
csrPem: `${csr.toString("pem")}\n`,
|
|
883
|
+
...names
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
var AgentHttpsInstallError = class extends Error {
|
|
887
|
+
constructor(message) {
|
|
888
|
+
super(message);
|
|
889
|
+
this.name = "AgentHttpsInstallError";
|
|
890
|
+
}
|
|
891
|
+
};
|
|
892
|
+
/**
|
|
893
|
+
* Install the hub-signed leaf for the pending key. Refused when it is not for that key, when
|
|
894
|
+
* it is not signed by the CA it came with, or - once a CA is pinned - when that CA is not the
|
|
895
|
+
* one this agent already pinned (the CA that arrives with a later leaf is never trusted on its
|
|
896
|
+
* own say: the first one came over the authenticated mesh, every later leaf must chain to it).
|
|
897
|
+
* Key, leaf and CA are written as ONE file, atomically.
|
|
898
|
+
*/
|
|
899
|
+
function installAgentHttps(dataDir, input) {
|
|
900
|
+
const paths = agentHttpsPaths(dataDir);
|
|
901
|
+
if (!(0, node_fs.existsSync)(paths.pendingKeyPath)) throw new AgentHttpsInstallError("no pending key: prepareHttpsCertificate was not called");
|
|
902
|
+
const keyPem = (0, node_fs.readFileSync)(paths.pendingKeyPath, "utf8");
|
|
903
|
+
let leaf;
|
|
904
|
+
let ca;
|
|
905
|
+
try {
|
|
906
|
+
leaf = new node_crypto.X509Certificate(input.certPem);
|
|
907
|
+
ca = new node_crypto.X509Certificate(input.caCertPem);
|
|
908
|
+
} catch {
|
|
909
|
+
throw new AgentHttpsInstallError("the certificate or the CA is not a valid PEM certificate");
|
|
910
|
+
}
|
|
911
|
+
if (!leaf.checkPrivateKey((0, node_crypto.createPrivateKey)(keyPem))) throw new AgentHttpsInstallError("the certificate is not for this node's pending key");
|
|
912
|
+
const pinned = loadAgentHttps(dataDir);
|
|
913
|
+
if (pinned !== null && input.caRotation !== true) {
|
|
914
|
+
const pinnedCa = new node_crypto.X509Certificate(pinned.caCertPem);
|
|
915
|
+
if (pinnedCa.fingerprint256 !== ca.fingerprint256 || !leaf.verify(pinnedCa.publicKey)) throw new AgentHttpsInstallError("the leaf does not chain to the hub local CA this agent pinned at its first install (if the hub rotated its local CA, renew HTTPS from the hub - it signals the rotation)");
|
|
916
|
+
}
|
|
917
|
+
if (!leaf.verify(ca.publicKey)) throw new AgentHttpsInstallError("the certificate is not signed by the CA that came with it");
|
|
918
|
+
if (new Date(leaf.validTo).getTime() <= Date.now()) throw new AgentHttpsInstallError("the certificate is already expired");
|
|
919
|
+
(0, node_fs.mkdirSync)(paths.dir, { recursive: true });
|
|
920
|
+
(0, _camstack_types_node.writeOwnerOnlyFileSync)(paths.bundlePath, JSON.stringify({
|
|
921
|
+
keyPem,
|
|
922
|
+
certPem: input.certPem,
|
|
923
|
+
caCertPem: input.caCertPem
|
|
924
|
+
}));
|
|
925
|
+
writeFileAtomic(paths.certPath, input.certPem.endsWith("\n") ? input.certPem : `${input.certPem}\n`);
|
|
926
|
+
return {
|
|
927
|
+
keyPem,
|
|
928
|
+
certPem: input.certPem,
|
|
929
|
+
caCertPem: input.caCertPem
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
function writeFileAtomic(path, content) {
|
|
933
|
+
const tmp = `${path}.tmp`;
|
|
934
|
+
(0, node_fs.writeFileSync)(tmp, content);
|
|
935
|
+
(0, node_fs.renameSync)(tmp, path);
|
|
936
|
+
}
|
|
937
|
+
/** Fingerprint, issuer, SANs and validity of a served leaf. */
|
|
938
|
+
function describeHttpsLeaf(certPem) {
|
|
939
|
+
const x509 = new node_crypto.X509Certificate(certPem);
|
|
940
|
+
return {
|
|
941
|
+
fingerprintSha256: x509.fingerprint256,
|
|
942
|
+
issuer: x509.issuer.replaceAll("\n", ", "),
|
|
943
|
+
sans: (x509.subjectAltName ?? "").split(",").map((s) => s.trim()).filter((s) => s.length > 0),
|
|
944
|
+
notBefore: Date.parse(x509.validFrom),
|
|
945
|
+
notAfter: Date.parse(x509.validTo)
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
/** Private-network IPv4/IPv6: RFC 1918, CGNAT (Tailscale), link-local, ULA. */
|
|
949
|
+
function isPrivateAddress(address) {
|
|
950
|
+
const family = (0, node_net.isIP)(address);
|
|
951
|
+
if (family === 4) {
|
|
952
|
+
const [a, b] = address.split(".").map(Number);
|
|
953
|
+
return a === 10 || a === 172 && b >= 16 && b <= 31 || a === 192 && b === 168 || a === 100 && b >= 64 && b <= 127 || a === 169 && b === 254;
|
|
954
|
+
}
|
|
955
|
+
if (family === 6) {
|
|
956
|
+
const lower = address.toLowerCase();
|
|
957
|
+
return lower.startsWith("fc") || lower.startsWith("fd") || lower.startsWith("fe80:");
|
|
958
|
+
}
|
|
959
|
+
return false;
|
|
960
|
+
}
|
|
961
|
+
/** The default docker bridge network (172.17.0.0/16): identical on every host, so it names nothing. */
|
|
962
|
+
function isContainerBridgeAddress(address) {
|
|
963
|
+
return /^172\.17\.\d{1,3}\.\d{1,3}$/.test(address);
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* The names the hub will sign for `nodeId`: its node id and the address of its live mesh
|
|
967
|
+
* socket - nothing the agent says about itself. `excluded` holds every name already taken
|
|
968
|
+
* (the hub's own certificate, other nodes' leaves); `reported` is what the agent claimed,
|
|
969
|
+
* listed only so it can be logged as dropped.
|
|
970
|
+
*/
|
|
971
|
+
function acceptAgentSans(input) {
|
|
972
|
+
const excluded = input.excluded ?? /* @__PURE__ */ new Set();
|
|
973
|
+
const taken = (name) => excluded.has(name.toLowerCase());
|
|
974
|
+
const rejected = (input.reported ?? []).map((n) => `${n} (self-reported, not certified)`);
|
|
975
|
+
const dns = [];
|
|
976
|
+
const ips = [];
|
|
977
|
+
const id = input.nodeId.toLowerCase();
|
|
978
|
+
if (id !== "hub" && isLocalOnlyHostname(id) && !taken(id)) dns.push(id);
|
|
979
|
+
else rejected.push(`${input.nodeId} (node id: not a usable name)`);
|
|
980
|
+
const address = input.observedAddress?.replace(/^::ffff:/, "");
|
|
981
|
+
if (address !== void 0) if (address.includes("%")) rejected.push(`${address} (observed address: zone-scoped, only the node id is certified)`);
|
|
982
|
+
else if (isContainerBridgeAddress(address)) rejected.push(`${address} (observed address: a container bridge address, only the node id is certified)`);
|
|
983
|
+
else if ((0, node_net.isIP)(address) !== 0 && isPrivateAddress(address) && !taken(address)) ips.push(address);
|
|
984
|
+
else rejected.push(`${address} (observed address: not private or already certified)`);
|
|
985
|
+
return {
|
|
986
|
+
identity: {
|
|
987
|
+
dnsNames: dns,
|
|
988
|
+
ipAddresses: ips,
|
|
989
|
+
requiredDnsNames: dns,
|
|
990
|
+
requiredIpAddresses: ips
|
|
991
|
+
},
|
|
992
|
+
accepted: [...dns, ...ips],
|
|
993
|
+
rejected
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
/** The SAN values (lower-cased) of a certificate PEM: DNS names and IP addresses. */
|
|
997
|
+
function certificateNames(certPem) {
|
|
998
|
+
const names = /* @__PURE__ */ new Set();
|
|
999
|
+
const san = new node_crypto.X509Certificate(certPem).subjectAltName ?? "";
|
|
1000
|
+
for (const part of san.split(",")) {
|
|
1001
|
+
const [, value] = part.trim().split(/:(.*)/s);
|
|
1002
|
+
if (value !== void 0 && value.length > 0) names.add(value.toLowerCase());
|
|
1003
|
+
}
|
|
1004
|
+
return names;
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* Hub side: sign an agent's CSR under the local CA in `<hubDataDir>/tls`. Throws when
|
|
1008
|
+
* there is no local CA to sign with or no name survives the policy.
|
|
1009
|
+
*/
|
|
1010
|
+
async function issueAgentHttpsLeaf(input) {
|
|
1011
|
+
const caCertPath = (0, node_path.join)(input.hubDataDir, "tls", "camstack-ca.crt");
|
|
1012
|
+
const caKeyPath = (0, node_path.join)(input.hubDataDir, "tls", "camstack-ca.key");
|
|
1013
|
+
const hubLeafPath = (0, node_path.join)(input.hubDataDir, "tls", "camstack.crt");
|
|
1014
|
+
if (!(0, node_fs.existsSync)(caCertPath) || !(0, node_fs.existsSync)(caKeyPath)) throw new Error("the hub has no local CA to sign with (no tls/camstack-ca.crt + key)");
|
|
1015
|
+
const excluded = new Set(input.takenByOthers ?? []);
|
|
1016
|
+
if ((0, node_fs.existsSync)(hubLeafPath)) for (const name of certificateNames((0, node_fs.readFileSync)(hubLeafPath, "utf8"))) excluded.add(name);
|
|
1017
|
+
const ca = await loadCa((0, node_fs.readFileSync)(caCertPath, "utf8"), (0, node_fs.readFileSync)(caKeyPath, "utf8"));
|
|
1018
|
+
const policy = acceptAgentSans({
|
|
1019
|
+
nodeId: input.nodeId,
|
|
1020
|
+
observedAddress: input.observedAddress,
|
|
1021
|
+
excluded,
|
|
1022
|
+
...input.reportedNames !== void 0 ? { reported: input.reportedNames } : {}
|
|
1023
|
+
});
|
|
1024
|
+
const constraints = readNameConstraints(ca.cert);
|
|
1025
|
+
const constrained = constraints === null ? null : permitsIdentity(constraints, policy.identity);
|
|
1026
|
+
const sans = constrained === null ? policy : {
|
|
1027
|
+
identity: constrained.identity,
|
|
1028
|
+
accepted: policy.accepted.filter((name) => !constrained.dropped.includes(name)),
|
|
1029
|
+
rejected: [...policy.rejected, ...constrained.dropped.map((name) => `${name} (outside the local CA's name constraints)`)]
|
|
1030
|
+
};
|
|
1031
|
+
if (sans.accepted.length === 0) throw new Error(`no name of node '${input.nodeId}' can be certified (${sans.rejected.join("; ") || "nothing offered"})`);
|
|
1032
|
+
return {
|
|
1033
|
+
certPem: await issueLeafFromCsr(ca, input.csrPem, sans.identity, input.nodeId, 397, input.now ?? /* @__PURE__ */ new Date()),
|
|
1034
|
+
caCertPem: ca.certPem,
|
|
1035
|
+
accepted: sans.accepted,
|
|
1036
|
+
rejected: sans.rejected
|
|
1037
|
+
};
|
|
1038
|
+
}
|
|
1039
|
+
/** SHA-256 of a PEM (for logs that must not print a certificate). */
|
|
1040
|
+
function pemDigest(pem) {
|
|
1041
|
+
return (0, node_crypto.createHash)("sha256").update(pem).digest("hex").slice(0, 16);
|
|
1042
|
+
}
|
|
1043
|
+
//#endregion
|
|
1044
|
+
Object.defineProperty(exports, "AGENT_HTTPS_NAMES_COLLECTION", {
|
|
1045
|
+
enumerable: true,
|
|
1046
|
+
get: function() {
|
|
1047
|
+
return AGENT_HTTPS_NAMES_COLLECTION;
|
|
1048
|
+
}
|
|
1049
|
+
});
|
|
1050
|
+
Object.defineProperty(exports, "AGENT_HTTPS_NAMES_COLUMNS", {
|
|
1051
|
+
enumerable: true,
|
|
1052
|
+
get: function() {
|
|
1053
|
+
return AGENT_HTTPS_NAMES_COLUMNS;
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1056
|
+
Object.defineProperty(exports, "AgentHttpsInstallError", {
|
|
1057
|
+
enumerable: true,
|
|
1058
|
+
get: function() {
|
|
1059
|
+
return AgentHttpsInstallError;
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1062
|
+
Object.defineProperty(exports, "AgentHttpsNames", {
|
|
1063
|
+
enumerable: true,
|
|
1064
|
+
get: function() {
|
|
1065
|
+
return AgentHttpsNames;
|
|
1066
|
+
}
|
|
1067
|
+
});
|
|
1068
|
+
Object.defineProperty(exports, "CA_COMMON_NAME", {
|
|
1069
|
+
enumerable: true,
|
|
1070
|
+
get: function() {
|
|
1071
|
+
return CA_COMMON_NAME;
|
|
1072
|
+
}
|
|
1073
|
+
});
|
|
1074
|
+
Object.defineProperty(exports, "CA_VALIDITY_DAYS", {
|
|
1075
|
+
enumerable: true,
|
|
1076
|
+
get: function() {
|
|
1077
|
+
return CA_VALIDITY_DAYS;
|
|
1078
|
+
}
|
|
1079
|
+
});
|
|
1080
|
+
Object.defineProperty(exports, "LEAF_RENEWAL_WINDOW_DAYS", {
|
|
1081
|
+
enumerable: true,
|
|
1082
|
+
get: function() {
|
|
1083
|
+
return LEAF_RENEWAL_WINDOW_DAYS;
|
|
1084
|
+
}
|
|
1085
|
+
});
|
|
1086
|
+
Object.defineProperty(exports, "MAX_LEAF_VALIDITY_DAYS", {
|
|
1087
|
+
enumerable: true,
|
|
1088
|
+
get: function() {
|
|
1089
|
+
return MAX_LEAF_VALIDITY_DAYS;
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
Object.defineProperty(exports, "PERMITTED_DNS_SUFFIXES", {
|
|
1093
|
+
enumerable: true,
|
|
1094
|
+
get: function() {
|
|
1095
|
+
return PERMITTED_DNS_SUFFIXES;
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
Object.defineProperty(exports, "PERMITTED_IP_RANGES", {
|
|
1099
|
+
enumerable: true,
|
|
1100
|
+
get: function() {
|
|
1101
|
+
return PERMITTED_IP_RANGES;
|
|
1102
|
+
}
|
|
1103
|
+
});
|
|
1104
|
+
Object.defineProperty(exports, "SERVER_AUTH_OID", {
|
|
1105
|
+
enumerable: true,
|
|
1106
|
+
get: function() {
|
|
1107
|
+
return SERVER_AUTH_OID;
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
Object.defineProperty(exports, "acceptAgentSans", {
|
|
1111
|
+
enumerable: true,
|
|
1112
|
+
get: function() {
|
|
1113
|
+
return acceptAgentSans;
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
Object.defineProperty(exports, "agentHttpsPaths", {
|
|
1117
|
+
enumerable: true,
|
|
1118
|
+
get: function() {
|
|
1119
|
+
return agentHttpsPaths;
|
|
1120
|
+
}
|
|
1121
|
+
});
|
|
1122
|
+
Object.defineProperty(exports, "buildNameConstraintSet", {
|
|
1123
|
+
enumerable: true,
|
|
1124
|
+
get: function() {
|
|
1125
|
+
return buildNameConstraintSet;
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
Object.defineProperty(exports, "certificateNames", {
|
|
1129
|
+
enumerable: true,
|
|
1130
|
+
get: function() {
|
|
1131
|
+
return certificateNames;
|
|
1132
|
+
}
|
|
1133
|
+
});
|
|
1134
|
+
Object.defineProperty(exports, "collectAgentNames", {
|
|
1135
|
+
enumerable: true,
|
|
1136
|
+
get: function() {
|
|
1137
|
+
return collectAgentNames;
|
|
1138
|
+
}
|
|
1139
|
+
});
|
|
1140
|
+
Object.defineProperty(exports, "collectCertIdentity", {
|
|
1141
|
+
enumerable: true,
|
|
1142
|
+
get: function() {
|
|
1143
|
+
return collectCertIdentity;
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1146
|
+
Object.defineProperty(exports, "createAgentHttpsRequest", {
|
|
1147
|
+
enumerable: true,
|
|
1148
|
+
get: function() {
|
|
1149
|
+
return createAgentHttpsRequest;
|
|
1150
|
+
}
|
|
1151
|
+
});
|
|
1152
|
+
Object.defineProperty(exports, "describeHttpsLeaf", {
|
|
1153
|
+
enumerable: true,
|
|
1154
|
+
get: function() {
|
|
1155
|
+
return describeHttpsLeaf;
|
|
1156
|
+
}
|
|
1157
|
+
});
|
|
1158
|
+
Object.defineProperty(exports, "evaluateExistingCert", {
|
|
1159
|
+
enumerable: true,
|
|
1160
|
+
get: function() {
|
|
1161
|
+
return evaluateExistingCert;
|
|
1162
|
+
}
|
|
1163
|
+
});
|
|
1164
|
+
Object.defineProperty(exports, "generateCa", {
|
|
1165
|
+
enumerable: true,
|
|
1166
|
+
get: function() {
|
|
1167
|
+
return generateCa;
|
|
1168
|
+
}
|
|
1169
|
+
});
|
|
1170
|
+
Object.defineProperty(exports, "getProcessAgentHttpsNames", {
|
|
1171
|
+
enumerable: true,
|
|
1172
|
+
get: function() {
|
|
1173
|
+
return getProcessAgentHttpsNames;
|
|
1174
|
+
}
|
|
1175
|
+
});
|
|
1176
|
+
Object.defineProperty(exports, "installAgentHttps", {
|
|
1177
|
+
enumerable: true,
|
|
1178
|
+
get: function() {
|
|
1179
|
+
return installAgentHttps;
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1182
|
+
Object.defineProperty(exports, "isConstrainedCa", {
|
|
1183
|
+
enumerable: true,
|
|
1184
|
+
get: function() {
|
|
1185
|
+
return isConstrainedCa;
|
|
1186
|
+
}
|
|
1187
|
+
});
|
|
1188
|
+
Object.defineProperty(exports, "isContainerBridgeAddress", {
|
|
1189
|
+
enumerable: true,
|
|
1190
|
+
get: function() {
|
|
1191
|
+
return isContainerBridgeAddress;
|
|
1192
|
+
}
|
|
1193
|
+
});
|
|
1194
|
+
Object.defineProperty(exports, "isLocalOnlyHostname", {
|
|
1195
|
+
enumerable: true,
|
|
1196
|
+
get: function() {
|
|
1197
|
+
return isLocalOnlyHostname;
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
Object.defineProperty(exports, "isPrivateAddress", {
|
|
1201
|
+
enumerable: true,
|
|
1202
|
+
get: function() {
|
|
1203
|
+
return isPrivateAddress;
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1206
|
+
Object.defineProperty(exports, "issueAgentHttpsLeaf", {
|
|
1207
|
+
enumerable: true,
|
|
1208
|
+
get: function() {
|
|
1209
|
+
return issueAgentHttpsLeaf;
|
|
1210
|
+
}
|
|
1211
|
+
});
|
|
1212
|
+
Object.defineProperty(exports, "issueLeaf", {
|
|
1213
|
+
enumerable: true,
|
|
1214
|
+
get: function() {
|
|
1215
|
+
return issueLeaf;
|
|
1216
|
+
}
|
|
1217
|
+
});
|
|
1218
|
+
Object.defineProperty(exports, "loadAgentHttps", {
|
|
1219
|
+
enumerable: true,
|
|
1220
|
+
get: function() {
|
|
1221
|
+
return loadAgentHttps;
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
Object.defineProperty(exports, "loadCa", {
|
|
1225
|
+
enumerable: true,
|
|
1226
|
+
get: function() {
|
|
1227
|
+
return loadCa;
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
Object.defineProperty(exports, "localCaCommonName", {
|
|
1231
|
+
enumerable: true,
|
|
1232
|
+
get: function() {
|
|
1233
|
+
return localCaCommonName;
|
|
1234
|
+
}
|
|
1235
|
+
});
|
|
1236
|
+
Object.defineProperty(exports, "pemDigest", {
|
|
1237
|
+
enumerable: true,
|
|
1238
|
+
get: function() {
|
|
1239
|
+
return pemDigest;
|
|
1240
|
+
}
|
|
1241
|
+
});
|
|
1242
|
+
Object.defineProperty(exports, "permitsIdentity", {
|
|
1243
|
+
enumerable: true,
|
|
1244
|
+
get: function() {
|
|
1245
|
+
return permitsIdentity;
|
|
1246
|
+
}
|
|
1247
|
+
});
|
|
1248
|
+
Object.defineProperty(exports, "permitsName", {
|
|
1249
|
+
enumerable: true,
|
|
1250
|
+
get: function() {
|
|
1251
|
+
return permitsName;
|
|
1252
|
+
}
|
|
1253
|
+
});
|
|
1254
|
+
Object.defineProperty(exports, "pinnedHttpsCaFingerprint", {
|
|
1255
|
+
enumerable: true,
|
|
1256
|
+
get: function() {
|
|
1257
|
+
return pinnedHttpsCaFingerprint;
|
|
1258
|
+
}
|
|
1259
|
+
});
|
|
1260
|
+
Object.defineProperty(exports, "readNameConstraints", {
|
|
1261
|
+
enumerable: true,
|
|
1262
|
+
get: function() {
|
|
1263
|
+
return readNameConstraints;
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1266
|
+
Object.defineProperty(exports, "reasonRequiresNewCa", {
|
|
1267
|
+
enumerable: true,
|
|
1268
|
+
get: function() {
|
|
1269
|
+
return reasonRequiresNewCa;
|
|
1270
|
+
}
|
|
1271
|
+
});
|
|
1272
|
+
Object.defineProperty(exports, "setProcessAgentHttpsNames", {
|
|
1273
|
+
enumerable: true,
|
|
1274
|
+
get: function() {
|
|
1275
|
+
return setProcessAgentHttpsNames;
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
Object.defineProperty(exports, "systemConfigRecordKinds", {
|
|
1279
|
+
enumerable: true,
|
|
1280
|
+
get: function() {
|
|
1281
|
+
return systemConfigRecordKinds;
|
|
1282
|
+
}
|
|
1283
|
+
});
|
|
1284
|
+
Object.defineProperty(exports, "systemHostFacts", {
|
|
1285
|
+
enumerable: true,
|
|
1286
|
+
get: function() {
|
|
1287
|
+
return systemHostFacts;
|
|
1288
|
+
}
|
|
1289
|
+
});
|