@camstack/system 1.2.458 → 1.2.459
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-DOELEug8.js → agent-https-Dnr_nIVx.js} +3 -723
- package/dist/{agent-https-CQA3W-3e.mjs → agent-https-Iw3RSQup.mjs} +4 -616
- 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 +5 -7
- package/dist/builtins/alerts/alerts.addon.mjs +5 -7
- package/dist/builtins/alerts/record-kinds.d.ts +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 +242 -4
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +240 -2
- package/dist/builtins/calendars/calendars.addon.js +2 -10
- package/dist/builtins/calendars/calendars.addon.mjs +2 -3
- package/dist/builtins/calendars/record-kinds.d.ts +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 +4 -6
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +4 -6
- package/dist/builtins/device-history/device-history.addon.js +1 -1
- package/dist/builtins/device-history/device-history.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -4
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -4
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +41 -43
- package/dist/builtins/keychain/index.mjs +41 -43
- 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 +24 -40
- package/dist/builtins/local-auth/local-auth.addon.mjs +24 -40
- 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/native-metrics/node-metrics-history-recorder.d.ts +1 -2
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/record-entries/index.js +1 -1
- package/dist/builtins/record-entries/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-protocol.d.ts +0 -15
- 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/owned-sqlite-file.d.ts +0 -44
- package/dist/builtins/sqlite-storage/records/records-catalog.d.ts +0 -2
- package/dist/builtins/sqlite-storage/records/records-engine-types.d.ts +0 -21
- package/dist/builtins/sqlite-storage/records/records-engine.d.ts +3 -20
- package/dist/builtins/sqlite-storage/records/records-provider.d.ts +4 -18
- package/dist/builtins/sqlite-storage/records/records-sql.d.ts +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +0 -17
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +21 -196
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +21 -196
- package/dist/builtins/sqlite-storage/storage-admin-provider.d.ts +6 -14
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +2 -2
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +7 -9
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +7 -9
- package/dist/builtins/system-config/system-config.addon.js +667 -40
- package/dist/builtins/system-config/system-config.addon.mjs +625 -15
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-BVguN7VV.mjs → composition-sources-DNRZWR1j.mjs} +1 -1
- package/dist/{composition-sources-DURQNDJ4.js → composition-sources-b0e_2I-D.js} +1 -1
- package/dist/{constants-Njka8Cv6.js → constants-6OeJiZgi.js} +1 -1
- package/dist/{constants-FGjnsE2x.mjs → constants-BnkOdj9Q.mjs} +1 -1
- package/dist/{device-ca-lEaAQ9Xi.mjs → device-ca-Bnkw8GyU.mjs} +1 -1
- package/dist/{device-ca-BrVK_5s3.js → device-ca-CPTDs--d.js} +1 -1
- package/dist/{dist-BZQjLPiz.js → dist-Bn-RNanh.js} +29 -130
- package/dist/{dist-B_GRPhnY.mjs → dist-Wy8cTxg6.mjs} +30 -113
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-Bg2HfTwP.mjs → hub-mdns-ciao-CJu0nhla.mjs} +2 -2
- package/dist/{hub-mdns-ciao-nce3TXs_.js → hub-mdns-ciao-CTBTlia4.js} +2 -2
- package/dist/index.js +27 -30
- package/dist/index.mjs +11 -14
- package/dist/{restore-archive-C7kLDI_0.mjs → restore-archive-CmP-iiG9.mjs} +84 -331
- package/dist/{restore-archive-FyfZ8YMC.js → restore-archive-DM1OBYq4.js} +89 -342
- package/dist/{wal-maintenance-DfSIOj24.js → wal-maintenance-DUHEp_09.js} +0 -0
- package/dist/{wal-maintenance-Duejh7Lx.mjs → wal-maintenance-NKbwWovZ.mjs} +0 -0
- package/package.json +1 -1
- package/dist/builtins/records/legacy-table-row-count.d.ts +0 -5
- package/dist/builtins/records/phase6-declare-gate.d.ts +0 -28
- package/dist/builtins/sqlite-storage/records/count-settings-array-legacy.d.ts +0 -5
- package/dist/builtins/sqlite-storage/records/count-settings-brokers-legacy.d.ts +0 -6
- package/dist/phase6-declare-gate-Dag1_WR2.js +0 -98
- package/dist/phase6-declare-gate-Lb-mrVvz.mjs +0 -93
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gi as defineRecordKinds } from "./dist-Wy8cTxg6.mjs";
|
|
2
2
|
import { S as backdatedNotBefore, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-DK__ETIe.mjs";
|
|
3
|
-
import { c as SERVER_AUTH_OID$1, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "./constants-FGjnsE2x.mjs";
|
|
4
3
|
import { z } from "zod";
|
|
5
4
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
|
|
6
5
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
@@ -8,615 +7,6 @@ import { isIP } from "node:net";
|
|
|
8
7
|
import { join } from "node:path";
|
|
9
8
|
import * as os$1 from "node:os";
|
|
10
9
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
11
|
-
//#region src/kernel/moleculer/mesh-mtls/mesh-ca.ts
|
|
12
|
-
/**
|
|
13
|
-
* Hub mesh CA — EC P-256, key in the keychain, cert in `cluster.meshCa`.
|
|
14
|
-
*
|
|
15
|
-
* Distinct from the HTTPS local CA (`tls/cert-issue.ts`, RSA): the mesh CA
|
|
16
|
-
* signs node leaves (CN = nodeID) and unlock-ticket JWS (ES256). Issuance uses
|
|
17
|
-
* `@peculiar/x509` over WebCrypto — same library the HTTPS path already uses
|
|
18
|
-
* (installed `1.14.3`; registry latest at adoption time was `2.1.0` — stay on
|
|
19
|
-
* the pinned range already shipping).
|
|
20
|
-
*/
|
|
21
|
-
cryptoProvider.set(webcrypto);
|
|
22
|
-
var MS_PER_DAY$2 = 864e5;
|
|
23
|
-
/** Key generation — EC P-256 (plan). WebCrypto DOM names are not in @types/node. */
|
|
24
|
-
var MESH_KEY_ALGORITHM = {
|
|
25
|
-
name: "ECDSA",
|
|
26
|
-
namedCurve: "P-256"
|
|
27
|
-
};
|
|
28
|
-
/** Signing — ECDSA with SHA-256. */
|
|
29
|
-
var MESH_SIGNING_ALGORITHM = {
|
|
30
|
-
name: "ECDSA",
|
|
31
|
-
hash: "SHA-256"
|
|
32
|
-
};
|
|
33
|
-
/** A node id: letters, digits, `.`, `_`, `-`; at most 63 characters; starts with a letter or digit. */
|
|
34
|
-
var NODE_ID_PATTERN = /^[a-z0-9][a-z0-9._-]{0,62}$/i;
|
|
35
|
-
/** Ids no agent may take: the hub's own, whatever the case (D857). */
|
|
36
|
-
var RESERVED_NODE_IDS = new Set(["hub"]);
|
|
37
|
-
/** True for an id an agent may carry: the pattern, and not a reserved name. */
|
|
38
|
-
function isValidAgentNodeId(nodeId) {
|
|
39
|
-
return NODE_ID_PATTERN.test(nodeId) && !RESERVED_NODE_IDS.has(nodeId.toLowerCase());
|
|
40
|
-
}
|
|
41
|
-
function freshSerial$1() {
|
|
42
|
-
return `00${randomBytes(16).toString("hex")}`;
|
|
43
|
-
}
|
|
44
|
-
function toPkcs8Pem$1(pkcs8) {
|
|
45
|
-
return `${PemConverter.encode(pkcs8, "PRIVATE KEY")}\n`;
|
|
46
|
-
}
|
|
47
|
-
function toCertPem$1(cert) {
|
|
48
|
-
return `${cert.toString("pem")}\n`;
|
|
49
|
-
}
|
|
50
|
-
async function exportKeyPem$1(key) {
|
|
51
|
-
return toPkcs8Pem$1(await webcrypto.subtle.exportKey("pkcs8", key));
|
|
52
|
-
}
|
|
53
|
-
/** SHA-256 fingerprint of the DER cert, colon-hex uppercase (Node style). */
|
|
54
|
-
function caFingerprint(certPem) {
|
|
55
|
-
return new X509Certificate(certPem).fingerprint256;
|
|
56
|
-
}
|
|
57
|
-
/** Compact fingerprint (lowercase hex, no colons). */
|
|
58
|
-
function caFingerprintCompact(certPem) {
|
|
59
|
-
return createHash("sha256").update(new X509Certificate(certPem).raw).digest("hex");
|
|
60
|
-
}
|
|
61
|
-
async function generateMeshCa(now = /* @__PURE__ */ new Date()) {
|
|
62
|
-
const keys = await webcrypto.subtle.generateKey(MESH_KEY_ALGORITHM, true, ["sign", "verify"]);
|
|
63
|
-
const extensions = [
|
|
64
|
-
new BasicConstraintsExtension(true, 0, true),
|
|
65
|
-
new KeyUsagesExtension(KeyUsageFlags.keyCertSign | KeyUsageFlags.cRLSign, true),
|
|
66
|
-
await SubjectKeyIdentifierExtension.create(keys.publicKey)
|
|
67
|
-
];
|
|
68
|
-
const cert = await X509CertificateGenerator.createSelfSigned({
|
|
69
|
-
serialNumber: freshSerial$1(),
|
|
70
|
-
name: `CN=${MESH_CA_COMMON_NAME}`,
|
|
71
|
-
notBefore: backdatedNotBefore(now),
|
|
72
|
-
notAfter: new Date(now.getTime() + MESH_CA_VALIDITY_DAYS * MS_PER_DAY$2),
|
|
73
|
-
keys,
|
|
74
|
-
signingAlgorithm: MESH_SIGNING_ALGORITHM,
|
|
75
|
-
extensions
|
|
76
|
-
});
|
|
77
|
-
return {
|
|
78
|
-
certPem: toCertPem$1(cert),
|
|
79
|
-
keyPem: await exportKeyPem$1(keys.privateKey),
|
|
80
|
-
cert,
|
|
81
|
-
privateKey: keys.privateKey,
|
|
82
|
-
publicKey: keys.publicKey
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
async function loadMeshCa(certPem, keyPem) {
|
|
86
|
-
const cert = new X509Certificate$1(certPem);
|
|
87
|
-
return {
|
|
88
|
-
certPem,
|
|
89
|
-
keyPem,
|
|
90
|
-
cert,
|
|
91
|
-
privateKey: await webcrypto.subtle.importKey("pkcs8", PemConverter.decodeFirst(keyPem), MESH_KEY_ALGORITHM, true, ["sign"]),
|
|
92
|
-
publicKey: await cert.publicKey.export(webcrypto)
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Issue a leaf from a CSR. CN must be present; when `expectedNodeId` is set
|
|
97
|
-
* it must match. Validity: 30 days.
|
|
98
|
-
*/
|
|
99
|
-
async function issueMeshLeafFromCsr(ca, csrPem, opts = {}) {
|
|
100
|
-
const csr = new Pkcs10CertificateRequest(csrPem);
|
|
101
|
-
if (!await csr.verify(webcrypto)) throw new Error("CSR signature is invalid");
|
|
102
|
-
const cn = subjectCn(csr.subject);
|
|
103
|
-
if (cn === null || cn.length === 0) throw new Error("CSR subject has no CN");
|
|
104
|
-
if (opts.allowReserved !== true && !isValidAgentNodeId(cn)) throw new Error(`CSR CN '${cn}' is not an id an agent may carry`);
|
|
105
|
-
if (opts.expectedNodeId !== void 0 && opts.expectedNodeId !== cn) throw new Error(`CSR CN '${cn}' does not match the token nodeId '${opts.expectedNodeId}'`);
|
|
106
|
-
const now = opts.now ?? /* @__PURE__ */ new Date();
|
|
107
|
-
const validDays = opts.validDays ?? 30;
|
|
108
|
-
const serialNumber = freshSerial$1();
|
|
109
|
-
const notAfter = new Date(now.getTime() + validDays * MS_PER_DAY$2);
|
|
110
|
-
const extensions = [
|
|
111
|
-
new BasicConstraintsExtension(false, void 0, true),
|
|
112
|
-
new KeyUsagesExtension(KeyUsageFlags.digitalSignature, true),
|
|
113
|
-
new ExtendedKeyUsageExtension([SERVER_AUTH_OID$1, CLIENT_AUTH_OID]),
|
|
114
|
-
await SubjectKeyIdentifierExtension.create(csr.publicKey),
|
|
115
|
-
await AuthorityKeyIdentifierExtension.create(ca.cert)
|
|
116
|
-
];
|
|
117
|
-
return {
|
|
118
|
-
certPem: toCertPem$1(await X509CertificateGenerator.create({
|
|
119
|
-
serialNumber,
|
|
120
|
-
subject: `CN=${cn}`,
|
|
121
|
-
issuer: ca.cert.subject,
|
|
122
|
-
notBefore: backdatedNotBefore(now),
|
|
123
|
-
notAfter,
|
|
124
|
-
publicKey: csr.publicKey,
|
|
125
|
-
signingKey: ca.privateKey,
|
|
126
|
-
signingAlgorithm: MESH_SIGNING_ALGORITHM,
|
|
127
|
-
extensions
|
|
128
|
-
})),
|
|
129
|
-
serialNumber,
|
|
130
|
-
notAfter,
|
|
131
|
-
commonName: cn
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
/** Issue a leaf for a known nodeID with a freshly generated key pair (tests / hub self). */
|
|
135
|
-
async function issueMeshLeafForNode(ca, nodeId, opts = {}) {
|
|
136
|
-
const keys = await webcrypto.subtle.generateKey(MESH_KEY_ALGORITHM, true, ["sign", "verify"]);
|
|
137
|
-
return {
|
|
138
|
-
...await issueMeshLeafFromCsr(ca, await createMeshCsrPem(keys, nodeId), {
|
|
139
|
-
expectedNodeId: nodeId,
|
|
140
|
-
now: opts.now,
|
|
141
|
-
validDays: opts.validDays,
|
|
142
|
-
allowReserved: true
|
|
143
|
-
}),
|
|
144
|
-
keyPem: await exportKeyPem$1(keys.privateKey)
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
function subjectCn(subject) {
|
|
148
|
-
return /(?:^|,)\s*CN\s*=\s*([^,]+)/i.exec(subject)?.[1]?.trim() ?? null;
|
|
149
|
-
}
|
|
150
|
-
async function createMeshCsrPem(keys, commonName) {
|
|
151
|
-
return `${(await Pkcs10CertificateRequestGenerator.create({
|
|
152
|
-
name: `CN=${commonName}`,
|
|
153
|
-
keys,
|
|
154
|
-
signingAlgorithm: MESH_SIGNING_ALGORITHM
|
|
155
|
-
})).toString("pem")}\n`;
|
|
156
|
-
}
|
|
157
|
-
async function generateMeshKeyPair() {
|
|
158
|
-
return webcrypto.subtle.generateKey(MESH_KEY_ALGORITHM, true, ["sign", "verify"]);
|
|
159
|
-
}
|
|
160
|
-
async function exportMeshPrivateKeyPem(key) {
|
|
161
|
-
return exportKeyPem$1(key);
|
|
162
|
-
}
|
|
163
|
-
//#endregion
|
|
164
|
-
//#region src/kernel/moleculer/mesh-mtls/mesh-certificate-registry.ts
|
|
165
|
-
/**
|
|
166
|
-
* The hub's record of every mesh leaf (D856): which certificate each node holds,
|
|
167
|
-
* when it expires, and which serials are revoked.
|
|
168
|
-
*
|
|
169
|
-
* Three ways a row appears:
|
|
170
|
-
* - `enroll` / `renewal` / `boot` - the hub issued it and wrote it down at the
|
|
171
|
-
* moment of issuing (the authoritative record);
|
|
172
|
-
* - `observed` - a node enrolled before this record existed (or by a path that
|
|
173
|
-
* did not write it) presented this leaf on its LIVE mutual-TLS connection.
|
|
174
|
-
*
|
|
175
|
-
* Revoked serials are persisted here and replayed into the in-memory CRL at boot,
|
|
176
|
-
* so a revocation survives a hub restart. Hub only: agents persist none of it.
|
|
177
|
-
*/
|
|
178
|
-
/**
|
|
179
|
-
* @durable class=config owner=system-config
|
|
180
|
-
* write="the hub records every mesh leaf it issues (enroll, renewal, boot) and every
|
|
181
|
-
* leaf a connected node is observed presenting; a revocation stamps revokedAt"
|
|
182
|
-
* retention="a revoked or expired row is kept 90 days past its end, then reaped; a
|
|
183
|
-
* live row is never deleted. Forgetting a node does not delete its rows."
|
|
184
|
-
*/
|
|
185
|
-
var MESH_NODE_CERTIFICATES_COLLECTION = "mesh_node_certificates";
|
|
186
|
-
var MESH_NODE_CERTIFICATES_COLUMNS = [
|
|
187
|
-
{
|
|
188
|
-
name: "id",
|
|
189
|
-
type: "TEXT",
|
|
190
|
-
primaryKey: true,
|
|
191
|
-
notNull: true
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
name: "nodeId",
|
|
195
|
-
type: "TEXT",
|
|
196
|
-
notNull: true
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
name: "serial",
|
|
200
|
-
type: "TEXT",
|
|
201
|
-
notNull: true
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
name: "fingerprint",
|
|
205
|
-
type: "TEXT",
|
|
206
|
-
notNull: true
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
name: "notBefore",
|
|
210
|
-
type: "INTEGER",
|
|
211
|
-
notNull: true
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
name: "notAfter",
|
|
215
|
-
type: "INTEGER",
|
|
216
|
-
notNull: true
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
name: "issuedAt",
|
|
220
|
-
type: "INTEGER",
|
|
221
|
-
notNull: true
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
name: "issuedVia",
|
|
225
|
-
type: "TEXT",
|
|
226
|
-
notNull: true
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
name: "revokedAt",
|
|
230
|
-
type: "INTEGER"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
name: "revokedReason",
|
|
234
|
-
type: "TEXT"
|
|
235
|
-
}
|
|
236
|
-
];
|
|
237
|
-
var RETENTION_MS = 90 * 864e5;
|
|
238
|
-
/**
|
|
239
|
-
* A leaf the hub signed for a renewal that did not complete. It must not be the node's
|
|
240
|
-
* `current` leaf, but it is NOT on the CRL: the node may still hold it (the swap
|
|
241
|
-
* could have landed without the hub seeing it), and cutting it off would be the
|
|
242
|
-
* outage the hand-over exists to prevent. If the node is later seen presenting it, it
|
|
243
|
-
* is reinstated.
|
|
244
|
-
*/
|
|
245
|
-
var RENEWAL_ABANDONED = "renewal-abandoned";
|
|
246
|
-
var VIAS = [
|
|
247
|
-
"enroll",
|
|
248
|
-
"pairing",
|
|
249
|
-
"renewal",
|
|
250
|
-
"boot",
|
|
251
|
-
"observed"
|
|
252
|
-
];
|
|
253
|
-
/** CN, serial, fingerprint and validity of a leaf PEM (or DER). */
|
|
254
|
-
function describeMeshLeaf(cert) {
|
|
255
|
-
const x509 = new X509Certificate(cert);
|
|
256
|
-
return {
|
|
257
|
-
cn: subjectCn(x509.subject) ?? "",
|
|
258
|
-
serial: x509.serialNumber,
|
|
259
|
-
fingerprint: x509.fingerprint256,
|
|
260
|
-
notBefore: Date.parse(x509.validFrom),
|
|
261
|
-
notAfter: Date.parse(x509.validTo)
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
function normalizeSerial(serial) {
|
|
265
|
-
return serial.replace(/^0x/i, "").replace(/:/g, "").toLowerCase();
|
|
266
|
-
}
|
|
267
|
-
function parse$1(data) {
|
|
268
|
-
const str = (k) => {
|
|
269
|
-
const v = data[k];
|
|
270
|
-
return typeof v === "string" && v.length > 0 ? v : null;
|
|
271
|
-
};
|
|
272
|
-
const num = (k) => {
|
|
273
|
-
const v = data[k];
|
|
274
|
-
return typeof v === "number" && Number.isFinite(v) ? v : null;
|
|
275
|
-
};
|
|
276
|
-
const nodeId = str("nodeId");
|
|
277
|
-
const serial = str("serial");
|
|
278
|
-
const fingerprint = str("fingerprint");
|
|
279
|
-
const notBefore = num("notBefore");
|
|
280
|
-
const notAfter = num("notAfter");
|
|
281
|
-
const issuedAt = num("issuedAt");
|
|
282
|
-
if (nodeId === null || serial === null || fingerprint === null || notBefore === null || notAfter === null || issuedAt === null) return null;
|
|
283
|
-
return {
|
|
284
|
-
nodeId,
|
|
285
|
-
serial,
|
|
286
|
-
fingerprint,
|
|
287
|
-
notBefore,
|
|
288
|
-
notAfter,
|
|
289
|
-
issuedAt,
|
|
290
|
-
issuedVia: VIAS.find((v) => v === data["issuedVia"]) ?? "observed",
|
|
291
|
-
revokedAt: num("revokedAt"),
|
|
292
|
-
revokedReason: str("revokedReason")
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
var MeshCertificateRegistry = class {
|
|
296
|
-
store;
|
|
297
|
-
deps;
|
|
298
|
-
rows = /* @__PURE__ */ new Map();
|
|
299
|
-
constructor(store, deps = {}) {
|
|
300
|
-
this.store = store;
|
|
301
|
-
this.deps = deps;
|
|
302
|
-
}
|
|
303
|
-
recordToBody(record) {
|
|
304
|
-
return {
|
|
305
|
-
nodeId: record.nodeId,
|
|
306
|
-
serial: record.serial,
|
|
307
|
-
fingerprint: record.fingerprint,
|
|
308
|
-
notBefore: record.notBefore,
|
|
309
|
-
notAfter: record.notAfter,
|
|
310
|
-
issuedAt: record.issuedAt,
|
|
311
|
-
issuedVia: record.issuedVia,
|
|
312
|
-
revokedAt: record.revokedAt,
|
|
313
|
-
revokedReason: record.revokedReason
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
now() {
|
|
317
|
-
return (this.deps.now ?? Date.now)();
|
|
318
|
-
}
|
|
319
|
-
async load() {
|
|
320
|
-
const kind = this.deps.meshKind ?? null;
|
|
321
|
-
if (kind !== null) {
|
|
322
|
-
const page = await kind.query({ limit: 1e4 });
|
|
323
|
-
for (const row of page.records) {
|
|
324
|
-
const { fingerprint: _fp, ...body } = row.data;
|
|
325
|
-
const record = parse$1({
|
|
326
|
-
...body,
|
|
327
|
-
fingerprint: row.id
|
|
328
|
-
});
|
|
329
|
-
if (record !== null) this.rows.set(record.fingerprint, record);
|
|
330
|
-
}
|
|
331
|
-
return;
|
|
332
|
-
}
|
|
333
|
-
const rows = await this.store.query.query({ collection: MESH_NODE_CERTIFICATES_COLLECTION });
|
|
334
|
-
for (const row of rows) {
|
|
335
|
-
const record = parse$1(row.data);
|
|
336
|
-
if (record !== null) this.rows.set(record.fingerprint, record);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
/** Write down a leaf the hub just issued. Idempotent per fingerprint. */
|
|
340
|
-
async recordIssued(nodeId, certPem, via) {
|
|
341
|
-
const leaf = describeMeshLeaf(certPem);
|
|
342
|
-
const existing = this.rows.get(leaf.fingerprint);
|
|
343
|
-
if (existing !== void 0) return existing;
|
|
344
|
-
const record = {
|
|
345
|
-
nodeId,
|
|
346
|
-
serial: leaf.serial,
|
|
347
|
-
fingerprint: leaf.fingerprint,
|
|
348
|
-
notBefore: leaf.notBefore,
|
|
349
|
-
notAfter: leaf.notAfter,
|
|
350
|
-
issuedAt: this.now(),
|
|
351
|
-
issuedVia: via,
|
|
352
|
-
revokedAt: null,
|
|
353
|
-
revokedReason: null
|
|
354
|
-
};
|
|
355
|
-
await this.insert(record);
|
|
356
|
-
this.deps.logger?.info("Mesh certificate recorded", {
|
|
357
|
-
tags: { nodeId },
|
|
358
|
-
meta: {
|
|
359
|
-
via,
|
|
360
|
-
serial: leaf.serial,
|
|
361
|
-
notAfter: new Date(leaf.notAfter).toISOString()
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
return record;
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* A node was seen presenting `leaf` on its live connection. A leaf the hub already
|
|
368
|
-
* knows is left alone; an unknown one is recorded `observed` (a node enrolled
|
|
369
|
-
* before this record existed).
|
|
370
|
-
*/
|
|
371
|
-
async recordObserved(nodeId, leaf) {
|
|
372
|
-
const known = this.rows.get(leaf.fingerprint);
|
|
373
|
-
if (known !== void 0) {
|
|
374
|
-
if (known.revokedReason !== "renewal-abandoned") return known.revokedAt === null ? this.abandonRenewalsNewerThan(known) : false;
|
|
375
|
-
const reinstated = {
|
|
376
|
-
...known,
|
|
377
|
-
revokedAt: null,
|
|
378
|
-
revokedReason: null
|
|
379
|
-
};
|
|
380
|
-
this.rows.set(known.fingerprint, reinstated);
|
|
381
|
-
await this.persist(reinstated);
|
|
382
|
-
this.deps.logger?.warn("An abandoned renewal leaf is in use - reinstated", {
|
|
383
|
-
tags: { nodeId },
|
|
384
|
-
meta: { serial: known.serial }
|
|
385
|
-
});
|
|
386
|
-
return true;
|
|
387
|
-
}
|
|
388
|
-
const record = {
|
|
389
|
-
nodeId,
|
|
390
|
-
serial: leaf.serial,
|
|
391
|
-
fingerprint: leaf.fingerprint,
|
|
392
|
-
notBefore: leaf.notBefore,
|
|
393
|
-
notAfter: leaf.notAfter,
|
|
394
|
-
issuedAt: this.now(),
|
|
395
|
-
issuedVia: "observed",
|
|
396
|
-
revokedAt: null,
|
|
397
|
-
revokedReason: null
|
|
398
|
-
};
|
|
399
|
-
await this.insert(record);
|
|
400
|
-
this.deps.logger?.info("Mesh certificate observed on a live connection and recorded", {
|
|
401
|
-
tags: { nodeId },
|
|
402
|
-
meta: {
|
|
403
|
-
serial: leaf.serial,
|
|
404
|
-
fingerprint: leaf.fingerprint
|
|
405
|
-
}
|
|
406
|
-
});
|
|
407
|
-
return true;
|
|
408
|
-
}
|
|
409
|
-
list(nodeId) {
|
|
410
|
-
return [...this.rows.values()].filter((r) => nodeId === void 0 || r.nodeId === nodeId).toSorted((a, b) => b.issuedAt - a.issuedAt);
|
|
411
|
-
}
|
|
412
|
-
/** The newest non-revoked leaf of a node, or `undefined`. */
|
|
413
|
-
currentFor(nodeId) {
|
|
414
|
-
return this.list(nodeId).find((r) => r.revokedAt === null);
|
|
415
|
-
}
|
|
416
|
-
/** Every non-revoked leaf of a node (a renewal in flight has two). */
|
|
417
|
-
liveFor(nodeId) {
|
|
418
|
-
return this.list(nodeId).filter((r) => r.revokedAt === null);
|
|
419
|
-
}
|
|
420
|
-
/** Stamp a leaf revoked (and mirror it into `crl`). `false` when unknown or already revoked. */
|
|
421
|
-
async revoke(fingerprint, reason, crl) {
|
|
422
|
-
const record = this.rows.get(fingerprint);
|
|
423
|
-
if (record === void 0 || record.revokedAt !== null) return false;
|
|
424
|
-
const revoked = {
|
|
425
|
-
...record,
|
|
426
|
-
revokedAt: this.now(),
|
|
427
|
-
revokedReason: reason
|
|
428
|
-
};
|
|
429
|
-
this.rows.set(fingerprint, revoked);
|
|
430
|
-
crl?.revoke(record.serial);
|
|
431
|
-
await this.persist(revoked);
|
|
432
|
-
this.deps.logger?.warn("Mesh certificate revoked", {
|
|
433
|
-
tags: { nodeId: record.nodeId },
|
|
434
|
-
meta: {
|
|
435
|
-
serial: record.serial,
|
|
436
|
-
reason
|
|
437
|
-
}
|
|
438
|
-
});
|
|
439
|
-
return true;
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* Operator revocation of a whole node: EVERY leaf of the node that is not already on the
|
|
443
|
-
* CRL goes on it - the current one, an observed one, a renewal one, and a leaf that was set
|
|
444
|
-
* aside (`renewal-abandoned`: a copy of it may sit on a stolen box, and it must not stay
|
|
445
|
-
* valid just because the hub once set it aside). Returns the serials put on the CRL.
|
|
446
|
-
* A leaf revoked this way is never reinstated by `recordObserved`.
|
|
447
|
-
*/
|
|
448
|
-
async revokeAllForNode(nodeId, reason, crl, keepFingerprint) {
|
|
449
|
-
const serials = [];
|
|
450
|
-
for (const record of this.list(nodeId)) {
|
|
451
|
-
if (keepFingerprint !== void 0 && record.fingerprint === keepFingerprint) continue;
|
|
452
|
-
if (record.revokedAt !== null && record.revokedReason !== "renewal-abandoned") continue;
|
|
453
|
-
const revoked = {
|
|
454
|
-
...record,
|
|
455
|
-
revokedAt: record.revokedAt ?? this.now(),
|
|
456
|
-
revokedReason: reason
|
|
457
|
-
};
|
|
458
|
-
this.rows.set(record.fingerprint, revoked);
|
|
459
|
-
crl.revoke(record.serial);
|
|
460
|
-
await this.persist(revoked);
|
|
461
|
-
serials.push(record.serial);
|
|
462
|
-
}
|
|
463
|
-
if (serials.length > 0) this.deps.logger?.warn("Every mesh certificate of the node revoked", {
|
|
464
|
-
tags: { nodeId },
|
|
465
|
-
meta: {
|
|
466
|
-
serials,
|
|
467
|
-
reason
|
|
468
|
-
}
|
|
469
|
-
});
|
|
470
|
-
return serials;
|
|
471
|
-
}
|
|
472
|
-
/**
|
|
473
|
-
* At boot: a node with TWO live leaves had a renewal in flight when the hub stopped. The
|
|
474
|
-
* newer (renewal) one is set aside - it is not the node's current leaf until the node is
|
|
475
|
-
* seen presenting it, which reinstates it. It is NOT put on the CRL.
|
|
476
|
-
*/
|
|
477
|
-
async settleInterruptedRenewals() {
|
|
478
|
-
let settled = 0;
|
|
479
|
-
const byNode = /* @__PURE__ */ new Map();
|
|
480
|
-
for (const record of this.rows.values()) {
|
|
481
|
-
if (record.revokedAt !== null) continue;
|
|
482
|
-
byNode.set(record.nodeId, [...byNode.get(record.nodeId) ?? [], record]);
|
|
483
|
-
}
|
|
484
|
-
for (const records of byNode.values()) {
|
|
485
|
-
if (records.length < 2) continue;
|
|
486
|
-
for (const record of records) if (record.issuedVia === "renewal" && await this.abandon(record.fingerprint)) settled += 1;
|
|
487
|
-
}
|
|
488
|
-
return settled;
|
|
489
|
-
}
|
|
490
|
-
/** Set a never-completed renewal leaf aside (not current, NOT on the CRL). */
|
|
491
|
-
/** Fingerprints of renewal leaves whose handover is running right now (this process only). */
|
|
492
|
-
renewalsInFlight = /* @__PURE__ */ new Set();
|
|
493
|
-
/**
|
|
494
|
-
* A renewal's leaf is "in flight" from signing until the handover ends. While it is, a node seen
|
|
495
|
-
* presenting its OLD leaf is simply not swapped yet: the new leaf is not set aside (that would
|
|
496
|
-
* flap set-aside / reinstate on the node's first connection with it).
|
|
497
|
-
*/
|
|
498
|
-
beginRenewal(fingerprint) {
|
|
499
|
-
this.renewalsInFlight.add(fingerprint);
|
|
500
|
-
}
|
|
501
|
-
endRenewal(fingerprint) {
|
|
502
|
-
this.renewalsInFlight.delete(fingerprint);
|
|
503
|
-
}
|
|
504
|
-
async abandonRenewalsNewerThan(presented) {
|
|
505
|
-
let changed = false;
|
|
506
|
-
for (const record of this.liveFor(presented.nodeId)) {
|
|
507
|
-
if (record.fingerprint === presented.fingerprint) continue;
|
|
508
|
-
if (record.issuedVia !== "renewal" || record.issuedAt <= presented.issuedAt) continue;
|
|
509
|
-
if (this.renewalsInFlight.has(record.fingerprint)) continue;
|
|
510
|
-
if (await this.abandon(record.fingerprint)) changed = true;
|
|
511
|
-
}
|
|
512
|
-
return changed;
|
|
513
|
-
}
|
|
514
|
-
async abandon(fingerprint) {
|
|
515
|
-
const record = this.rows.get(fingerprint);
|
|
516
|
-
if (record === void 0 || record.revokedAt !== null) return false;
|
|
517
|
-
const abandoned = {
|
|
518
|
-
...record,
|
|
519
|
-
revokedAt: this.now(),
|
|
520
|
-
revokedReason: RENEWAL_ABANDONED
|
|
521
|
-
};
|
|
522
|
-
this.rows.set(fingerprint, abandoned);
|
|
523
|
-
await this.persist(abandoned);
|
|
524
|
-
this.deps.logger?.warn("Renewal leaf set aside (not current, not on the CRL)", {
|
|
525
|
-
tags: { nodeId: record.nodeId },
|
|
526
|
-
meta: { serial: record.serial }
|
|
527
|
-
});
|
|
528
|
-
return true;
|
|
529
|
-
}
|
|
530
|
-
/** Replay every persisted revocation into `crl` (hub boot). Set-aside leaves are not revocations. */
|
|
531
|
-
restoreCrl(crl) {
|
|
532
|
-
let restored = 0;
|
|
533
|
-
for (const record of this.rows.values()) {
|
|
534
|
-
if (record.revokedAt === null || record.revokedReason === "renewal-abandoned") continue;
|
|
535
|
-
crl.revoke(record.serial);
|
|
536
|
-
restored += 1;
|
|
537
|
-
}
|
|
538
|
-
return restored;
|
|
539
|
-
}
|
|
540
|
-
/** Is `serial` listed as revoked here? */
|
|
541
|
-
isRevoked(serial) {
|
|
542
|
-
const wanted = normalizeSerial(serial);
|
|
543
|
-
for (const record of this.rows.values()) if (record.revokedAt !== null && record.revokedReason !== "renewal-abandoned" && normalizeSerial(record.serial) === wanted) return true;
|
|
544
|
-
return false;
|
|
545
|
-
}
|
|
546
|
-
async reap() {
|
|
547
|
-
const cutoff = this.now() - RETENTION_MS;
|
|
548
|
-
const dead = [...this.rows.values()].filter((r) => (r.revokedAt ?? r.notAfter) < cutoff);
|
|
549
|
-
for (const r of dead) {
|
|
550
|
-
this.rows.delete(r.fingerprint);
|
|
551
|
-
await this.deleteRow(r.fingerprint);
|
|
552
|
-
}
|
|
553
|
-
return dead.length;
|
|
554
|
-
}
|
|
555
|
-
async insert(record) {
|
|
556
|
-
this.rows.set(record.fingerprint, record);
|
|
557
|
-
const kind = this.deps.meshKind ?? null;
|
|
558
|
-
if (kind !== null) {
|
|
559
|
-
const parsed = systemConfigRecordKinds["mesh-node-certificates"].schema.safeParse(this.recordToBody(record));
|
|
560
|
-
if (!parsed.success) throw new Error(parsed.error.message);
|
|
561
|
-
await kind.put({
|
|
562
|
-
id: record.fingerprint,
|
|
563
|
-
data: parsed.data
|
|
564
|
-
});
|
|
565
|
-
return;
|
|
566
|
-
}
|
|
567
|
-
await this.store.insert.mutate({
|
|
568
|
-
collection: MESH_NODE_CERTIFICATES_COLLECTION,
|
|
569
|
-
record: {
|
|
570
|
-
id: record.fingerprint,
|
|
571
|
-
data: { ...record }
|
|
572
|
-
}
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
async deleteRow(fingerprint) {
|
|
576
|
-
const kind = this.deps.meshKind ?? null;
|
|
577
|
-
if (kind !== null) {
|
|
578
|
-
await kind.delete(fingerprint);
|
|
579
|
-
return;
|
|
580
|
-
}
|
|
581
|
-
await this.store.delete.mutate({
|
|
582
|
-
collection: MESH_NODE_CERTIFICATES_COLLECTION,
|
|
583
|
-
key: fingerprint
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
async persist(record) {
|
|
587
|
-
try {
|
|
588
|
-
const kind = this.deps.meshKind ?? null;
|
|
589
|
-
if (kind !== null) {
|
|
590
|
-
const parsed = systemConfigRecordKinds["mesh-node-certificates"].schema.safeParse(this.recordToBody(record));
|
|
591
|
-
if (!parsed.success) throw new Error(parsed.error.message);
|
|
592
|
-
await kind.put({
|
|
593
|
-
id: record.fingerprint,
|
|
594
|
-
data: parsed.data
|
|
595
|
-
});
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
await this.store.update.mutate({
|
|
599
|
-
collection: MESH_NODE_CERTIFICATES_COLLECTION,
|
|
600
|
-
id: record.fingerprint,
|
|
601
|
-
data: { ...record }
|
|
602
|
-
});
|
|
603
|
-
} catch (error) {
|
|
604
|
-
this.deps.logger?.error("Mesh certificate write failed - the change holds until restart", {
|
|
605
|
-
tags: { nodeId: record.nodeId },
|
|
606
|
-
meta: { error: error instanceof Error ? error.message : String(error) }
|
|
607
|
-
});
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
};
|
|
611
|
-
var SLOT$1 = Symbol.for("camstack.mesh.certificate-registry");
|
|
612
|
-
function setProcessMeshCertificateRegistry(registry) {
|
|
613
|
-
if (registry === null) Reflect.deleteProperty(globalThis, SLOT$1);
|
|
614
|
-
else Reflect.set(globalThis, SLOT$1, registry);
|
|
615
|
-
}
|
|
616
|
-
function getProcessMeshCertificateRegistry() {
|
|
617
|
-
const value = Reflect.get(globalThis, SLOT$1);
|
|
618
|
-
return value !== null && typeof value === "object" && typeof Reflect.get(value, "recordIssued") === "function" ? value : null;
|
|
619
|
-
}
|
|
620
10
|
var MeshNodeCertificateBodySchema = z.object({
|
|
621
11
|
nodeId: z.string(),
|
|
622
12
|
serial: z.string(),
|
|
@@ -649,8 +39,7 @@ var _systemConfigRecordKinds = defineRecordKinds({
|
|
|
649
39
|
retention: {
|
|
650
40
|
owner: "system-config",
|
|
651
41
|
reason: "daily reap removes revoked/expired rows older than 90 days"
|
|
652
|
-
}
|
|
653
|
-
adoptsFrom: MESH_NODE_CERTIFICATES_COLLECTION
|
|
42
|
+
}
|
|
654
43
|
},
|
|
655
44
|
"agent-https-names": {
|
|
656
45
|
schema: AgentHttpsNameBodySchema,
|
|
@@ -658,8 +47,7 @@ var _systemConfigRecordKinds = defineRecordKinds({
|
|
|
658
47
|
writeTrigger: "agent HTTPS certificate issuance records the CN/SAN set",
|
|
659
48
|
device: "none",
|
|
660
49
|
at: "none",
|
|
661
|
-
retention: { none: "one row per node id" }
|
|
662
|
-
adoptsFrom: AGENT_HTTPS_NAMES_COLLECTION
|
|
50
|
+
retention: { none: "one row per node id" }
|
|
663
51
|
}
|
|
664
52
|
});
|
|
665
53
|
var systemConfigRecordKinds = _systemConfigRecordKinds;
|
|
@@ -1654,4 +1042,4 @@ function pemDigest(pem) {
|
|
|
1654
1042
|
return createHash("sha256").update(pem).digest("hex").slice(0, 16);
|
|
1655
1043
|
}
|
|
1656
1044
|
//#endregion
|
|
1657
|
-
export {
|
|
1045
|
+
export { buildNameConstraintSet as A, setProcessAgentHttpsNames as B, LEAF_RENEWAL_WINDOW_DAYS as C, reasonRequiresNewCa as D, evaluateExistingCert as E, readNameConstraints as F, AGENT_HTTPS_NAMES_COLLECTION as I, AGENT_HTTPS_NAMES_COLUMNS as L, isLocalOnlyHostname as M, permitsIdentity as N, PERMITTED_DNS_SUFFIXES as O, permitsName as P, AgentHttpsNames as R, CA_VALIDITY_DAYS as S, SERVER_AUTH_OID as T, systemConfigRecordKinds as V, issueLeaf as _, collectAgentNames as a, collectCertIdentity as b, installAgentHttps as c, issueAgentHttpsLeaf as d, loadAgentHttps as f, generateCa as g, CA_COMMON_NAME as h, certificateNames as i, isConstrainedCa as j, PERMITTED_IP_RANGES as k, isContainerBridgeAddress as l, pinnedHttpsCaFingerprint as m, acceptAgentSans as n, createAgentHttpsRequest as o, pemDigest as p, agentHttpsPaths as r, describeHttpsLeaf as s, AgentHttpsInstallError as t, isPrivateAddress as u, loadCa as v, MAX_LEAF_VALIDITY_DAYS as w, systemHostFacts as x, localCaCommonName as y, getProcessAgentHttpsNames as z };
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ta as EventCategory, ni as BaseAddon, ti as errMsg, yt as addonPagesCapability } from "../../dist-Wy8cTxg6.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Bn-RNanh.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ta as EventCategory, ni as BaseAddon, ti as errMsg, xt as addonWidgetsCapability } from "../../dist-Wy8cTxg6.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|