@camstack/system 1.2.435 → 1.2.436
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/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 +6 -7
- package/dist/builtins/keychain/index.mjs +6 -7
- package/dist/builtins/keychain/keychain-service.d.ts +1 -2
- package/dist/builtins/keychain/system-held-secrets.d.ts +5 -5
- 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.js +2 -2
- package/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- 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/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 +3 -3
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- 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 +3 -24
- package/dist/builtins/system-config/system-config.addon.js +105 -1410
- package/dist/builtins/system-config/system-config.addon.mjs +108 -1402
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-Cm42mgbv.js → composition-sources-BAOlCu4j.js} +1 -1
- package/dist/{composition-sources-_7W2Ly9s.mjs → composition-sources-gN_BWUKp.mjs} +1 -1
- package/dist/constants-BFpowodq.mjs +20 -0
- package/dist/constants-GENKqk9k.js +66 -0
- package/dist/{device-ca-B6YJZus6.mjs → device-ca-BNM5ai4t.mjs} +1 -1
- package/dist/{device-ca-WXuKc8AX.js → device-ca-CuWuRW9N.js} +1 -1
- package/dist/{dist-CnUtkSwN.js → dist-DVe0Nsp8.js} +0 -12
- package/dist/{dist-Bz4_y8Xy.mjs → dist-DjD2M79P.mjs} +1 -1
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/index.js +132 -795
- package/dist/index.mjs +133 -753
- package/dist/kernel/index.d.ts +7 -21
- package/dist/kernel/moleculer/agent-ui-unlock.d.ts +7 -32
- package/dist/kernel/moleculer/broker-factory.d.ts +3 -9
- package/dist/kernel/moleculer/broker-transport-swap.d.ts +17 -0
- package/dist/kernel/moleculer/hub-service.d.ts +6 -16
- package/dist/kernel/moleculer/mesh-access-middleware.d.ts +7 -17
- package/dist/kernel/moleculer/mesh-identity.d.ts +57 -0
- package/dist/kernel/moleculer/mesh-mtls/constants.d.ts +1 -4
- package/dist/kernel/moleculer/mesh-mtls/index.d.ts +1 -4
- package/dist/kernel/moleculer/mesh-mtls/mesh-ca.d.ts +1 -1
- package/dist/kernel/moleculer/mesh-mtls/mesh-renewal.d.ts +1 -1
- package/dist/kernel/moleculer/node-registry.d.ts +0 -6
- package/dist/kernel/moleculer/register-node-client.d.ts +9 -7
- package/dist/{restore-archive-DJYuznWP.mjs → restore-archive-BxmP1ChO.mjs} +1 -1
- package/dist/{restore-archive-BNoFLAg8.js → restore-archive-D4h904rb.js} +1 -1
- package/dist/{retired-settings-keys-9nA85bwT.mjs → retired-settings-keys-CQaknvx1.mjs} +1 -1
- package/dist/{retired-settings-keys-CO3RqsDw.js → retired-settings-keys-CYP5IZJ5.js} +1 -1
- package/dist/{wal-maintenance-D3gwRj1B.js → wal-maintenance-Br60onAQ.js} +0 -0
- package/dist/{wal-maintenance-DLrbapzi.mjs → wal-maintenance-CaDsrJM_.mjs} +0 -0
- package/package.json +1 -1
- package/dist/builtins/system-config/cluster-secret-keeper.d.ts +0 -63
- package/dist/constants-DL87WgeN.js +0 -221
- package/dist/constants-DoiTA134.mjs +0 -102
- package/dist/kernel/moleculer/agent-mesh-authenticator.d.ts +0 -91
- package/dist/kernel/moleculer/cluster-secret.d.ts +0 -46
- package/dist/kernel/moleculer/mesh-auth-mode.d.ts +0 -58
- package/dist/kernel/moleculer/mesh-authenticator.d.ts +0 -77
- package/dist/kernel/moleculer/mesh-auto-enforce.d.ts +0 -46
- package/dist/kernel/moleculer/mesh-join-client.d.ts +0 -73
- package/dist/kernel/moleculer/mesh-join-hold.d.ts +0 -85
- package/dist/kernel/moleculer/mesh-join-proof.d.ts +0 -39
- package/dist/kernel/moleculer/mesh-mtls/mesh-enroll.d.ts +0 -34
- package/dist/kernel/moleculer/mesh-mtls/mesh-join-token.d.ts +0 -56
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fn as resolveLocationMode, Fr as collectSecretConfigKeys, Gn as storageCapability, Hn as settingsStoreCapability, I as LegacyStorageLocationDefaultSchema, J as StorageLocationModeSchema, Kn as storageMigrationCapability, Qt as isLocationEnabled, Tr as REDACTED_SECRET, X as StorageMigrationJobSchema, Y as StorageLocationTypeSchema, Yr as isSecretMarker,
|
|
1
|
+
import { $r as parseJsonObject, Fn as resolveLocationMode, Fr as collectSecretConfigKeys, Gn as storageCapability, Hn as settingsStoreCapability, I as LegacyStorageLocationDefaultSchema, J as StorageLocationModeSchema, Kn as storageMigrationCapability, Qt as isLocationEnabled, Tr as REDACTED_SECRET, X as StorageMigrationJobSchema, Y as StorageLocationTypeSchema, Yr as isSecretMarker, an as legacyModeOf, di as EventCategory, fn as mayReadLocation, gn as modeMayWrite, ii as resolveSecretMarkers, ir as withLocationMode, oi as secretTreeFromPaths, pn as mayWriteToLocation, q as StorageCleanupJobSchema, qt as gbToBytes, ui as transformSecretWrite, xr as BaseAddon, zt as evictionPolicyOfLocation } from "../../dist-DjD2M79P.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { containsOrEquals, physicalRootOf } from "@camstack/types/node";
|
|
@@ -5,7 +5,6 @@ import { systemConfigMeshActions } from "./mesh-actions.js";
|
|
|
5
5
|
export declare const SYSTEM_CONFIG_CLUSTER_SECTION_ID = "system-config-cluster";
|
|
6
6
|
export declare class SystemConfigAddon extends BaseAddon {
|
|
7
7
|
readonly id = "system-config";
|
|
8
|
-
private clusterSecretKeeper;
|
|
9
8
|
private meshCaKeeper;
|
|
10
9
|
private meshReapTimer;
|
|
11
10
|
private readonly meshGateTimers;
|
|
@@ -29,40 +28,20 @@ export declare class SystemConfigAddon extends BaseAddon {
|
|
|
29
28
|
* empty CRL would accept a revoked leaf. Retries until the settings store answers.
|
|
30
29
|
*/
|
|
31
30
|
private onMeshCaReady;
|
|
32
|
-
private mintJoinToken;
|
|
33
31
|
/** D821 — short-lived ticket for the agent's `:4444` unlock session. */
|
|
34
32
|
private mintAgentUiUnlock;
|
|
35
33
|
private readAgentDashboardOrigins;
|
|
36
|
-
private resolveHubUrl;
|
|
37
|
-
private resolveHubMeshAddress;
|
|
38
34
|
/** The keychain handle for owner `system`; `null` where there is no door. */
|
|
39
35
|
private systemSecrets;
|
|
40
36
|
private buildGlobalSchema;
|
|
41
37
|
getGlobalSettings(): Promise<ConfigUISchemaWithValues>;
|
|
42
38
|
/**
|
|
43
39
|
* The admin UI / `addonSettings` cap prefer {@link BaseAddon.updateGlobalSettingsAsOperator}.
|
|
44
|
-
* That BaseAddon path writes the generic addon store and never reaches
|
|
45
|
-
*
|
|
46
|
-
*
|
|
40
|
+
* That BaseAddon path writes the generic addon store and never reaches the
|
|
41
|
+
* yml sections. Route the operator write through the same section-aware path
|
|
42
|
+
* as {@link updateGlobalSettings}.
|
|
47
43
|
*/
|
|
48
44
|
override updateGlobalSettingsAsOperator(patch: Record<string, unknown>, _nodeId?: string): Promise<void>;
|
|
49
45
|
updateGlobalSettings(patch: Record<string, unknown>): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* The cluster secret's save path: the value goes to the keychain (owner
|
|
52
|
-
* `system`), the row gets the marker; `''` / a view keeps. `$secretClear` is
|
|
53
|
-
* REFUSED: the secret is mandatory (D802). A value the keychain cannot store
|
|
54
|
-
* is REFUSED — never written inline (D787, P5). Mesh auth mode is always
|
|
55
|
-
* enforced (D821) — a legacy `meshAuth` in the patch is ignored.
|
|
56
|
-
*/
|
|
57
|
-
private writeClusterSection;
|
|
58
|
-
/** Persist + publish mesh auth mode (always `enforced` after D821). */
|
|
59
|
-
private writeMeshAuthMode;
|
|
60
|
-
/**
|
|
61
|
-
* First boot, or a keychain reset that cleared the marker (D802): a fresh
|
|
62
|
-
* random secret, stored like an operator save. Mesh auth stays enforced
|
|
63
|
-
* (D821) — every agent must present the secret; there is no transition window.
|
|
64
|
-
*/
|
|
65
|
-
private generateClusterSecret;
|
|
66
|
-
private storeClusterSecret;
|
|
67
46
|
}
|
|
68
47
|
export default SystemConfigAddon;
|