@camstack/system 1.2.428 → 1.2.430
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/dist/agent-https-names-CpUSuP4w.js +120 -0
- package/dist/agent-https-names-uetr4OQl.mjs +91 -0
- package/dist/auth/auth-audit-log.d.ts +1 -1
- package/dist/auth/device-ca-store.d.ts +57 -0
- package/dist/auth/device-ca.d.ts +75 -0
- package/dist/auth/device-credential-manager.d.ts +154 -0
- package/dist/auth/login-session-manager.d.ts +14 -2
- package/dist/auth/user-management-internal.d.ts +10 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/dist/builtins/calendars/calendars.addon.js +1 -1
- package/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +2 -2
- package/dist/builtins/composer/composer.addon.mjs +2 -2
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +10 -6
- package/dist/builtins/keychain/index.mjs +8 -4
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.d.ts +6 -0
- package/dist/builtins/local-auth/local-auth.addon.js +955 -47
- package/dist/builtins/local-auth/local-auth.addon.mjs +946 -41
- package/dist/builtins/local-network/local-network.addon.js +2 -2
- package/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/file-host-client.d.ts +11 -0
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/index.js +1 -1
- package/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +34 -4
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +34 -4
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.d.ts +18 -0
- package/dist/builtins/system-config/system-config.addon.js +834 -18
- package/dist/builtins/system-config/system-config.addon.mjs +819 -19
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-BQNxXQZG.mjs → composition-sources-Cw_TXEq9.mjs} +1 -1
- package/dist/{composition-sources-DvCGZEUI.js → composition-sources-o5MPSlk6.js} +1 -1
- package/dist/{constants-CCSJGnjs.js → constants-BcNaVkvI.js} +1 -1
- package/dist/{constants-CR4If_lP.mjs → constants-CttE77VF.mjs} +1 -1
- package/dist/device-ca-B-BTxeCj.mjs +355 -0
- package/dist/device-ca-CKiqh2Iu.js +462 -0
- package/dist/{dist-DHSJV4Qc.mjs → dist-CXG6muCR.mjs} +1052 -35
- package/dist/{dist-BQG3QFg7.js → dist-DxJdci75.js} +1099 -34
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +59 -12
- package/dist/index.mjs +10 -9
- package/dist/kernel/index.d.ts +2 -2
- package/dist/kernel/moleculer/mesh-mtls/index.d.ts +4 -1
- package/dist/kernel/moleculer/mesh-mtls/mesh-certificate-registry.d.ts +91 -0
- package/dist/kernel/moleculer/mesh-mtls/mesh-enroll.d.ts +4 -0
- package/dist/kernel/moleculer/mesh-mtls/mesh-peer-transport.d.ts +23 -0
- package/dist/kernel/moleculer/mesh-mtls/mesh-renewal.d.ts +126 -0
- package/dist/kernel/moleculer/mesh-mtls/mesh-tls-gate.d.ts +40 -0
- package/dist/kernel/moleculer/mesh-mtls/tls-tcp-transporter.d.ts +15 -0
- package/dist/{restore-archive-Dccm8lkA.js → restore-archive-CQJNoqRK.js} +1 -1
- package/dist/{restore-archive-DH1Pxq_1.mjs → restore-archive-D_wBL1OO.mjs} +1 -1
- package/dist/{retired-settings-keys-CPz7zpza.mjs → retired-settings-keys-EmDe11cP.mjs} +1 -1
- package/dist/{retired-settings-keys-BfGaSeQI.js → retired-settings-keys-g1oifXxR.js} +1 -1
- package/dist/tls/agent-https-names.d.ts +27 -0
- package/dist/tls/agent-https.d.ts +111 -0
- package/dist/tls/cert-issue.d.ts +7 -0
- package/dist/tls/index.d.ts +3 -0
- package/dist/{tls-BgImdxCO.js → tls-C5IYg3V5.js} +406 -0
- package/dist/{tls-CaOLZ09W.mjs → tls-CpcGkeJV.mjs} +314 -4
- package/dist/{wal-maintenance-DItkuOvu.js → wal-maintenance-BW1LIHi0.js} +0 -0
- package/dist/{wal-maintenance-Drqhcjit.mjs → wal-maintenance-vhPZLYuA.mjs} +0 -0
- package/package.json +4 -1
- package/dist/jwt-signing-key-BZm055IP.js +0 -174
- package/dist/jwt-signing-key-DL-qk1SM.mjs +0 -127
package/dist/file-host-worker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-BW1LIHi0.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as callControl, E as controlTargetOf, T as callVector, _ as collectTransferables, a as WalMaintenance, b as isFileHostWorkerData, c as SqliteSettingsBackend, h as serializeError, o as createVectorIndex, s as vectorProviderOf, w as callData, x as trustInput, y as isFileHostRequest } from "./wal-maintenance-
|
|
1
|
+
import { C as callControl, E as controlTargetOf, T as callVector, _ as collectTransferables, a as WalMaintenance, b as isFileHostWorkerData, c as SqliteSettingsBackend, h as serializeError, o as createVectorIndex, s as vectorProviderOf, w as callData, x as trustInput, y as isFileHostRequest } from "./wal-maintenance-vhPZLYuA.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -16,11 +16,14 @@ export type { CreateLoginSessionInput, LoginSessionCheck, LoginSessionMethod, Lo
|
|
|
16
16
|
export { LoginSessionManager, REFRESH_TOKEN_PREFIX } from "./auth/login-session-manager.js";
|
|
17
17
|
export type { AdminTokenRecord } from "./auth/admin-token-manager.js";
|
|
18
18
|
export { ADMIN_TOKEN_MAX_LIFETIME_MS, ADMIN_TOKEN_PREFIX, AdminTokenManager } from "./auth/admin-token-manager.js";
|
|
19
|
+
export { DeviceCaStore } from "./auth/device-ca-store.js";
|
|
20
|
+
export { DEVICE_CA_KEY_REF, type DeviceCaSigner, generateDeviceCa, issueDeviceLeaf, loadDeviceCa, verifyDeviceLeaf, verifyDeviceSignature } from "./auth/device-ca.js";
|
|
21
|
+
export { type AuthenticatedDevice, DeviceCredentialManager, type DeviceCredentialRecord, type DeviceCredentialState, PREVIOUS_LEAF_GRACE_MS, type DeviceCheckRefusal, type IssuedDeviceCertificate } from "./auth/device-credential-manager.js";
|
|
19
22
|
export { AuthAuditLog } from "./auth/auth-audit-log.js";
|
|
20
23
|
export type { AuthAuditAction, AuthAuditEvent, AuthAuditRecord } from "./auth/auth-audit-log.js";
|
|
21
24
|
export type { CidrMatcher, ParsedCidr, ParsedCidrList } from "./auth/cidr.js";
|
|
22
25
|
export { createCidrMatcher, normalizeIp, parseCidrList, readCidrSetting } from "./auth/cidr.js";
|
|
23
|
-
export type { AdminTokensInternal, AuthAuditInternal, LinkExternalIdentityInput, LoginSessionsInternal, SetPasswordInput, UserManagementInternal } from "./auth/user-management-internal.js";
|
|
26
|
+
export type { AdminTokensInternal, AuthAuditInternal, DeviceCredentialsInternal, LinkExternalIdentityInput, LoginSessionsInternal, SetPasswordInput, UserManagementInternal } from "./auth/user-management-internal.js";
|
|
24
27
|
export { attachUserManagementInternal, getUserManagementInternal, USER_MANAGEMENT_INTERNAL } from "./auth/user-management-internal.js";
|
|
25
28
|
export type { UserRecord, UserStorageAccess } from "./auth/user-manager.js";
|
|
26
29
|
export { FIRST_BOOT_ADMIN_PASSWORD, FIRST_BOOT_ADMIN_USERNAME, UserManager } from "./auth/user-manager.js";
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
4
|
-
const
|
|
3
|
+
const require_dist = require("./dist-DxJdci75.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-CKiqh2Iu.js");
|
|
5
5
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
6
6
|
require("./builtins/alerts/index.js");
|
|
7
7
|
const require_builtins_calendars_calendars_addon = require("./builtins/calendars/calendars.addon.js");
|
|
@@ -22,20 +22,21 @@ require("./builtins/local-auth/index.js");
|
|
|
22
22
|
const require_builtins_loki_logging_index = require("./builtins/loki-logging/index.js");
|
|
23
23
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
24
24
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
25
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
25
|
+
const require_wal_maintenance = require("./wal-maintenance-BW1LIHi0.js");
|
|
26
26
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
27
27
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
28
28
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
29
29
|
require("./builtins/storage-orchestrator/index.js");
|
|
30
|
-
const
|
|
30
|
+
const require_agent_https_names = require("./agent-https-names-CpUSuP4w.js");
|
|
31
|
+
const require_constants = require("./constants-BcNaVkvI.js");
|
|
31
32
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
32
33
|
require("./builtins/system-config/index.js");
|
|
33
34
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
34
35
|
const require_custom_action_registry = require("./custom-action-registry-Bf_YnagS.js");
|
|
35
|
-
const require_tls = require("./tls-
|
|
36
|
+
const require_tls = require("./tls-C5IYg3V5.js");
|
|
36
37
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
37
38
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
38
|
-
const require_restore_archive = require("./restore-archive-
|
|
39
|
+
const require_restore_archive = require("./restore-archive-CQJNoqRK.js");
|
|
39
40
|
let zod = require("zod");
|
|
40
41
|
let node_crypto = require("node:crypto");
|
|
41
42
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
@@ -26892,6 +26893,8 @@ exports.ADMIN_TOKEN_PREFIX = require_builtins_local_auth_local_auth_addon.ADMIN_
|
|
|
26892
26893
|
exports.AGENT_CAP_FWD_ACTION = AGENT_CAP_FWD_ACTION;
|
|
26893
26894
|
exports.AGENT_CAP_FWD_SERVICE = AGENT_CAP_FWD_SERVICE;
|
|
26894
26895
|
exports.AGENT_DASHBOARD_ORIGINS_FIELD = require_builtins_system_config_system_config_addon.AGENT_DASHBOARD_ORIGINS_FIELD;
|
|
26896
|
+
exports.AGENT_HTTPS_NAMES_COLLECTION = require_agent_https_names.AGENT_HTTPS_NAMES_COLLECTION;
|
|
26897
|
+
exports.AGENT_HTTPS_NAMES_COLUMNS = require_agent_https_names.AGENT_HTTPS_NAMES_COLUMNS;
|
|
26895
26898
|
exports.AGENT_READINESS_SERVICE_NAME = AGENT_READINESS_SERVICE_NAME;
|
|
26896
26899
|
exports.AGENT_REGISTER_NODE_ACTION = AGENT_REGISTER_NODE_ACTION;
|
|
26897
26900
|
exports.AGENT_UI_UNLOCK_DOMAIN = require_builtins_system_config_system_config_addon.AGENT_UI_UNLOCK_DOMAIN;
|
|
@@ -26911,6 +26914,8 @@ exports.AddonLoader = AddonLoader;
|
|
|
26911
26914
|
exports.AddonManifest = AddonManifest;
|
|
26912
26915
|
exports.AddonRouteRegistry = AddonRouteRegistry;
|
|
26913
26916
|
exports.AdminTokenManager = require_builtins_local_auth_local_auth_addon.AdminTokenManager;
|
|
26917
|
+
exports.AgentHttpsInstallError = require_tls.AgentHttpsInstallError;
|
|
26918
|
+
exports.AgentHttpsNames = require_agent_https_names.AgentHttpsNames;
|
|
26914
26919
|
exports.AgentMeshAuthenticator = AgentMeshAuthenticator;
|
|
26915
26920
|
exports.AlertCenterAddon = require_builtins_alerts_alerts_addon.AlertCenterAddon;
|
|
26916
26921
|
exports.ApiKeyManager = require_builtins_local_auth_local_auth_addon.ApiKeyManager;
|
|
@@ -26952,9 +26957,12 @@ exports.DEFAULT_LAN_HTTP_PORT = require_tls.DEFAULT_LAN_HTTP_PORT;
|
|
|
26952
26957
|
exports.DEFAULT_LOG_LEVEL = DEFAULT_LOG_LEVEL;
|
|
26953
26958
|
exports.DEFAULT_MESH_JOIN_MAX_HELD = DEFAULT_MESH_JOIN_MAX_HELD;
|
|
26954
26959
|
exports.DEFAULT_MESH_JOIN_MAX_HOLD_MS = DEFAULT_MESH_JOIN_MAX_HOLD_MS;
|
|
26960
|
+
exports.DEVICE_CA_KEY_REF = require_device_ca.DEVICE_CA_KEY_REF;
|
|
26955
26961
|
exports.DEVICE_SETTINGS_CONTRIBUTION_METHODS = require_dist.DEVICE_SETTINGS_CONTRIBUTION_METHODS;
|
|
26956
26962
|
exports.DEVICE_STATUS_METHOD = require_dist.DEVICE_STATUS_METHOD;
|
|
26957
26963
|
exports.DataPlaneRegistry = DataPlaneRegistry;
|
|
26964
|
+
exports.DeviceCaStore = require_builtins_local_auth_local_auth_addon.DeviceCaStore;
|
|
26965
|
+
exports.DeviceCredentialManager = require_builtins_local_auth_local_auth_addon.DeviceCredentialManager;
|
|
26958
26966
|
exports.DeviceManagerAddon = require_builtins_device_manager_device_manager_addon.DeviceManagerAddon;
|
|
26959
26967
|
exports.DeviceRegistry = DeviceRegistry;
|
|
26960
26968
|
exports.DeviceStore = require_builtins_sqlite_storage_index.DeviceStore$1;
|
|
@@ -26993,10 +27001,10 @@ exports.HubLogForwarder = HubLogForwarder;
|
|
|
26993
27001
|
exports.HubNodeRegistry = HubNodeRegistry;
|
|
26994
27002
|
exports.INFRA_CAPABILITIES = INFRA_CAPABILITIES;
|
|
26995
27003
|
exports.IntegrationRegistry = IntegrationRegistry;
|
|
26996
|
-
exports.JWT_SIGNING_KEY_REF =
|
|
27004
|
+
exports.JWT_SIGNING_KEY_REF = require_device_ca.JWT_SIGNING_KEY_REF;
|
|
26997
27005
|
exports.JobJournal = JobJournal;
|
|
26998
27006
|
exports.JoinTokenJtiStore = require_builtins_system_config_system_config_addon.JoinTokenJtiStore;
|
|
26999
|
-
exports.JwtSigningKeyUnavailableError =
|
|
27007
|
+
exports.JwtSigningKeyUnavailableError = require_device_ca.JwtSigningKeyUnavailableError;
|
|
27000
27008
|
exports.LEAF_RENEWAL_WINDOW_DAYS = require_tls.LEAF_RENEWAL_WINDOW_DAYS;
|
|
27001
27009
|
exports.LifecycleJobEngine = LifecycleJobEngine;
|
|
27002
27010
|
exports.LifecycleStateMachine = LifecycleStateMachine;
|
|
@@ -27023,12 +27031,15 @@ exports.MESH_JOIN_CHALLENGE_ACTION = MESH_JOIN_CHALLENGE_ACTION;
|
|
|
27023
27031
|
exports.MESH_JOIN_CHALLENGE_INVALID_TYPE = MESH_JOIN_CHALLENGE_INVALID_TYPE;
|
|
27024
27032
|
exports.MESH_JOIN_CHALLENGE_TTL_MS = MESH_JOIN_CHALLENGE_TTL_MS;
|
|
27025
27033
|
exports.MESH_JOIN_PROTOCOL = MESH_JOIN_PROTOCOL;
|
|
27034
|
+
exports.MESH_NODE_CERTIFICATES_COLLECTION = require_builtins_system_config_system_config_addon.MESH_NODE_CERTIFICATES_COLLECTION;
|
|
27035
|
+
exports.MESH_NODE_CERTIFICATES_COLUMNS = require_builtins_system_config_system_config_addon.MESH_NODE_CERTIFICATES_COLUMNS;
|
|
27026
27036
|
exports.MESH_NODE_UNAUTHENTICATED_TYPE = MESH_NODE_UNAUTHENTICATED_TYPE;
|
|
27027
27037
|
exports.MESH_QUEUE_TOP_N = MESH_QUEUE_TOP_N;
|
|
27028
27038
|
exports.MESH_TLS_PORT_HELLO_FIELD = require_builtins_system_config_system_config_addon.MESH_TLS_PORT_HELLO_FIELD;
|
|
27029
27039
|
exports.METHOD_ACCESS_MAP = require_dist.METHOD_ACCESS_MAP;
|
|
27030
27040
|
exports.MeshAuthenticator = MeshAuthenticator;
|
|
27031
27041
|
exports.MeshCaKeeper = require_builtins_system_config_system_config_addon.MeshCaKeeper;
|
|
27042
|
+
exports.MeshCertificateRegistry = require_builtins_system_config_system_config_addon.MeshCertificateRegistry;
|
|
27032
27043
|
exports.MeshCrl = require_builtins_system_config_system_config_addon.MeshCrl;
|
|
27033
27044
|
exports.MeshJoinClient = MeshJoinClient;
|
|
27034
27045
|
exports.MeshJoinHold = MeshJoinHold;
|
|
@@ -27043,6 +27054,7 @@ exports.OUTBOUND_QUEUE_COOLDOWN_MS = OUTBOUND_QUEUE_COOLDOWN_MS;
|
|
|
27043
27054
|
exports.OUTBOUND_QUEUE_SUSTAIN_MS = OUTBOUND_QUEUE_SUSTAIN_MS;
|
|
27044
27055
|
exports.OUTBOUND_QUEUE_THRESHOLD_BYTES = OUTBOUND_QUEUE_THRESHOLD_BYTES;
|
|
27045
27056
|
exports.PARENT_ROUTED_PROVIDER_ADDON_ID = PARENT_ROUTED_PROVIDER_ADDON_ID;
|
|
27057
|
+
exports.PREVIOUS_LEAF_GRACE_MS = require_builtins_local_auth_local_auth_addon.PREVIOUS_LEAF_GRACE_MS;
|
|
27046
27058
|
Object.defineProperty(exports, "PYTHON_VERSION", {
|
|
27047
27059
|
enumerable: true,
|
|
27048
27060
|
get: function() {
|
|
@@ -27055,6 +27067,7 @@ exports.PipelineValidator = PipelineValidator;
|
|
|
27055
27067
|
exports.PythonEnvManager = PythonEnvManager;
|
|
27056
27068
|
exports.QUARANTINE_DIRNAME = QUARANTINE_DIRNAME;
|
|
27057
27069
|
exports.REFRESH_TOKEN_PREFIX = require_builtins_local_auth_local_auth_addon.REFRESH_TOKEN_PREFIX;
|
|
27070
|
+
exports.RENEWAL_ABANDONED = require_builtins_system_config_system_config_addon.RENEWAL_ABANDONED;
|
|
27058
27071
|
exports.RESTART_MARKER_FILE = RESTART_MARKER_FILE;
|
|
27059
27072
|
exports.RSS_BUDGET_REANNOUNCE_MIN_MS = RSS_BUDGET_REANNOUNCE_MIN_MS;
|
|
27060
27073
|
exports.RSS_BUDGET_RELEASE_RATIO = RSS_BUDGET_RELEASE_RATIO;
|
|
@@ -27071,7 +27084,7 @@ exports.SOCKET_QUEUE_TOP_N = SOCKET_QUEUE_TOP_N;
|
|
|
27071
27084
|
exports.STALL_REPORT_MS = require_custom_action_registry.STALL_REPORT_MS;
|
|
27072
27085
|
exports.STALL_TICK_MS = require_custom_action_registry.STALL_TICK_MS;
|
|
27073
27086
|
exports.STORE_READABLE_BOOTSTRAP_KEYS = STORE_READABLE_BOOTSTRAP_KEYS;
|
|
27074
|
-
exports.SYSTEM_SECRET_OWNER =
|
|
27087
|
+
exports.SYSTEM_SECRET_OWNER = require_device_ca.SYSTEM_SECRET_OWNER;
|
|
27075
27088
|
exports.ScopedLogger = ScopedLogger;
|
|
27076
27089
|
exports.ScopedTokenManager = require_builtins_local_auth_local_auth_addon.ScopedTokenManager;
|
|
27077
27090
|
exports.SettingsReadUnavailableError = require_builtins_local_auth_local_auth_addon.SettingsReadUnavailableError;
|
|
@@ -27102,10 +27115,12 @@ exports.WinstonLoggingAddon = require_builtins_winston_logging_index.WinstonLogg
|
|
|
27102
27115
|
exports.ZERO_LOOP_DELAY = ZERO_LOOP_DELAY;
|
|
27103
27116
|
exports.__resetCapUsageRegistryForTests = __resetCapUsageRegistryForTests;
|
|
27104
27117
|
exports.__resetLoggingGateForTests = __resetLoggingGateForTests;
|
|
27118
|
+
exports.acceptAgentSans = require_tls.acceptAgentSans;
|
|
27105
27119
|
exports.adaptBrokerToCluster = adaptBrokerToCluster;
|
|
27106
27120
|
exports.addonSettingsCapability = require_dist.addonSettingsCapability;
|
|
27107
27121
|
exports.adoptModelRevisions = require_custom_action_registry.adoptModelRevisions;
|
|
27108
27122
|
exports.afterWorkerOnlineAnnounce = afterWorkerOnlineAnnounce;
|
|
27123
|
+
exports.agentHttpsPaths = require_tls.agentHttpsPaths;
|
|
27109
27124
|
exports.allFamiliesListenHost = require_tls.allFamiliesListenHost;
|
|
27110
27125
|
exports.answerClaimedGetStatus = answerClaimedGetStatus;
|
|
27111
27126
|
exports.applyCertificateToListener = require_tls.applyCertificateToListener;
|
|
@@ -27140,6 +27155,7 @@ exports.capActionName = capActionName;
|
|
|
27140
27155
|
exports.capActionSuffix = capActionSuffix;
|
|
27141
27156
|
exports.capBareAction = capBareAction;
|
|
27142
27157
|
exports.capServiceName = capServiceName;
|
|
27158
|
+
exports.certificateNames = require_tls.certificateNames;
|
|
27143
27159
|
exports.checkClusterSecret = require_constants.checkClusterSecret;
|
|
27144
27160
|
exports.classifyAddonDir = classifyAddonDir;
|
|
27145
27161
|
exports.classifyCapRoute = classifyCapRoute;
|
|
@@ -27149,6 +27165,7 @@ exports.clearPlatformKeychainKey = require_platform_key_source.clearPlatformKeyc
|
|
|
27149
27165
|
exports.closeLanHttp = require_tls.closeLanHttp;
|
|
27150
27166
|
exports.clusterEventTopic = clusterEventTopic;
|
|
27151
27167
|
exports.clusterSecretMatches = require_constants.clusterSecretMatches;
|
|
27168
|
+
exports.collectAgentNames = require_tls.collectAgentNames;
|
|
27152
27169
|
exports.collectCertIdentity = require_tls.collectCertIdentity;
|
|
27153
27170
|
exports.collectModelFiles = require_custom_action_registry.collectModelFiles;
|
|
27154
27171
|
exports.computeHubJoinProof = computeHubJoinProof;
|
|
@@ -27161,6 +27178,7 @@ exports.createAddonDataPlaneFacility = createAddonDataPlaneFacility;
|
|
|
27161
27178
|
exports.createAddonPeerBytesFacility = createAddonPeerBytesFacility;
|
|
27162
27179
|
exports.createAddonService = createAddonService;
|
|
27163
27180
|
exports.createAgentEventScope = createAgentEventScope;
|
|
27181
|
+
exports.createAgentHttpsRequest = require_tls.createAgentHttpsRequest;
|
|
27164
27182
|
exports.createArrayBufferCensusGate = createArrayBufferCensusGate;
|
|
27165
27183
|
exports.createAuthenticatedFileServer = require_custom_action_registry.createAuthenticatedFileServer;
|
|
27166
27184
|
exports.createBroker = createBroker;
|
|
@@ -27202,6 +27220,8 @@ exports.createV8Reclaimer = createV8Reclaimer;
|
|
|
27202
27220
|
exports.decideMeshAutoEnforce = decideMeshAutoEnforce;
|
|
27203
27221
|
exports.deleteModelFromDisk = require_custom_action_registry.deleteModelFromDisk;
|
|
27204
27222
|
exports.deriveAgentListenPort = deriveAgentListenPort;
|
|
27223
|
+
exports.describeHttpsLeaf = require_tls.describeHttpsLeaf;
|
|
27224
|
+
exports.describeMeshLeaf = require_builtins_system_config_system_config_addon.describeMeshLeaf;
|
|
27205
27225
|
exports.describeProviderKindDrift = describeProviderKindDrift;
|
|
27206
27226
|
exports.describeRss = describeRss;
|
|
27207
27227
|
exports.detectWorkspacePackagesDir = detectWorkspacePackagesDir;
|
|
@@ -27218,8 +27238,10 @@ Object.defineProperty(exports, "downloadBinary", {
|
|
|
27218
27238
|
});
|
|
27219
27239
|
exports.downloadFile = require_custom_action_registry.downloadFile;
|
|
27220
27240
|
exports.downloadModel = require_custom_action_registry.downloadModel;
|
|
27241
|
+
exports.dropProcessPeer = require_builtins_system_config_system_config_addon.dropProcessPeer;
|
|
27221
27242
|
exports.emitDownForOwnedCaps = require_dist.emitDownForOwnedCaps;
|
|
27222
27243
|
exports.emitHeapDiagnosticReport = emitHeapDiagnosticReport;
|
|
27244
|
+
exports.emitProcessNodeRegistered = require_builtins_system_config_system_config_addon.emitProcessNodeRegistered;
|
|
27223
27245
|
exports.encodeFrame = encodeFrame;
|
|
27224
27246
|
exports.enrollMeshNode = require_builtins_system_config_system_config_addon.enrollMeshNode;
|
|
27225
27247
|
exports.ensureAddonNativePrebuilds = ensureAddonNativePrebuilds;
|
|
@@ -27264,6 +27286,7 @@ exports.formatMeshQueue = formatMeshQueue;
|
|
|
27264
27286
|
exports.formatOutboundQueueVerdict = formatOutboundQueueVerdict;
|
|
27265
27287
|
exports.formatSocketPlane = formatSocketPlane;
|
|
27266
27288
|
exports.generateBackupKeyPair = require_restore_archive.generateBackupKeyPair;
|
|
27289
|
+
exports.generateDeviceCa = require_device_ca.generateDeviceCa;
|
|
27267
27290
|
exports.generateMeshCa = require_builtins_system_config_system_config_addon.generateMeshCa;
|
|
27268
27291
|
exports.generateMeshKeyPair = require_builtins_system_config_system_config_addon.generateMeshKeyPair;
|
|
27269
27292
|
exports.getBrokerEventBus = getBrokerEventBus;
|
|
@@ -27288,12 +27311,16 @@ Object.defineProperty(exports, "getPlatformInfo", {
|
|
|
27288
27311
|
}
|
|
27289
27312
|
});
|
|
27290
27313
|
exports.getPlatformKeychainKey = require_platform_key_source.getPlatformKeychainKey;
|
|
27314
|
+
exports.getProcessAgentHttpsNames = require_agent_https_names.getProcessAgentHttpsNames;
|
|
27291
27315
|
exports.getProcessClusterSecretGate = require_constants.getProcessClusterSecretGate;
|
|
27292
|
-
exports.getProcessJwtSigningKeyState =
|
|
27316
|
+
exports.getProcessJwtSigningKeyState = require_device_ca.getProcessJwtSigningKeyState;
|
|
27293
27317
|
exports.getProcessMeshAuthMode = require_builtins_system_config_system_config_addon.getProcessMeshAuthMode;
|
|
27294
27318
|
exports.getProcessMeshAuthStatus = require_builtins_system_config_system_config_addon.getProcessMeshAuthStatus;
|
|
27295
27319
|
exports.getProcessMeshCaState = require_builtins_system_config_system_config_addon.getProcessMeshCaState;
|
|
27320
|
+
exports.getProcessMeshCertificateRegistry = require_builtins_system_config_system_config_addon.getProcessMeshCertificateRegistry;
|
|
27321
|
+
exports.getProcessMeshTlsListenerState = require_builtins_system_config_system_config_addon.getProcessMeshTlsListenerState;
|
|
27296
27322
|
exports.getProcessNodeMeshTransport = require_builtins_system_config_system_config_addon.getProcessNodeMeshTransport;
|
|
27323
|
+
exports.getProcessPeerLeaf = require_builtins_system_config_system_config_addon.getProcessPeerLeaf;
|
|
27297
27324
|
Object.defineProperty(exports, "getPythonDownloadUrl", {
|
|
27298
27325
|
enumerable: true,
|
|
27299
27326
|
get: function() {
|
|
@@ -27309,6 +27336,7 @@ exports.hashClusterSecret = require_constants.hashClusterSecret;
|
|
|
27309
27336
|
exports.heapSpaceField = heapSpaceField;
|
|
27310
27337
|
exports.hostNodeIdOf = hostNodeIdOf;
|
|
27311
27338
|
exports.hubMainRssBudget = hubMainRssBudget;
|
|
27339
|
+
exports.installAgentHttps = require_tls.installAgentHttps;
|
|
27312
27340
|
exports.installManifestNativeDeps = installManifestNativeDeps;
|
|
27313
27341
|
exports.installManifestPythonDeps = installManifestPythonDeps;
|
|
27314
27342
|
exports.installManifestSystemDeps = installManifestSystemDeps;
|
|
@@ -27332,20 +27360,27 @@ exports.isArrayBufferCensusReport = isArrayBufferCensusReport;
|
|
|
27332
27360
|
exports.isArrayOutputSchema = require_dist.isArrayOutputSchema;
|
|
27333
27361
|
exports.isClusterSecretMismatchError = require_constants.isClusterSecretMismatchError;
|
|
27334
27362
|
exports.isCollectionArrayMethod = require_dist.isCollectionArrayMethod;
|
|
27363
|
+
exports.isContainerBridgeAddress = require_tls.isContainerBridgeAddress;
|
|
27335
27364
|
exports.isCredentialKeyName = isCredentialKeyName;
|
|
27336
27365
|
exports.isInfraCapability = isInfraCapability;
|
|
27366
|
+
exports.isLocalOnlyHostname = require_tls.isLocalOnlyHostname;
|
|
27337
27367
|
exports.isMeshAuthMode = require_builtins_system_config_system_config_addon.isMeshAuthMode;
|
|
27338
27368
|
exports.isModelDownloaded = require_custom_action_registry.isModelDownloaded;
|
|
27339
27369
|
exports.isOwnChildNodeId = isOwnChildNodeId;
|
|
27340
27370
|
exports.isPeerEventPacket = isPeerEventPacket;
|
|
27371
|
+
exports.isPrivateAddress = require_tls.isPrivateAddress;
|
|
27341
27372
|
exports.isRemoteForbiddenAction = isRemoteForbiddenAction;
|
|
27342
27373
|
exports.isRemoteForbiddenOnAgent = isRemoteForbiddenOnAgent;
|
|
27343
27374
|
exports.isSettingsReadUnavailable = require_builtins_local_auth_local_auth_addon.isSettingsReadUnavailable;
|
|
27344
27375
|
exports.isSourceNewer = isSourceNewer;
|
|
27345
27376
|
exports.isolatedBuiltinPhase = isolatedBuiltinPhase;
|
|
27377
|
+
exports.issueAgentHttpsLeaf = require_tls.issueAgentHttpsLeaf;
|
|
27378
|
+
exports.issueDeviceLeaf = require_device_ca.issueDeviceLeaf;
|
|
27346
27379
|
exports.issueMeshLeafForNode = require_builtins_system_config_system_config_addon.issueMeshLeafForNode;
|
|
27347
27380
|
exports.issueMeshLeafFromCsr = require_builtins_system_config_system_config_addon.issueMeshLeafFromCsr;
|
|
27348
27381
|
exports.leafFingerprintOf = require_tls.leafFingerprintOf;
|
|
27382
|
+
exports.loadAgentHttps = require_tls.loadAgentHttps;
|
|
27383
|
+
exports.loadDeviceCa = require_device_ca.loadDeviceCa;
|
|
27349
27384
|
exports.loadMeshCa = require_builtins_system_config_system_config_addon.loadMeshCa;
|
|
27350
27385
|
exports.loadTlsCert = require_tls.loadTlsCert;
|
|
27351
27386
|
exports.localEndpointPath = localEndpointPath;
|
|
@@ -27358,6 +27393,8 @@ exports.mintMeshJoinToken = require_builtins_system_config_system_config_addon.m
|
|
|
27358
27393
|
exports.mountNativeCapService = mountNativeCapService;
|
|
27359
27394
|
exports.nextRssBudgetState = nextRssBudgetState;
|
|
27360
27395
|
exports.normalizeIp = require_builtins_system_config_system_config_addon.normalizeIp;
|
|
27396
|
+
exports.onProcessNodeRegistered = require_builtins_system_config_system_config_addon.onProcessNodeRegistered;
|
|
27397
|
+
exports.openMeshTlsWhenRevocationsLoaded = require_builtins_system_config_system_config_addon.openMeshTlsWhenRevocationsLoaded;
|
|
27361
27398
|
exports.overlayGetStatus = overlayGetStatus;
|
|
27362
27399
|
exports.parseAgentDashboardOrigins = require_builtins_system_config_system_config_addon.parseAgentDashboardOrigins;
|
|
27363
27400
|
exports.parseCapAction = parseCapAction;
|
|
@@ -27368,11 +27405,13 @@ exports.parseRssBudgetMb = parseRssBudgetMb;
|
|
|
27368
27405
|
exports.parseTokenExpiry = require_builtins_local_auth_local_auth_addon.parseTokenExpiry;
|
|
27369
27406
|
exports.parseTokenizedUrl = require_custom_action_registry.parseTokenizedUrl;
|
|
27370
27407
|
exports.partitionIsolatedBuiltinIds = partitionIsolatedBuiltinIds;
|
|
27408
|
+
exports.pemDigest = require_tls.pemDigest;
|
|
27409
|
+
exports.pinnedHttpsCaFingerprint = require_tls.pinnedHttpsCaFingerprint;
|
|
27371
27410
|
exports.prepareBootTls = require_tls.prepareBootTls;
|
|
27372
27411
|
exports.prepareRestoreArchive = require_restore_archive.prepareRestoreArchive;
|
|
27373
27412
|
exports.probePlatform = probePlatform;
|
|
27374
27413
|
exports.processJoinTokenJtiStore = require_builtins_system_config_system_config_addon.processJoinTokenJtiStore;
|
|
27375
|
-
exports.processJwtSigningKey =
|
|
27414
|
+
exports.processJwtSigningKey = require_device_ca.processJwtSigningKey;
|
|
27376
27415
|
exports.processMeshCrl = require_builtins_system_config_system_config_addon.processMeshCrl;
|
|
27377
27416
|
exports.proxyToUpstream = proxyToUpstream;
|
|
27378
27417
|
exports.quarantineAddonResidue = quarantineAddonResidue;
|
|
@@ -27397,6 +27436,7 @@ exports.registerHttpsListener = require_tls.registerHttpsListener;
|
|
|
27397
27436
|
exports.registerLanHttpHandler = require_tls.registerLanHttpHandler;
|
|
27398
27437
|
exports.reissueTlsLeaf = require_tls.reissueTlsLeaf;
|
|
27399
27438
|
exports.reloadHttpsListener = require_tls.reloadHttpsListener;
|
|
27439
|
+
exports.renewMeshCertificate = require_builtins_system_config_system_config_addon.renewMeshCertificate;
|
|
27400
27440
|
exports.requestProcessMeshEnforcement = require_builtins_system_config_system_config_addon.requestProcessMeshEnforcement;
|
|
27401
27441
|
exports.requireProcessMeshCa = require_builtins_system_config_system_config_addon.requireProcessMeshCa;
|
|
27402
27442
|
exports.resolveFilePath = require_custom_action_registry.resolveFilePath;
|
|
@@ -27405,6 +27445,7 @@ exports.resolveHwAccel = resolveHwAccel;
|
|
|
27405
27445
|
exports.resolveNpmInvocation = resolveNpmInvocation;
|
|
27406
27446
|
exports.revertToGeneratedCertificate = require_tls.revertToGeneratedCertificate;
|
|
27407
27447
|
exports.revisionWeightUrl = require_custom_action_registry.revisionWeightUrl;
|
|
27448
|
+
exports.revokeMeshCertificate = require_builtins_system_config_system_config_addon.revokeMeshCertificate;
|
|
27408
27449
|
exports.runHubAddonBoot = runHubAddonBoot;
|
|
27409
27450
|
exports.runNpm = runNpm;
|
|
27410
27451
|
exports.sampleSocketDirection = sampleSocketDirection;
|
|
@@ -27419,12 +27460,15 @@ exports.servedHttpsLeafFingerprint = require_tls.servedHttpsLeafFingerprint;
|
|
|
27419
27460
|
exports.setHubConnected = setHubConnected;
|
|
27420
27461
|
exports.setNodeEventInterest = setNodeEventInterest;
|
|
27421
27462
|
exports.setPlatformKeychainKey = require_platform_key_source.setPlatformKeychainKey;
|
|
27463
|
+
exports.setProcessAgentHttpsNames = require_agent_https_names.setProcessAgentHttpsNames;
|
|
27422
27464
|
exports.setProcessClusterSecretGate = require_constants.setProcessClusterSecretGate;
|
|
27423
27465
|
exports.setProcessMeshAuthMode = require_builtins_system_config_system_config_addon.setProcessMeshAuthMode;
|
|
27424
27466
|
exports.setProcessMeshAuthStatusSource = require_builtins_system_config_system_config_addon.setProcessMeshAuthStatusSource;
|
|
27467
|
+
exports.setProcessMeshCertificateRegistry = require_builtins_system_config_system_config_addon.setProcessMeshCertificateRegistry;
|
|
27425
27468
|
exports.setProcessMeshEnforcer = require_builtins_system_config_system_config_addon.setProcessMeshEnforcer;
|
|
27426
27469
|
exports.setProcessMeshPeerTransportLookup = require_builtins_system_config_system_config_addon.setProcessMeshPeerTransportLookup;
|
|
27427
27470
|
exports.setProcessMeshTlsEnabler = require_builtins_system_config_system_config_addon.setProcessMeshTlsEnabler;
|
|
27471
|
+
exports.setProcessMeshTlsListenerState = require_builtins_system_config_system_config_addon.setProcessMeshTlsListenerState;
|
|
27428
27472
|
exports.setWrapperActive = require_builtins_device_manager_device_manager_addon.setWrapperActive;
|
|
27429
27473
|
exports.shouldReclaim = shouldReclaim;
|
|
27430
27474
|
exports.signalAllRunnerGroups = signalAllRunnerGroups;
|
|
@@ -27435,7 +27479,7 @@ exports.stampCallerAddonId = stampCallerAddonId;
|
|
|
27435
27479
|
exports.startEventLoopStallMonitor = require_custom_action_registry.startEventLoopStallMonitor;
|
|
27436
27480
|
exports.startHeapWatch = startHeapWatch;
|
|
27437
27481
|
exports.startRunnerHeapWatch = startRunnerHeapWatch;
|
|
27438
|
-
exports.staticJwtSigningKey =
|
|
27482
|
+
exports.staticJwtSigningKey = require_device_ca.staticJwtSigningKey;
|
|
27439
27483
|
exports.storeMayAnswer = storeMayAnswer;
|
|
27440
27484
|
exports.storeUploadedCertificate = require_tls.storeUploadedCertificate;
|
|
27441
27485
|
exports.strandedMb = strandedMb;
|
|
@@ -27443,10 +27487,13 @@ exports.stripCamstackDeps = stripCamstackDeps;
|
|
|
27443
27487
|
exports.stripForgedIdentity = stripForgedIdentity;
|
|
27444
27488
|
exports.stripForwardedCaller = require_builtins_storage_orchestrator_storage_orchestrator_addon.stripForwardedCaller;
|
|
27445
27489
|
exports.subscribePassthrough = subscribePassthrough;
|
|
27490
|
+
exports.systemHostFacts = require_tls.systemHostFacts;
|
|
27446
27491
|
exports.udsChildLogToWorkerEntry = udsChildLogToWorkerEntry;
|
|
27447
27492
|
exports.validateProviderRegistrations = validateProviderRegistrations;
|
|
27448
27493
|
exports.validateUploadedTls = require_tls.validateUploadedTls;
|
|
27449
27494
|
exports.verifyAgentUiUnlockTicket = require_builtins_system_config_system_config_addon.verifyAgentUiUnlockTicket;
|
|
27495
|
+
exports.verifyDeviceLeaf = require_device_ca.verifyDeviceLeaf;
|
|
27496
|
+
exports.verifyDeviceSignature = require_device_ca.verifyDeviceSignature;
|
|
27450
27497
|
exports.verifyMeshJoinToken = require_builtins_system_config_system_config_addon.verifyMeshJoinToken;
|
|
27451
27498
|
exports.waitUntilReady = waitUntilReady;
|
|
27452
27499
|
exports.writeExtraSans = require_tls.writeExtraSans;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { $
|
|
3
|
-
import {
|
|
2
|
+
import { $r as readinessKey, Cr as ReadinessRegistry, Dr as asJsonObject$1, F as METHOD_ACCESS_MAP, Fn as scopesAllowAddon, Gt as isArrayOutputSchema, In as scopesAllowDeviceCap, Ir as emitDownForOwnedCaps, Kt as isCollectionArrayMethod, Mn as resolveMethodAuth, N as LOG_LEVEL_RANK, Nr as createEvent$1, Or as asNumber, Rr as expandCapMethods, Rt as extractNestedAddonId, Sn as procedureAuthKey, Sr as RUNTIME_DEFAULTS, Xr as parseJsonObject, Xt as isVoidInput, Y as addonSettingsCapability, Yt as isObjectInput, Zr as parseJsonUnknown, Zt as kebabToCamel$1, _n as objectInputDeclaresRequiredDeviceId, br as DEVICE_STATUS_METHOD, ei as resolveCapMount, gn as objectInputDeclaresAddonId, gr as errMsg$1, kr as asString$1, li as EventCategory$1, ni as scopeKey, nn as lifecycleJobSchema, on as logLevelAtMost, qn as supportedRuntimes, sn as looseSchema, t as ALL_CAPABILITY_DEFINITIONS, vr as DATAPLANE_SECRET_HEADER$1, wr as ReadinessTimeoutError, yr as DEVICE_SETTINGS_CONTRIBUTION_METHODS } from "./dist-CXG6muCR.mjs";
|
|
3
|
+
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-B-BTxeCj.mjs";
|
|
4
4
|
import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
|
|
5
5
|
import "./builtins/alerts/index.mjs";
|
|
6
6
|
import { CalendarsAddon } from "./builtins/calendars/calendars.addon.mjs";
|
|
@@ -16,25 +16,26 @@ import "./builtins/device-manager/index.mjs";
|
|
|
16
16
|
import { HubForwarderAddon, HubForwarderDestination } from "./builtins/hub-forwarder/index.mjs";
|
|
17
17
|
import { LivenessMonitorAddon } from "./builtins/liveness-monitor/liveness-monitor.addon.mjs";
|
|
18
18
|
import "./builtins/liveness-monitor/index.mjs";
|
|
19
|
-
import { LocalAuthAddon, _ as
|
|
19
|
+
import { LocalAuthAddon, _ as AuthManager, a as attachUserManagementInternal, b as isSettingsReadUnavailable, c as DeviceCredentialManager, d as ADMIN_TOKEN_MAX_LIFETIME_MS, f as ADMIN_TOKEN_PREFIX, g as ScopedTokenManager, h as REFRESH_TOKEN_PREFIX, i as USER_MANAGEMENT_INTERNAL, l as PREVIOUS_LEAF_GRACE_MS, m as LoginSessionManager, n as FIRST_BOOT_ADMIN_USERNAME, o as getUserManagementInternal, p as AdminTokenManager, r as UserManager, s as AuthAuditLog, t as FIRST_BOOT_ADMIN_PASSWORD, u as DeviceCaStore, v as parseTokenExpiry, x as ApiKeyManager, y as SettingsReadUnavailableError } from "./builtins/local-auth/local-auth.addon.mjs";
|
|
20
20
|
import "./builtins/local-auth/index.mjs";
|
|
21
21
|
import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index.mjs";
|
|
22
22
|
import NativeMetricsAddon, { a as NativeMetricsProvider, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
23
23
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
24
|
-
import { c as SqliteSettingsBackend, l as prefixRange } from "./wal-maintenance-
|
|
24
|
+
import { c as SqliteSettingsBackend, l as prefixRange } from "./wal-maintenance-vhPZLYuA.mjs";
|
|
25
25
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
26
26
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
27
27
|
import { StorageOrchestratorAddon, a as stripForwardedCaller, i as createHubCapForwardService, n as HUB_CAP_FWD_ACTION, o as buildStorageLocationRegistry, r as HUB_CAP_FWD_SERVICE, t as StorageOrchestratorService } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
|
|
28
28
|
import "./builtins/storage-orchestrator/index.mjs";
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
29
|
+
import { a as setProcessAgentHttpsNames, i as getProcessAgentHttpsNames, n as AGENT_HTTPS_NAMES_COLUMNS, r as AgentHttpsNames, t as AGENT_HTTPS_NAMES_COLLECTION } from "./agent-https-names-uetr4OQl.mjs";
|
|
30
|
+
import { _ as getProcessClusterSecretGate, a as MESH_CA_KEY_REF, b as setProcessClusterSecretGate, d as CLUSTER_SECRET_REF, f as CLUSTER_SECRET_REJECTED_EXIT_CODE, g as clusterSecretMatches, h as checkClusterSecret, i as MESH_CA_FIELD, m as CLUSTER_SECRET_UNAVAILABLE_TYPE, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, p as CLUSTER_SECRET_SETTINGS_KEY, u as CLUSTER_SECRET_MISMATCH_TYPE, v as hashClusterSecret, y as isClusterSecretMismatchError } from "./constants-CttE77VF.mjs";
|
|
31
|
+
import { $ as MESH_AUTH_MODE_FIELD, A as MeshCrl, B as generateMeshKeyPair, C as MESH_NODE_CERTIFICATES_COLLECTION, D as describeMeshLeaf, E as RENEWAL_ABANDONED, F as caFingerprint, G as AGENT_UI_UNLOCK_DOMAIN, H as issueMeshLeafFromCsr, I as caFingerprintCompact, J as UnlockTicketJtiStore, K as AGENT_UI_UNLOCK_TTL_MS, L as createMeshCsrPem, M as MeshCaKeeper, N as getProcessMeshCaState, O as getProcessMeshCertificateRegistry, P as requireProcessMeshCa, Q as verifyAgentUiUnlockTicket, R as exportMeshPrivateKeyPem, S as setProcessMeshTlsListenerState, SystemConfigAddon, T as MeshCertificateRegistry, U as loadMeshCa, V as issueMeshLeafForNode, W as AGENT_DASHBOARD_ORIGINS_FIELD, X as mintAgentUiUnlockTicket, Y as isAllowedAgentDashboardReturnTo, Z as parseAgentDashboardOrigins, _ as setProcessMeshPeerTransportLookup, a as ServiceBroker, at as setProcessMeshAuthMode, b as getProcessMeshTlsListenerState, c as JoinTokenJtiStore, ct as createCidrMatcher, d as verifyMeshJoinToken, dt as readCidrSetting, et as getProcessMeshAuthMode, f as dropProcessPeer, g as onProcessNodeRegistered, h as getProcessPeerLeaf, i as Errors, it as requestProcessMeshEnforcement, j as processMeshCrl, k as setProcessMeshCertificateRegistry, l as mintMeshJoinToken, lt as normalizeIp, m as getProcessNodeMeshTransport, n as MESH_TLS_PORT_HELLO_FIELD, nt as isMeshAuthMode, o as setProcessMeshTlsEnabler, ot as setProcessMeshAuthStatusSource, p as emitProcessNodeRegistered, q as AGENT_UI_UNLOCK_VERSION, r as TlsTcpTransporter, rt as parseMeshAuthMode, s as enrollMeshNode, st as setProcessMeshEnforcer, tt as getProcessMeshAuthStatus, u as processJoinTokenJtiStore, ut as parseCidrList, v as renewMeshCertificate, w as MESH_NODE_CERTIFICATES_COLUMNS, x as openMeshTlsWhenRevocationsLoaded, y as revokeMeshCertificate, z as generateMeshCa } from "./builtins/system-config/system-config.addon.mjs";
|
|
31
32
|
import "./builtins/system-config/index.mjs";
|
|
32
33
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
33
34
|
import { C as isModelDownloaded, T as revisionWeightUrl, _ as downloadFile, a as startEventLoopStallMonitor, b as fetchJson, c as createAuthenticatedFileServer, d as resolveFilePath, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, u as parseTokenizedUrl, v as downloadModel, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-BQnbN0DP.mjs";
|
|
34
|
-
import { A as
|
|
35
|
+
import { A as readTlsMode, B as CA_VALIDITY_DAYS, C as registerHttpsListener, D as UPLOADED_CA_FILE, E as prepareBootTls, F as loadTlsCert, G as DEFAULT_LAN_HTTP_PORT, H as MAX_LEAF_VALIDITY_DAYS, I as reissueTlsLeaf, J as bindPendingLanHttp, K as allFamiliesListenHost, L as CA_COMMON_NAME, M as writeExtraSans, N as writeTlsMode, O as readExtraSans, P as ensureTlsCert, R as collectCertIdentity, S as leafFingerprintOf, T as servedHttpsLeafFingerprint, U as SERVER_AUTH_OID, V as LEAF_RENEWAL_WINDOW_DAYS, W as evaluateExistingCert, X as readLanHttpState, Y as closeLanHttp, Z as registerLanHttpHandler, _ as regenerateCertificate, a as collectAgentNames, b as validateUploadedTls, c as installAgentHttps, d as isPrivateAddress, f as issueAgentHttpsLeaf, g as applyCertificateToListener, h as pinnedHttpsCaFingerprint, i as certificateNames, j as splitPemCertificates, k as readTlsAccessStatus, l as isContainerBridgeAddress, m as pemDigest, n as acceptAgentSans, o as createAgentHttpsRequest, p as loadAgentHttps, q as applyLanHttp, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isLocalOnlyHostname, v as revertToGeneratedCertificate, w as reloadHttpsListener, x as clearHttpsListener, y as storeUploadedCertificate, z as systemHostFacts } from "./tls-CpcGkeJV.mjs";
|
|
35
36
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
36
37
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
37
|
-
import { c as BackupDecryptError, f as generateBackupKeyPair, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-
|
|
38
|
+
import { c as BackupDecryptError, f as generateBackupKeyPair, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-D_wBL1OO.mjs";
|
|
38
39
|
import { z } from "zod";
|
|
39
40
|
import * as crypto$1 from "node:crypto";
|
|
40
41
|
import { createHash, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -26884,4 +26885,4 @@ var LifecycleJobEngine = class {
|
|
|
26884
26885
|
*/
|
|
26885
26886
|
var CAP_METHOD_NOT_IMPLEMENTED = "CAP_METHOD_NOT_IMPLEMENTED";
|
|
26886
26887
|
//#endregion
|
|
26887
|
-
export { ADMIN_TOKEN_MAX_LIFETIME_MS, ADMIN_TOKEN_PREFIX, AGENT_CAP_FWD_ACTION, AGENT_CAP_FWD_SERVICE, AGENT_DASHBOARD_ORIGINS_FIELD, AGENT_READINESS_SERVICE_NAME, AGENT_REGISTER_NODE_ACTION, AGENT_UI_UNLOCK_DOMAIN, AGENT_UI_UNLOCK_TTL_MS, AGENT_UI_UNLOCK_VERSION, ALL_CAPABILITY_DEFINITIONS, ARRAY_BUFFER_CENSUS_COOLDOWN_MS, ARRAY_BUFFER_CENSUS_SUSTAIN_MS, ARRAY_BUFFER_CENSUS_THRESHOLD_MB, ARRAY_BUFFER_RELEASE_MIN_DROP_RATIO, AddonApiFactory, AddonDepsManager, AddonEngineManager, AddonHealthMonitor, AddonInstaller, AddonLoader, AddonManifest, AddonRouteRegistry, AdminTokenManager, AgentMeshAuthenticator, AlertCenterAddon, ApiKeyManager, AuthAuditLog, AuthManager, BackupDecryptError, BackupKeyFormatError, BackupKeyMismatchError, BackupKeyRequiredError, CAP_ACTION_OVERFLOW_LABEL, CAP_ACTION_UNLABELLED, CAP_METHOD_NOT_IMPLEMENTED, CA_COMMON_NAME, CA_VALIDITY_DAYS, CLUSTER_SECRET_MISMATCH_TYPE, CLUSTER_SECRET_REF, CLUSTER_SECRET_REJECTED_EXIT_CODE, CLUSTER_SECRET_SETTINGS_KEY, CLUSTER_SECRET_UNAVAILABLE_TYPE, CORE_CAP_SERVICE_NAME, CalendarsAddon, CapRouteError, CapRouteResolver, CapUsageRegistry, CapabilityHandle, CapabilityRegistry, CapabilityUnavailableError, ComposerAddon, ConfigManager, ConfigStore, ConsoleDestination, ConsoleLoggingAddon, CoreBlocksAddon, CustomActionRegistry, DECISIVE_HEAP_SPACES, DEFAULT_DATA_PATH, DEFAULT_HUB_TLS_TCP_PORT, DEFAULT_LAN_HTTP_PORT, DEFAULT_LOG_LEVEL, DEFAULT_MESH_JOIN_MAX_HELD, DEFAULT_MESH_JOIN_MAX_HOLD_MS, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DataPlaneRegistry, DeviceManagerAddon, DeviceRegistry, DeviceStore, EMPTY_CAP_ACTION_READING, EMPTY_SOCKET_DIRECTION, EMPTY_SOCKET_PLANE_BASELINE, EVENT_PLANE_TOP_N, EVENT_TOPIC_PREFIX, EngineManagerResolver, EventBus, FIRST_BOOT_ADMIN_PASSWORD, FIRST_BOOT_ADMIN_USERNAME, FeatureManager, FilesystemStorageAddon, FilesystemStorageProvider, FrameDecoder, FsStorageBackend, GET_STATUS_METHOD, HEALTH_MONITOR_GRACE_PERIOD_MS, HEALTH_MONITOR_RETRY_INTERVALS_MS, HEALTH_MONITOR_TICK_MS, HEAP_RECLAIM_MIN_INTERVAL_MS, HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, HEAP_RECLAIM_TRIGGER_MB, HEAP_SPACE_REPORT_MIN_MB, HEAP_WATCH_INTERVAL_MS, HEAP_WATCH_WARN_RATIO, HUB_CAP_FWD_ACTION, HUB_CAP_FWD_SERVICE, HUB_MAIN_HEAP_WATCH_LABEL, HUB_MAIN_RSS_BUDGET_MB, HUB_RSS_BUDGET_ENV, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, INFRA_CAPABILITIES, IntegrationRegistry, JWT_SIGNING_KEY_REF, JobJournal, JoinTokenJtiStore, JwtSigningKeyUnavailableError, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LoginSessionManager, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MESH_ACTION_FORBIDDEN_TYPE, MESH_AUTH_MODE_FIELD, MESH_AUTO_ENFORCE_GRACE_MS, MESH_CA_FIELD, MESH_CA_KEY_REF, MESH_CA_SETTINGS_KEY, MESH_JOIN_AUTHENTICATE_ACTION, MESH_JOIN_CHALLENGE_ACTION, MESH_JOIN_CHALLENGE_INVALID_TYPE, MESH_JOIN_CHALLENGE_TTL_MS, MESH_JOIN_PROTOCOL, MESH_NODE_UNAUTHENTICATED_TYPE, MESH_QUEUE_TOP_N, MESH_TLS_PORT_HELLO_FIELD, METHOD_ACCESS_MAP, MeshAuthenticator, MeshCaKeeper, MeshCrl, MeshJoinClient, MeshJoinHold, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PARENT_ROUTED_PROVIDER_ADDON_ID, PYTHON_VERSION, PeerAnsweredError, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, REFRESH_TOKEN_PREFIX, RESTART_MARKER_FILE, RSS_BUDGET_REANNOUNCE_MIN_MS, RSS_BUDGET_RELEASE_RATIO, RUNNER_HEAP_WATCH_INTERVAL_MS, RUNNER_RSS_BUDGET_ENV, RUNTIME_DEFAULTS, ReadinessRegistry, ReadinessTimeoutError, ReplEngine, RingBuffer, SERVER_AUTH_OID, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, STORE_READABLE_BOOTSTRAP_KEYS, SYSTEM_SECRET_OWNER, ScopedLogger, ScopedTokenManager, SettingsReadUnavailableError, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemBackupService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, TlsTcpTransporter, ToastService, UDS_NO_ROUTE_PREFIX, UNCLAIMED, UPLOADED_CA_FILE, USER_MANAGEMENT_INTERNAL, UdsLocalTransportClient, UdsLocalTransportServer, UnlockTicketJtiStore, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, adaptBrokerToCluster, addonSettingsCapability, adoptModelRevisions, afterWorkerOnlineAnnounce, allFamiliesListenHost, answerClaimedGetStatus, applyCertificateToListener, applyLanHttp, attachUserManagementInternal, attributeStall, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, builderMountedCapNames, caFingerprint, caFingerprintCompact, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, checkClusterSecret, classifyAddonDir, classifyCapRoute, clearHttpsListener, clearPendingRestart, clearPlatformKeychainKey, closeLanHttp, clusterEventTopic, clusterSecretMatches, collectCertIdentity, collectModelFiles, computeHubJoinProof, computeNodeJoinProof, contentTypeFor, copyDirRecursive, copyExtraFileDirs, createAddonContext, createAddonDataPlaneFacility, createAddonPeerBytesFacility, createAddonService, createAgentEventScope, createArrayBufferCensusGate, createAuthenticatedFileServer, createBroker, createBrokerDeviceManagerApi, createCapActionCensus, createCidrMatcher, createCoreCapService, createDeferredHeapWatchSink, createDoorSettingsView, createEventPlaneMeter, createEventPlaneReader, createFileDataPlaneHandler, createHubCapForwardService, createHubService, createInspectorArrayBufferCensus, createKernelHwAccel, createKernelInferenceEngine, createLocalTransport, createLoopDelayMeter, createMeshAccessMiddleware, createMeshCsrPem, createMeshQueueReader, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createScopedProcessManager, createSocketDirectionCounters, createSocketPlaneMeter, createSocketPlaneReader, createStreamProbeBrokerService, createUdsAddonContext, createUdsEventBridge, createUdsEventBus, createUdsLogger, createUdsLoggerWithControl, createV8Reclaimer, decideMeshAutoEnforce, deleteModelFromDisk, deriveAgentListenPort, describeProviderKindDrift, describeRss, detectWorkspacePackagesDir, deviceCapResolverLink, deviceOfGetStatus, diffCapActionCensus, diffEventPlane, diffSocketPlane, downloadBinary, downloadFile, downloadModel, emitDownForOwnedCaps, emitHeapDiagnosticReport, encodeFrame, enrollMeshNode, ensureAddonNativePrebuilds, ensureBinary, ensureDir, ensureFfmpeg, ensureLibraryBuilt, ensureModel, ensureNativePrebuilds, ensurePython, ensureTlsCert, evaluateExistingCert, expandCapMethods, exportMeshPrivateKeyPem, fetchJson, findInPath, formatArrayBufferCensus, formatEventPlane, formatHeapSpaces, formatLogLine, formatMeshQueue, formatOutboundQueueVerdict, formatSocketPlane, generateBackupKeyPair, generateMeshCa, generateMeshKeyPair, getBrokerEventBus, getBrokerTlsTransporter, getCapUsageRegistry, getFfmpegDownloadUrl, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPlatformKeychainKey, getProcessClusterSecretGate, getProcessJwtSigningKeyState, getProcessMeshAuthMode, getProcessMeshAuthStatus, getProcessMeshCaState, getProcessNodeMeshTransport, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getUserManagementInternal, getWorkerDeviceRegistry, hasDotNode, hashClusterSecret, heapSpaceField, hostNodeIdOf, hubMainRssBudget, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, ipcParentLink, isAddonDeploySource, isAllowedAgentDashboardReturnTo, isArrayBufferCensusReport, isArrayOutputSchema, isClusterSecretMismatchError, isCollectionArrayMethod, isCredentialKeyName, isInfraCapability, isMeshAuthMode, isModelDownloaded, isOwnChildNodeId, isPeerEventPacket, isRemoteForbiddenAction, isRemoteForbiddenOnAgent, isSettingsReadUnavailable, isSourceNewer, isolatedBuiltinPhase, issueMeshLeafForNode, issueMeshLeafFromCsr, leafFingerprintOf, loadMeshCa, loadTlsCert, localEndpointPath, localProviderLink, localSupportedPythonRuntimes, mapSignalsToInferenceHardware, meshErrorType, mintAgentUiUnlockTicket, mintMeshJoinToken, mountNativeCapService, nextRssBudgetState, normalizeIp, overlayGetStatus, parseAgentDashboardOrigins, parseCapAction, parseCidrList, parseMeshAuthMode, parseRangeHeader, parseRssBudgetMb, parseTokenExpiry, parseTokenizedUrl, partitionIsolatedBuiltinIds, prepareBootTls, prepareRestoreArchive, probePlatform, processJoinTokenJtiStore, processJwtSigningKey, processMeshCrl, proxyToUpstream, quarantineAddonResidue, readBackupEncryptionHeader, readCidrSetting, readExtraSans, readHeapSpaces, readLanHttpState, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsMode, readinessKey, reclaimIntervalMs, recordSocketFrame, redactLogEntry, redactLogMeta, redactLogText, regenerateCertificate, registerEventBusService, registerHttpsListener, registerLanHttpHandler, reissueTlsLeaf, reloadHttpsListener, requestProcessMeshEnforcement, requireProcessMeshCa, resolveFilePath, resolveFormatRevision, resolveHwAccel, resolveNpmInvocation, revertToGeneratedCertificate, revisionWeightUrl, runHubAddonBoot, runNpm, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, servedHttpsLeafFingerprint, setHubConnected, setNodeEventInterest, setPlatformKeychainKey, setProcessClusterSecretGate, setProcessMeshAuthMode, setProcessMeshAuthStatusSource, setProcessMeshEnforcer, setProcessMeshPeerTransportLookup, setProcessMeshTlsEnabler, setWrapperActive, shouldReclaim, signalAllRunnerGroups, socketDirectionBytes, socketDirectionMessages, splitPemCertificates, stampCallerAddonId, startEventLoopStallMonitor, startHeapWatch, startRunnerHeapWatch, staticJwtSigningKey, storeMayAnswer, storeUploadedCertificate, strandedMb, stripCamstackDeps, stripForgedIdentity, stripForwardedCaller, subscribePassthrough, udsChildLogToWorkerEntry, validateProviderRegistrations, validateUploadedTls, verifyAgentUiUnlockTicket, verifyMeshJoinToken, waitUntilReady, writeExtraSans, writePendingRestart, writeTlsMode };
|
|
26888
|
+
export { ADMIN_TOKEN_MAX_LIFETIME_MS, ADMIN_TOKEN_PREFIX, AGENT_CAP_FWD_ACTION, AGENT_CAP_FWD_SERVICE, AGENT_DASHBOARD_ORIGINS_FIELD, AGENT_HTTPS_NAMES_COLLECTION, AGENT_HTTPS_NAMES_COLUMNS, AGENT_READINESS_SERVICE_NAME, AGENT_REGISTER_NODE_ACTION, AGENT_UI_UNLOCK_DOMAIN, AGENT_UI_UNLOCK_TTL_MS, AGENT_UI_UNLOCK_VERSION, ALL_CAPABILITY_DEFINITIONS, ARRAY_BUFFER_CENSUS_COOLDOWN_MS, ARRAY_BUFFER_CENSUS_SUSTAIN_MS, ARRAY_BUFFER_CENSUS_THRESHOLD_MB, ARRAY_BUFFER_RELEASE_MIN_DROP_RATIO, AddonApiFactory, AddonDepsManager, AddonEngineManager, AddonHealthMonitor, AddonInstaller, AddonLoader, AddonManifest, AddonRouteRegistry, AdminTokenManager, AgentHttpsInstallError, AgentHttpsNames, AgentMeshAuthenticator, AlertCenterAddon, ApiKeyManager, AuthAuditLog, AuthManager, BackupDecryptError, BackupKeyFormatError, BackupKeyMismatchError, BackupKeyRequiredError, CAP_ACTION_OVERFLOW_LABEL, CAP_ACTION_UNLABELLED, CAP_METHOD_NOT_IMPLEMENTED, CA_COMMON_NAME, CA_VALIDITY_DAYS, CLUSTER_SECRET_MISMATCH_TYPE, CLUSTER_SECRET_REF, CLUSTER_SECRET_REJECTED_EXIT_CODE, CLUSTER_SECRET_SETTINGS_KEY, CLUSTER_SECRET_UNAVAILABLE_TYPE, CORE_CAP_SERVICE_NAME, CalendarsAddon, CapRouteError, CapRouteResolver, CapUsageRegistry, CapabilityHandle, CapabilityRegistry, CapabilityUnavailableError, ComposerAddon, ConfigManager, ConfigStore, ConsoleDestination, ConsoleLoggingAddon, CoreBlocksAddon, CustomActionRegistry, DECISIVE_HEAP_SPACES, DEFAULT_DATA_PATH, DEFAULT_HUB_TLS_TCP_PORT, DEFAULT_LAN_HTTP_PORT, DEFAULT_LOG_LEVEL, DEFAULT_MESH_JOIN_MAX_HELD, DEFAULT_MESH_JOIN_MAX_HOLD_MS, DEVICE_CA_KEY_REF, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DataPlaneRegistry, DeviceCaStore, DeviceCredentialManager, DeviceManagerAddon, DeviceRegistry, DeviceStore, EMPTY_CAP_ACTION_READING, EMPTY_SOCKET_DIRECTION, EMPTY_SOCKET_PLANE_BASELINE, EVENT_PLANE_TOP_N, EVENT_TOPIC_PREFIX, EngineManagerResolver, EventBus, FIRST_BOOT_ADMIN_PASSWORD, FIRST_BOOT_ADMIN_USERNAME, FeatureManager, FilesystemStorageAddon, FilesystemStorageProvider, FrameDecoder, FsStorageBackend, GET_STATUS_METHOD, HEALTH_MONITOR_GRACE_PERIOD_MS, HEALTH_MONITOR_RETRY_INTERVALS_MS, HEALTH_MONITOR_TICK_MS, HEAP_RECLAIM_MIN_INTERVAL_MS, HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, HEAP_RECLAIM_TRIGGER_MB, HEAP_SPACE_REPORT_MIN_MB, HEAP_WATCH_INTERVAL_MS, HEAP_WATCH_WARN_RATIO, HUB_CAP_FWD_ACTION, HUB_CAP_FWD_SERVICE, HUB_MAIN_HEAP_WATCH_LABEL, HUB_MAIN_RSS_BUDGET_MB, HUB_RSS_BUDGET_ENV, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, INFRA_CAPABILITIES, IntegrationRegistry, JWT_SIGNING_KEY_REF, JobJournal, JoinTokenJtiStore, JwtSigningKeyUnavailableError, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LoginSessionManager, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MESH_ACTION_FORBIDDEN_TYPE, MESH_AUTH_MODE_FIELD, MESH_AUTO_ENFORCE_GRACE_MS, MESH_CA_FIELD, MESH_CA_KEY_REF, MESH_CA_SETTINGS_KEY, MESH_JOIN_AUTHENTICATE_ACTION, MESH_JOIN_CHALLENGE_ACTION, MESH_JOIN_CHALLENGE_INVALID_TYPE, MESH_JOIN_CHALLENGE_TTL_MS, MESH_JOIN_PROTOCOL, MESH_NODE_CERTIFICATES_COLLECTION, MESH_NODE_CERTIFICATES_COLUMNS, MESH_NODE_UNAUTHENTICATED_TYPE, MESH_QUEUE_TOP_N, MESH_TLS_PORT_HELLO_FIELD, METHOD_ACCESS_MAP, MeshAuthenticator, MeshCaKeeper, MeshCertificateRegistry, MeshCrl, MeshJoinClient, MeshJoinHold, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PARENT_ROUTED_PROVIDER_ADDON_ID, PREVIOUS_LEAF_GRACE_MS, PYTHON_VERSION, PeerAnsweredError, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, REFRESH_TOKEN_PREFIX, RENEWAL_ABANDONED, RESTART_MARKER_FILE, RSS_BUDGET_REANNOUNCE_MIN_MS, RSS_BUDGET_RELEASE_RATIO, RUNNER_HEAP_WATCH_INTERVAL_MS, RUNNER_RSS_BUDGET_ENV, RUNTIME_DEFAULTS, ReadinessRegistry, ReadinessTimeoutError, ReplEngine, RingBuffer, SERVER_AUTH_OID, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, STORE_READABLE_BOOTSTRAP_KEYS, SYSTEM_SECRET_OWNER, ScopedLogger, ScopedTokenManager, SettingsReadUnavailableError, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemBackupService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, TlsTcpTransporter, ToastService, UDS_NO_ROUTE_PREFIX, UNCLAIMED, UPLOADED_CA_FILE, USER_MANAGEMENT_INTERNAL, UdsLocalTransportClient, UdsLocalTransportServer, UnlockTicketJtiStore, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, acceptAgentSans, adaptBrokerToCluster, addonSettingsCapability, adoptModelRevisions, afterWorkerOnlineAnnounce, agentHttpsPaths, allFamiliesListenHost, answerClaimedGetStatus, applyCertificateToListener, applyLanHttp, attachUserManagementInternal, attributeStall, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, builderMountedCapNames, caFingerprint, caFingerprintCompact, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, certificateNames, checkClusterSecret, classifyAddonDir, classifyCapRoute, clearHttpsListener, clearPendingRestart, clearPlatformKeychainKey, closeLanHttp, clusterEventTopic, clusterSecretMatches, collectAgentNames, collectCertIdentity, collectModelFiles, computeHubJoinProof, computeNodeJoinProof, contentTypeFor, copyDirRecursive, copyExtraFileDirs, createAddonContext, createAddonDataPlaneFacility, createAddonPeerBytesFacility, createAddonService, createAgentEventScope, createAgentHttpsRequest, createArrayBufferCensusGate, createAuthenticatedFileServer, createBroker, createBrokerDeviceManagerApi, createCapActionCensus, createCidrMatcher, createCoreCapService, createDeferredHeapWatchSink, createDoorSettingsView, createEventPlaneMeter, createEventPlaneReader, createFileDataPlaneHandler, createHubCapForwardService, createHubService, createInspectorArrayBufferCensus, createKernelHwAccel, createKernelInferenceEngine, createLocalTransport, createLoopDelayMeter, createMeshAccessMiddleware, createMeshCsrPem, createMeshQueueReader, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createScopedProcessManager, createSocketDirectionCounters, createSocketPlaneMeter, createSocketPlaneReader, createStreamProbeBrokerService, createUdsAddonContext, createUdsEventBridge, createUdsEventBus, createUdsLogger, createUdsLoggerWithControl, createV8Reclaimer, decideMeshAutoEnforce, deleteModelFromDisk, deriveAgentListenPort, describeHttpsLeaf, describeMeshLeaf, describeProviderKindDrift, describeRss, detectWorkspacePackagesDir, deviceCapResolverLink, deviceOfGetStatus, diffCapActionCensus, diffEventPlane, diffSocketPlane, downloadBinary, downloadFile, downloadModel, dropProcessPeer, emitDownForOwnedCaps, emitHeapDiagnosticReport, emitProcessNodeRegistered, encodeFrame, enrollMeshNode, ensureAddonNativePrebuilds, ensureBinary, ensureDir, ensureFfmpeg, ensureLibraryBuilt, ensureModel, ensureNativePrebuilds, ensurePython, ensureTlsCert, evaluateExistingCert, expandCapMethods, exportMeshPrivateKeyPem, fetchJson, findInPath, formatArrayBufferCensus, formatEventPlane, formatHeapSpaces, formatLogLine, formatMeshQueue, formatOutboundQueueVerdict, formatSocketPlane, generateBackupKeyPair, generateDeviceCa, generateMeshCa, generateMeshKeyPair, getBrokerEventBus, getBrokerTlsTransporter, getCapUsageRegistry, getFfmpegDownloadUrl, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPlatformKeychainKey, getProcessAgentHttpsNames, getProcessClusterSecretGate, getProcessJwtSigningKeyState, getProcessMeshAuthMode, getProcessMeshAuthStatus, getProcessMeshCaState, getProcessMeshCertificateRegistry, getProcessMeshTlsListenerState, getProcessNodeMeshTransport, getProcessPeerLeaf, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getUserManagementInternal, getWorkerDeviceRegistry, hasDotNode, hashClusterSecret, heapSpaceField, hostNodeIdOf, hubMainRssBudget, installAgentHttps, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, ipcParentLink, isAddonDeploySource, isAllowedAgentDashboardReturnTo, isArrayBufferCensusReport, isArrayOutputSchema, isClusterSecretMismatchError, isCollectionArrayMethod, isContainerBridgeAddress, isCredentialKeyName, isInfraCapability, isLocalOnlyHostname, isMeshAuthMode, isModelDownloaded, isOwnChildNodeId, isPeerEventPacket, isPrivateAddress, isRemoteForbiddenAction, isRemoteForbiddenOnAgent, isSettingsReadUnavailable, isSourceNewer, isolatedBuiltinPhase, issueAgentHttpsLeaf, issueDeviceLeaf, issueMeshLeafForNode, issueMeshLeafFromCsr, leafFingerprintOf, loadAgentHttps, loadDeviceCa, loadMeshCa, loadTlsCert, localEndpointPath, localProviderLink, localSupportedPythonRuntimes, mapSignalsToInferenceHardware, meshErrorType, mintAgentUiUnlockTicket, mintMeshJoinToken, mountNativeCapService, nextRssBudgetState, normalizeIp, onProcessNodeRegistered, openMeshTlsWhenRevocationsLoaded, overlayGetStatus, parseAgentDashboardOrigins, parseCapAction, parseCidrList, parseMeshAuthMode, parseRangeHeader, parseRssBudgetMb, parseTokenExpiry, parseTokenizedUrl, partitionIsolatedBuiltinIds, pemDigest, pinnedHttpsCaFingerprint, prepareBootTls, prepareRestoreArchive, probePlatform, processJoinTokenJtiStore, processJwtSigningKey, processMeshCrl, proxyToUpstream, quarantineAddonResidue, readBackupEncryptionHeader, readCidrSetting, readExtraSans, readHeapSpaces, readLanHttpState, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsMode, readinessKey, reclaimIntervalMs, recordSocketFrame, redactLogEntry, redactLogMeta, redactLogText, regenerateCertificate, registerEventBusService, registerHttpsListener, registerLanHttpHandler, reissueTlsLeaf, reloadHttpsListener, renewMeshCertificate, requestProcessMeshEnforcement, requireProcessMeshCa, resolveFilePath, resolveFormatRevision, resolveHwAccel, resolveNpmInvocation, revertToGeneratedCertificate, revisionWeightUrl, revokeMeshCertificate, runHubAddonBoot, runNpm, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, servedHttpsLeafFingerprint, setHubConnected, setNodeEventInterest, setPlatformKeychainKey, setProcessAgentHttpsNames, setProcessClusterSecretGate, setProcessMeshAuthMode, setProcessMeshAuthStatusSource, setProcessMeshCertificateRegistry, setProcessMeshEnforcer, setProcessMeshPeerTransportLookup, setProcessMeshTlsEnabler, setProcessMeshTlsListenerState, setWrapperActive, shouldReclaim, signalAllRunnerGroups, socketDirectionBytes, socketDirectionMessages, splitPemCertificates, stampCallerAddonId, startEventLoopStallMonitor, startHeapWatch, startRunnerHeapWatch, staticJwtSigningKey, storeMayAnswer, storeUploadedCertificate, strandedMb, stripCamstackDeps, stripForgedIdentity, stripForwardedCaller, subscribePassthrough, systemHostFacts, udsChildLogToWorkerEntry, validateProviderRegistrations, validateUploadedTls, verifyAgentUiUnlockTicket, verifyDeviceLeaf, verifyDeviceSignature, verifyMeshJoinToken, waitUntilReady, writeExtraSans, writePendingRestart, writeTlsMode };
|
package/dist/kernel/index.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export { buildStorageLocationRegistry } from "./storage-location-registry.js";
|
|
|
39
39
|
export type { StorageLocationRegistry } from "./storage-location-registry.js";
|
|
40
40
|
export { createBroker, deriveAgentListenPort, getBrokerTlsTransporter } from "./moleculer/broker-factory.js";
|
|
41
41
|
export type { BrokerConfig } from "./moleculer/broker-factory.js";
|
|
42
|
-
export { caFingerprint, caFingerprintCompact, createMeshCsrPem, enrollMeshNode, exportMeshPrivateKeyPem, getProcessNodeMeshTransport, setProcessMeshPeerTransportLookup, generateMeshCa, generateMeshKeyPair, getProcessMeshCaState, issueMeshLeafForNode, issueMeshLeafFromCsr, JoinTokenJtiStore, loadMeshCa, MESH_CA_FIELD, MESH_CA_KEY_REF, MESH_CA_SETTINGS_KEY, MeshCaKeeper, MeshCrl, mintMeshJoinToken, processMeshCrl, processJoinTokenJtiStore, requireProcessMeshCa, setProcessMeshTlsEnabler, TlsTcpTransporter, verifyMeshJoinToken, DEFAULT_HUB_TLS_TCP_PORT, MESH_TLS_PORT_HELLO_FIELD } from "./moleculer/mesh-mtls/index.js";
|
|
43
|
-
export type { MeshCaSigner, MeshEnrollResult, MeshPeerTransportLookup, MeshTransport, MeshJoinTokenClaims, MeshTlsMaterial } from "./moleculer/mesh-mtls/index.js";
|
|
42
|
+
export { caFingerprint, caFingerprintCompact, describeMeshLeaf, dropProcessPeer, emitProcessNodeRegistered, onProcessNodeRegistered, getProcessMeshCertificateRegistry, getProcessPeerLeaf, MESH_NODE_CERTIFICATES_COLLECTION, MESH_NODE_CERTIFICATES_COLUMNS, MeshCertificateRegistry, getProcessMeshTlsListenerState, openMeshTlsWhenRevocationsLoaded, RENEWAL_ABANDONED, setProcessMeshTlsListenerState, renewMeshCertificate, revokeMeshCertificate, setProcessMeshCertificateRegistry, createMeshCsrPem, enrollMeshNode, exportMeshPrivateKeyPem, getProcessNodeMeshTransport, setProcessMeshPeerTransportLookup, generateMeshCa, generateMeshKeyPair, getProcessMeshCaState, issueMeshLeafForNode, issueMeshLeafFromCsr, JoinTokenJtiStore, loadMeshCa, MESH_CA_FIELD, MESH_CA_KEY_REF, MESH_CA_SETTINGS_KEY, MeshCaKeeper, MeshCrl, mintMeshJoinToken, processMeshCrl, processJoinTokenJtiStore, requireProcessMeshCa, setProcessMeshTlsEnabler, TlsTcpTransporter, verifyMeshJoinToken, DEFAULT_HUB_TLS_TCP_PORT, MESH_TLS_PORT_HELLO_FIELD } from "./moleculer/mesh-mtls/index.js";
|
|
43
|
+
export type { MeshCertificateRecord, MeshLeafDescription, MeshLog, MeshPeerLeaf, MeshPeers, MeshRegistrations, MeshTlsListenerState, NodeMeshClient, RenewMeshResult, RevokeMeshResult, MeshCaSigner, MeshEnrollResult, MeshPeerTransportLookup, MeshTransport, MeshJoinTokenClaims, MeshTlsMaterial } from "./moleculer/mesh-mtls/index.js";
|
|
44
44
|
export { type AddonDeploySource, isAddonDeploySource } from "./moleculer/addon-deploy-source.js";
|
|
45
45
|
export { createAddonService, validateProviderRegistrations } from "./moleculer/addon-service-factory.js";
|
|
46
46
|
export { createCoreCapService, CORE_CAP_SERVICE_NAME } from "./moleculer/core-cap-service.js";
|
|
@@ -2,7 +2,10 @@ export { CLIENT_AUTH_OID, DEFAULT_HUB_TCP_PORT, DEFAULT_HUB_TLS_TCP_PORT, MESH_C
|
|
|
2
2
|
export { caFingerprint, caFingerprintCompact, createMeshCsrPem, exportMeshPrivateKeyPem, generateMeshCa, generateMeshKeyPair, issueMeshLeafForNode, issueMeshLeafFromCsr, loadMeshCa, MESH_KEY_ALGORITHM, MESH_SIGNING_ALGORITHM, subjectCn, type MeshCaSigner, type MeshLeafMaterial } from "./mesh-ca.js";
|
|
3
3
|
export { clearProcessMeshCa, getProcessMeshCaState, loadOrGenerateMeshCa, MESH_CA_RETRY_MS, MeshCaKeeper, requireProcessMeshCa, setProcessMeshCa, type MeshCaKeeperDeps, type MeshCaState } from "./mesh-ca-keeper.js";
|
|
4
4
|
export { clearProcessMeshCrl, MeshCrl, processMeshCrl } from "./mesh-crl.js";
|
|
5
|
-
export {
|
|
5
|
+
export { describeMeshLeaf, getProcessMeshCertificateRegistry, MESH_NODE_CERTIFICATES_COLLECTION, MESH_NODE_CERTIFICATES_COLUMNS, MeshCertificateRegistry, RENEWAL_ABANDONED, setProcessMeshCertificateRegistry, type MeshCertificateRecord, type MeshCertificateVia, type MeshLeafDescription } from "./mesh-certificate-registry.js";
|
|
6
|
+
export { getProcessMeshTlsListenerState, type MeshTlsGateDeps, type MeshTlsListenerState, openMeshTlsWhenRevocationsLoaded, setProcessMeshTlsListenerState } from "./mesh-tls-gate.js";
|
|
7
|
+
export { renewMeshCertificate, revokeMeshCertificate, type MeshLog, type MeshPeers, type MeshRegistrations, type NodeMeshClient, type RenewMeshDeps, type RenewMeshResult, type RevokeMeshResult } from "./mesh-renewal.js";
|
|
8
|
+
export { dropProcessPeer, emitProcessNodeRegistered, getProcessPeerLeaf, onProcessNodeRegistered, getProcessNodeMeshTransport, setProcessMeshPeerTransportLookup, type MeshPeerLeaf, type MeshPeerTransportLookup, type MeshTransport } from "./mesh-peer-transport.js";
|
|
6
9
|
export { enrollMeshNode } from "./mesh-enroll.js";
|
|
7
10
|
export type { EnrollMeshNodeDeps, MeshEnrollRequest, MeshEnrollResult } from "./mesh-enroll.js";
|
|
8
11
|
export { JoinTokenJtiStore, mintMeshJoinToken, processJoinTokenJtiStore, verifyMeshJoinToken, type MeshJoinTokenClaims, type MintJoinTokenInput } from "./mesh-join-token.js";
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { CollectionColumn, IScopedLogger, SettingsStoreClient } from "@camstack/types";
|
|
2
|
+
import type { MeshCrl } from "./mesh-crl.js";
|
|
3
|
+
/**
|
|
4
|
+
* @durable class=config owner=system-config
|
|
5
|
+
* write="the hub records every mesh leaf it issues (enroll, renewal, boot) and every
|
|
6
|
+
* leaf a connected node is observed presenting; a revocation stamps revokedAt"
|
|
7
|
+
* retention="a revoked or expired row is kept 90 days past its end, then reaped; a
|
|
8
|
+
* live row is never deleted. Forgetting a node does not delete its rows."
|
|
9
|
+
*/
|
|
10
|
+
export declare const MESH_NODE_CERTIFICATES_COLLECTION = "mesh_node_certificates";
|
|
11
|
+
export declare const MESH_NODE_CERTIFICATES_COLUMNS: readonly CollectionColumn[];
|
|
12
|
+
export type MeshCertificateVia = "enroll" | "renewal" | "boot" | "observed";
|
|
13
|
+
export interface MeshCertificateRecord {
|
|
14
|
+
readonly nodeId: string;
|
|
15
|
+
readonly serial: string;
|
|
16
|
+
readonly fingerprint: string;
|
|
17
|
+
readonly notBefore: number;
|
|
18
|
+
readonly notAfter: number;
|
|
19
|
+
readonly issuedAt: number;
|
|
20
|
+
readonly issuedVia: MeshCertificateVia;
|
|
21
|
+
readonly revokedAt: number | null;
|
|
22
|
+
readonly revokedReason: string | null;
|
|
23
|
+
}
|
|
24
|
+
export interface MeshLeafDescription {
|
|
25
|
+
readonly cn: string;
|
|
26
|
+
readonly serial: string;
|
|
27
|
+
readonly fingerprint: string;
|
|
28
|
+
readonly notBefore: number;
|
|
29
|
+
readonly notAfter: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A leaf the hub signed for a renewal that did not complete. It must not be the node's
|
|
33
|
+
* `current` leaf, but it is NOT on the CRL: the node may still hold it (the swap
|
|
34
|
+
* could have landed without the hub seeing it), and cutting it off would be the
|
|
35
|
+
* outage the hand-over exists to prevent. If the node is later seen presenting it, it
|
|
36
|
+
* is reinstated.
|
|
37
|
+
*/
|
|
38
|
+
export declare const RENEWAL_ABANDONED = "renewal-abandoned";
|
|
39
|
+
/** CN, serial, fingerprint and validity of a leaf PEM (or DER). */
|
|
40
|
+
export declare function describeMeshLeaf(cert: string | Buffer): MeshLeafDescription;
|
|
41
|
+
export declare class MeshCertificateRegistry {
|
|
42
|
+
private readonly store;
|
|
43
|
+
private readonly deps;
|
|
44
|
+
private readonly rows;
|
|
45
|
+
constructor(store: SettingsStoreClient, deps?: {
|
|
46
|
+
readonly now?: () => number;
|
|
47
|
+
readonly logger?: IScopedLogger;
|
|
48
|
+
});
|
|
49
|
+
private now;
|
|
50
|
+
load(): Promise<void>;
|
|
51
|
+
/** Write down a leaf the hub just issued. Idempotent per fingerprint. */
|
|
52
|
+
recordIssued(nodeId: string, certPem: string, via: Exclude<MeshCertificateVia, "observed">): Promise<MeshCertificateRecord>;
|
|
53
|
+
/**
|
|
54
|
+
* A node was seen presenting `leaf` on its live connection. A leaf the hub already
|
|
55
|
+
* knows is left alone; an unknown one is recorded `observed` (a node enrolled
|
|
56
|
+
* before this record existed).
|
|
57
|
+
*/
|
|
58
|
+
recordObserved(nodeId: string, leaf: MeshLeafDescription): Promise<boolean>;
|
|
59
|
+
list(nodeId?: string): readonly MeshCertificateRecord[];
|
|
60
|
+
/** The newest non-revoked leaf of a node, or `undefined`. */
|
|
61
|
+
currentFor(nodeId: string): MeshCertificateRecord | undefined;
|
|
62
|
+
/** Every non-revoked leaf of a node (a renewal in flight has two). */
|
|
63
|
+
liveFor(nodeId: string): readonly MeshCertificateRecord[];
|
|
64
|
+
/** Stamp a leaf revoked (and mirror it into `crl`). `false` when unknown or already revoked. */
|
|
65
|
+
revoke(fingerprint: string, reason: string, crl?: MeshCrl): Promise<boolean>;
|
|
66
|
+
/**
|
|
67
|
+
* Operator revocation of a whole node: EVERY leaf of the node that is not already on the
|
|
68
|
+
* CRL goes on it - the current one, an observed one, a renewal one, and a leaf that was set
|
|
69
|
+
* aside (`renewal-abandoned`: a copy of it may sit on a stolen box, and it must not stay
|
|
70
|
+
* valid just because the hub once set it aside). Returns the serials put on the CRL.
|
|
71
|
+
* A leaf revoked this way is never reinstated by `recordObserved`.
|
|
72
|
+
*/
|
|
73
|
+
revokeAllForNode(nodeId: string, reason: string, crl: MeshCrl): Promise<readonly string[]>;
|
|
74
|
+
/**
|
|
75
|
+
* At boot: a node with TWO live leaves had a renewal in flight when the hub stopped. The
|
|
76
|
+
* newer (renewal) one is set aside - it is not the node's current leaf until the node is
|
|
77
|
+
* seen presenting it, which reinstates it. It is NOT put on the CRL.
|
|
78
|
+
*/
|
|
79
|
+
settleInterruptedRenewals(): Promise<number>;
|
|
80
|
+
/** Set a never-completed renewal leaf aside (not current, NOT on the CRL). */
|
|
81
|
+
abandon(fingerprint: string): Promise<boolean>;
|
|
82
|
+
/** Replay every persisted revocation into `crl` (hub boot). Set-aside leaves are not revocations. */
|
|
83
|
+
restoreCrl(crl: MeshCrl): number;
|
|
84
|
+
/** Is `serial` listed as revoked here? */
|
|
85
|
+
isRevoked(serial: string): boolean;
|
|
86
|
+
reap(): Promise<number>;
|
|
87
|
+
private insert;
|
|
88
|
+
private persist;
|
|
89
|
+
}
|
|
90
|
+
export declare function setProcessMeshCertificateRegistry(registry: MeshCertificateRegistry | null): void;
|
|
91
|
+
export declare function getProcessMeshCertificateRegistry(): MeshCertificateRegistry | null;
|
|
@@ -25,6 +25,10 @@ export interface EnrollMeshNodeDeps {
|
|
|
25
25
|
readonly ca: MeshCaSigner;
|
|
26
26
|
readonly jtiStore?: JoinTokenJtiStore;
|
|
27
27
|
readonly now?: Date;
|
|
28
|
+
/** Called with every leaf the hub issues, before the answer is returned (the registry write). */
|
|
29
|
+
readonly onIssued?: (nodeId: string, certPem: string) => Promise<void>;
|
|
30
|
+
/** The leaf is valid without its record; say it was not recorded (the node is observed on connect). */
|
|
31
|
+
readonly onRecordFailed?: (nodeId: string, error: unknown) => void;
|
|
28
32
|
}
|
|
29
33
|
export declare function enrollMeshNode(body: MeshEnrollRequest, deps: EnrollMeshNodeDeps): Promise<MeshEnrollResult>;
|
|
30
34
|
export type { MeshJoinTokenClaims };
|