@camstack/server 1.2.788 → 1.2.790
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/agent/agent-child-manifest.js +39 -0
- package/dist/agent/agent-hub-registration.js +11 -1
- package/dist/agent/forward-to-hub.js +43 -0
- package/dist/agent/main.js +31 -81
- package/dist/agent/stale-addon-gate.js +70 -34
- package/dist/api/trpc/generated-cap-mounts.js +1 -6
- package/dist/api/trpc/generated-cap-routers.js +1221 -1417
- package/dist/core/addon/addon-registry.service.js +25 -33
- package/dist/core/addon/boot-health-snapshot.js +0 -28
- package/dist/core/addon/{hub-spawn-gate.js → hub-addon-support.js} +12 -35
- package/dist/core/moleculer/moleculer.service.js +2 -13
- package/dist/core/moleculer/runner-hosted-on-node.js +23 -0
- package/dist/core/updates/required-addon-update.js +1 -1
- package/package.json +23 -58
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{agent-https-jJDe-XNl.js → agent-https-BmXXKQAA.js} +1 -1
- package/system/dist/{agent-https-szf2FU49.mjs → agent-https-ByceQLwr.mjs} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +4 -4
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +5 -5
- package/system/dist/builtins/alerts/alerts.addon.d.ts +8 -0
- package/system/dist/builtins/alerts/alerts.addon.js +72 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +74 -3
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +5 -5
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +11 -5
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +11 -5
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +5 -5
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +10 -10
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +10 -10
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +20 -20
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/access-guards.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/custom-actions.d.ts +11 -0
- package/system/dist/builtins/storage-orchestrator/index.d.ts +1 -0
- package/system/dist/builtins/storage-orchestrator/index.js +2 -0
- package/system/dist/builtins/storage-orchestrator/index.mjs +2 -2
- package/system/dist/builtins/storage-orchestrator/location-instances.d.ts +72 -0
- package/system/dist/builtins/storage-orchestrator/location-repoint-move.d.ts +1 -1
- package/system/dist/builtins/storage-orchestrator/location-secret-refs.d.ts +26 -0
- package/system/dist/builtins/storage-orchestrator/location-store.d.ts +28 -2
- package/system/dist/builtins/storage-orchestrator/migrations/index.d.ts +9 -2
- package/system/dist/builtins/storage-orchestrator/migrations/legacy-location-secret-refs.d.ts +13 -0
- package/system/dist/builtins/storage-orchestrator/migrations/location-secret-ports.d.ts +15 -0
- package/system/dist/builtins/storage-orchestrator/migrations/location-secrets-to-record.d.ts +57 -0
- package/system/dist/builtins/storage-orchestrator/provider-discovery.d.ts +10 -13
- package/system/dist/builtins/storage-orchestrator/record-kinds.d.ts +6 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +39 -8
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +954 -131
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +954 -132
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +8 -0
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +115 -115
- package/system/dist/builtins/winston-logging/index.js +112 -3
- package/system/dist/builtins/winston-logging/index.mjs +112 -3
- package/system/dist/builtins/winston-logging/migrations/index.d.ts +8 -0
- package/system/dist/builtins/winston-logging/migrations/node-fields.d.ts +43 -0
- package/system/dist/builtins/winston-logging/winston-logging.addon.d.ts +10 -2
- package/system/dist/{capture-engine-DNHgjQot.js → capture-engine-BHj1fNYC.js} +1 -1
- package/system/dist/{capture-engine-BsKY_3xa.mjs → capture-engine-D9n4KDaN.mjs} +1 -1
- package/system/dist/{composition-sources-BgO0GQYW.js → composition-sources-BGgIuuvd.js} +1 -1
- package/system/dist/{composition-sources-BRdGsbVT.mjs → composition-sources-wI4qWTz2.mjs} +1 -1
- package/system/dist/{constants-CQeMrR4f.mjs → constants-DHqkxbYk.mjs} +1 -1
- package/system/dist/{constants-C3jGKQSQ.js → constants-DNdriMRD.js} +1 -1
- package/system/dist/{coral-accelerators-BW3OcrLD.mjs → coral-accelerators-DBlgWB8k.mjs} +6 -6
- package/system/dist/{custom-action-registry-N7flBDwT.mjs → custom-action-registry-B9zFBNVa.mjs} +37 -37
- package/system/dist/{device-ca-D3y6wGmn.js → device-ca-C2RzT1VT.js} +1 -1
- package/system/dist/{device-ca-ByVi5eUC.mjs → device-ca-gr5eE3h5.mjs} +1 -1
- package/system/dist/{dist-BsQA6-0i.mjs → dist-BUoL5bbr.mjs} +116 -418
- package/system/dist/{dist-BRI-Mwx0.js → dist-DV0V3JiE.js} +133 -417
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-Ry_Jpljx.js → hub-mdns-ciao-Be5PGXW6.js} +2 -2
- package/system/dist/{hub-mdns-ciao-8dJTW2LI.mjs → hub-mdns-ciao-DoSb8dwB.mjs} +2 -2
- package/system/dist/index.js +151 -53
- package/system/dist/index.mjs +362 -266
- package/system/dist/kernel/addon-health-monitor.d.ts +0 -21
- package/system/dist/kernel/index.d.ts +2 -0
- package/system/dist/kernel/transport/runner-of-addon.d.ts +2 -0
- package/system/dist/kernel/unsupported-addon-tracker.d.ts +74 -0
- package/system/dist/{legacy-integration-rows-door-D5BdSNla.js → legacy-integration-rows-door-D5s8oM7e.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-CjXTbmvH.mjs → legacy-integration-rows-door-DRC0xn6k.mjs} +1 -1
- package/system/dist/migrations/hub/2026-11-06-addon-settings-bare-rows.d.ts +3 -0
- package/system/dist/{restore-archive-Co2lk3OU.mjs → restore-archive-DH3P9j-V.mjs} +94 -94
- package/system/dist/{restore-archive-GoWJMdHy.js → restore-archive-Dh4gfCRY.js} +1 -1
- package/system/dist/{wal-maintenance-DRnV6QYu.mjs → wal-maintenance-BWfH3Lov.mjs} +0 -0
- package/system/dist/{wal-maintenance-C1Haue74.js → wal-maintenance-DgN_WD5T.js} +0 -0
- package/system/package.json +4 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The keychain refs a storage location's credentials were filed under BEFORE they moved into the
|
|
3
|
+
* location's own record (`row/storage_locations/<id>`). Only the migration
|
|
4
|
+
* `storage-orchestrator/2026-11-07-location-secrets-to-record` reads this shape.
|
|
5
|
+
*/
|
|
6
|
+
import { type SecretMarker } from "@camstack/types";
|
|
7
|
+
/** The ref a credential of `id` was filed under before the move to the record. */
|
|
8
|
+
export declare function legacyLocationSecretRef(id: string, key: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Is `value` a marker the migration has to move: a keychain marker of THIS location's legacy
|
|
11
|
+
* collection. Anything else (a record-bound marker, someone else's ref) is left alone.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isLegacyLocationMarker(id: string, value: unknown): value is SecretMarker;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ports of `location-secrets-to-record`, bound over the locations record kind and the
|
|
3
|
+
* addon's own keychain handle. Kept apart from the addon so the real-SQLite spec drives the
|
|
4
|
+
* very same code the boot runs.
|
|
5
|
+
*/
|
|
6
|
+
import type { RecordKindHandle, SecretsAccess } from "@camstack/types";
|
|
7
|
+
import type { StorageLocationBody } from "../record-kinds.js";
|
|
8
|
+
import type { LocationSecretPorts } from "./location-secrets-to-record.js";
|
|
9
|
+
export interface LocationSecretPortsDeps {
|
|
10
|
+
readonly locations: RecordKindHandle<StorageLocationBody>;
|
|
11
|
+
readonly secrets: SecretsAccess;
|
|
12
|
+
/** The running service re-reads the markers its locations carry. */
|
|
13
|
+
readonly refreshLocations: () => Promise<unknown>;
|
|
14
|
+
}
|
|
15
|
+
export declare function locationSecretPortsOver(deps: LocationSecretPortsDeps): LocationSecretPorts;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The credentials of a storage location move from `row/storage_locations/<id>` to the location's
|
|
3
|
+
* OWN record (planning#440 step 6, D879, D987). A location row kept its provider's credentials as
|
|
4
|
+
* keychain markers inside `config`, filed under a per-row collection of a table that no longer
|
|
5
|
+
* exists; they become the record's `secrets` map, which the records door keeps in the keychain
|
|
6
|
+
* bound to the row (a delete releases them, one row's value is never another's).
|
|
7
|
+
*
|
|
8
|
+
* Fails closed. Every legacy credential is RESOLVED before anything is written: a keychain that
|
|
9
|
+
* is locked, or a value that is gone, refuses the whole step and leaves every row as it was.
|
|
10
|
+
* A row is moved with ONE patch that sets `secrets` and removes the marker keys from `config`;
|
|
11
|
+
* nothing else of the row (its id, its mode, `minFreePercent`, `maxUsedGb`) is part of the patch.
|
|
12
|
+
* The moved credential is read back RESOLVED and must equal what was resolved; only then are the
|
|
13
|
+
* legacy keychain values released. A row with no legacy marker is not touched.
|
|
14
|
+
*
|
|
15
|
+
* The release is its own idempotent SWEEP, run before anything else: a hub that died between a
|
|
16
|
+
* row's patch and its release leaves a row with no legacy marker and a legacy value still in the
|
|
17
|
+
* keychain. For every row whose record carries credential K, a legacy value of K that still
|
|
18
|
+
* exists is released, once the record's own credential has been confirmed to resolve. Only when
|
|
19
|
+
* the sweep found nothing either does the step report `already-done`.
|
|
20
|
+
*/
|
|
21
|
+
import type { MigrationProcedureResult, SecretMarker } from "@camstack/types";
|
|
22
|
+
/** One location row's legacy credentials: config key to the marker that names the old ref. */
|
|
23
|
+
export interface LegacyLocationRow {
|
|
24
|
+
readonly id: string;
|
|
25
|
+
readonly legacy: Readonly<Record<string, SecretMarker>>;
|
|
26
|
+
/** The credential keys the record already carries (`secrets`), whatever their value. */
|
|
27
|
+
readonly recorded: readonly string[];
|
|
28
|
+
}
|
|
29
|
+
/** What the keychain said about one ref. */
|
|
30
|
+
export type LegacySecretRead = {
|
|
31
|
+
readonly kind: "value";
|
|
32
|
+
readonly value: string;
|
|
33
|
+
} | {
|
|
34
|
+
readonly kind: "unavailable" | "missing";
|
|
35
|
+
};
|
|
36
|
+
/** A row after the move, as the runtime reads it. */
|
|
37
|
+
export interface MovedLocationRow {
|
|
38
|
+
/** The credentials of the record, resolved. */
|
|
39
|
+
readonly secrets: Readonly<Record<string, string>>;
|
|
40
|
+
/** The keys left in `config`. */
|
|
41
|
+
readonly configKeys: readonly string[];
|
|
42
|
+
}
|
|
43
|
+
export interface LocationSecretPorts {
|
|
44
|
+
/** Every location row with the legacy markers of its config. A read that fails throws. */
|
|
45
|
+
readLegacy(): Promise<readonly LegacyLocationRow[]>;
|
|
46
|
+
/** The keychain's answer for each ref. */
|
|
47
|
+
resolveLegacy(refs: readonly string[]): Promise<ReadonlyMap<string, LegacySecretRead>>;
|
|
48
|
+
/** One patch: set `secrets` on the record and drop `keys` from its `config`. */
|
|
49
|
+
moveToRecord(id: string, secrets: Readonly<Record<string, string>>): Promise<void>;
|
|
50
|
+
/** The record after the move, credentials resolved; `null` when the row is gone. */
|
|
51
|
+
readMoved(id: string): Promise<MovedLocationRow | null>;
|
|
52
|
+
/** Remove legacy keychain values, after the move was read back. */
|
|
53
|
+
releaseLegacy(refs: readonly string[]): Promise<void>;
|
|
54
|
+
/** The running service re-reads the markers its locations carry. */
|
|
55
|
+
refreshLocations(): Promise<void>;
|
|
56
|
+
}
|
|
57
|
+
export declare function moveLocationSecretsToRecords(ports: LocationSecretPorts): Promise<MigrationProcedureResult>;
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Provider discovery — the pure
|
|
3
|
-
*
|
|
2
|
+
* Provider discovery — the pure collection behind the storage location instances' provider select
|
|
3
|
+
* and form.
|
|
4
4
|
*
|
|
5
|
-
* Walks every registered `storage-provider
|
|
6
|
-
*
|
|
7
|
-
* `
|
|
8
|
-
*
|
|
9
|
-
* individual providers are isolated via `onError` — a single misbehaving
|
|
10
|
-
* driver never denies the whole list.
|
|
5
|
+
* Walks every registered `storage-provider` and collects each one's `getProviderInfo()` blob (its
|
|
6
|
+
* config schema and the intrinsic disk-space policy fields `shouldSaveDiskSpace` +
|
|
7
|
+
* `minFreePercent`). Errors from individual providers are isolated via `onError` — a single
|
|
8
|
+
* misbehaving driver never denies the whole list.
|
|
11
9
|
*
|
|
12
|
-
* Extracted from the addon
|
|
13
|
-
* without booting a `BaseAddon`.
|
|
10
|
+
* Extracted from the addon so the collection is unit-testable without booting a `BaseAddon`.
|
|
14
11
|
*/
|
|
15
|
-
import type {
|
|
16
|
-
/** One
|
|
17
|
-
export type StorageProviderListEntry = Awaited<ReturnType<
|
|
12
|
+
import type { IStorageProviderImpl } from "@camstack/types";
|
|
13
|
+
/** One provider's `getProviderInfo()` answer. */
|
|
14
|
+
export type StorageProviderListEntry = Awaited<ReturnType<IStorageProviderImpl["getProviderInfo"]>>;
|
|
18
15
|
/**
|
|
19
16
|
* Callback invoked when a provider's `getProviderInfo()` throws. The array
|
|
20
17
|
* `index` is passed so the orchestrator can identify which provider failed —
|
|
@@ -15,6 +15,12 @@ export type StorageLocationBody = {
|
|
|
15
15
|
readonly enabled?: boolean;
|
|
16
16
|
readonly mode?: z.infer<typeof StorageLocationModeSchema>;
|
|
17
17
|
readonly isDefault?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The provider's credentials by config key (`password`, `privateKey`, ...), kept in the keychain
|
|
20
|
+
* and bound to THIS row: the records door stores the value and deleting the row deletes it.
|
|
21
|
+
* A location read back puts each one into `config` as a marker (`location-secret-refs.ts`).
|
|
22
|
+
*/
|
|
23
|
+
readonly secrets?: Record<string, string>;
|
|
18
24
|
};
|
|
19
25
|
export declare const StorageLocationBodySchema: z.ZodType<StorageLocationBody>;
|
|
20
26
|
export type StorageSeedMarkerBody = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AddonInitResult, StorageLocation } from "@camstack/types";
|
|
2
2
|
import { BaseAddon } from "@camstack/types";
|
|
3
|
+
import { storageOrchestratorActions } from "./custom-actions.js";
|
|
3
4
|
interface StorageOrchestratorConfig extends Record<string, unknown> {}
|
|
4
5
|
export declare class StorageOrchestratorAddon extends BaseAddon<StorageOrchestratorConfig> {
|
|
5
6
|
private locationsKind;
|
|
@@ -46,6 +47,8 @@ export declare class StorageOrchestratorAddon extends BaseAddon<StorageOrchestra
|
|
|
46
47
|
* is readable through a provider the orchestrator can otherwise use.
|
|
47
48
|
*/
|
|
48
49
|
private readonly secretKeysByProvider;
|
|
50
|
+
/** Credentials of a save on their way to the location's record (`LocationSecretStaging`). */
|
|
51
|
+
private readonly secretStaging;
|
|
49
52
|
/**
|
|
50
53
|
* Disposers run on `onShutdown` — currently the eventBus subscription
|
|
51
54
|
* for `capability:provider-registered` events used by the lazy seed
|
|
@@ -54,7 +57,9 @@ export declare class StorageOrchestratorAddon extends BaseAddon<StorageOrchestra
|
|
|
54
57
|
*/
|
|
55
58
|
private readonly seedSubscriptionDisposers;
|
|
56
59
|
constructor();
|
|
57
|
-
protected onInitialize(): Promise<
|
|
60
|
+
protected onInitialize(): Promise<AddonInitResult<typeof storageOrchestratorActions>>;
|
|
61
|
+
/** Delete a location; the occupancy refusal stands unless `force` was stated. */
|
|
62
|
+
private removeLocation;
|
|
58
63
|
/**
|
|
59
64
|
* The remote behind the data door on a node that owns no engine.
|
|
60
65
|
*
|
|
@@ -197,14 +202,26 @@ export declare class StorageOrchestratorAddon extends BaseAddon<StorageOrchestra
|
|
|
197
202
|
* ref; the provider then fails its own connection, by name.
|
|
198
203
|
*/
|
|
199
204
|
private withResolvedSecrets;
|
|
205
|
+
/** `config` with every keychain marker resolved; the same object when it holds none. */
|
|
206
|
+
private resolvedConfig;
|
|
200
207
|
/**
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
208
|
+
* Save one location the way every door does (the legacy `upsertLocation` and the instance
|
|
209
|
+
* provider): the sentinel travelling back in means "keep the stored secret", the provider's
|
|
210
|
+
* declared credentials are staged for the location's own record (D787, never the row's
|
|
211
|
+
* `config`), a SINGLETON that changes root carries its bytes, and the change is announced.
|
|
212
|
+
* Returns the saved location with its markers; the callers redact it.
|
|
206
213
|
*/
|
|
207
|
-
|
|
214
|
+
saveLocation(input: Omit<StorageLocation, "createdAt" | "updatedAt">, clearSecrets?: readonly string[]): Promise<StorageLocation>;
|
|
215
|
+
/** The record write of a save that staged a credential is awaited, bounded: a hung store must not hang the save. */
|
|
216
|
+
private persistedWithin;
|
|
217
|
+
/**
|
|
218
|
+
* Split the credentials of an incoming config from the rest (D787). A declared secret key with a
|
|
219
|
+
* new value is STAGED (the records door stores it with the row) and the location carries the
|
|
220
|
+
* marker of its own record; a key that is absent, empty or already a marker keeps what is stored;
|
|
221
|
+
* `clear` removes it. A provider that has not registered declares nothing: a new plaintext is
|
|
222
|
+
* never guessed at, it stays as sent until the provider is back and the location is saved.
|
|
223
|
+
*/
|
|
224
|
+
private prepareLocationSecrets;
|
|
208
225
|
private redacted;
|
|
209
226
|
/**
|
|
210
227
|
* Is this location backed by a provider that serves a genuine local
|
|
@@ -324,6 +341,20 @@ export declare class StorageOrchestratorAddon extends BaseAddon<StorageOrchestra
|
|
|
324
341
|
*/
|
|
325
342
|
private repairPrunedDefaults;
|
|
326
343
|
/**
|
|
344
|
+
* Every port of the catalogue, bound once. The reseed port only answers inside the seed pass
|
|
345
|
+
* (it needs the declarations); the credential ports need the hub's records and keychain, so
|
|
346
|
+
* a node without them runs neither step.
|
|
347
|
+
*/
|
|
348
|
+
private cataloguePorts;
|
|
349
|
+
private secretsMoveDone;
|
|
350
|
+
private secretsMoveRunning;
|
|
351
|
+
/**
|
|
352
|
+
* D987: move the credentials of every location from the per-row keychain refs into the
|
|
353
|
+
* location's own record. Runs once the persisted rows are loaded; a refusal (keychain locked,
|
|
354
|
+
* a value gone) leaves every row as it was and the next seed pass asks again.
|
|
355
|
+
*/
|
|
356
|
+
private moveLocationSecrets;
|
|
357
|
+
/**
|
|
327
358
|
* Alert when a declared type has nowhere to write. Runs after every seed pass
|
|
328
359
|
* and every change to the set of locations; a no-op until a pass has an
|
|
329
360
|
* answered state AND the kernel could list its declarers (D315).
|