@forgezero/agent 0.1.97 → 0.1.99
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-heartbeat.js +1 -1
- package/dist/bootstrap.d.ts +2 -2
- package/dist/bootstrap.js +28 -8
- package/dist/fz-agent.js +1 -1
- package/dist/fz.js +28 -8
- package/dist/metal-bootstrap.js +1 -1
- package/dist/operator-bootstrap.js +28 -8
- package/dist/platform-fleet-verification.js +1 -1
- package/dist/provision.js +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/agent-heartbeat.js
CHANGED
package/dist/bootstrap.d.ts
CHANGED
|
@@ -195,8 +195,8 @@ export declare const legacyBootstrapIdentityDigest: (config: BootstrapConfig) =>
|
|
|
195
195
|
/**
|
|
196
196
|
* Exact, reviewed identity migrations for an already-installed platform host.
|
|
197
197
|
* This is deliberately not a generic "stored coordinates match" escape hatch:
|
|
198
|
-
* only the development collector transition
|
|
199
|
-
*
|
|
198
|
+
* only the development collector transition and the addition of reviewed
|
|
199
|
+
* genesis attestation evidence are accepted.
|
|
200
200
|
*/
|
|
201
201
|
export declare function approvedPlatformRepairIdentityDigests(config: PlatformBootstrapConfig): readonly string[];
|
|
202
202
|
/** Exact prior-release identities accepted only while generation one is still unenrolled. */
|
package/dist/bootstrap.js
CHANGED
|
@@ -1420,7 +1420,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
|
|
|
1420
1420
|
var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
|
|
1421
1421
|
|
|
1422
1422
|
// src/version.ts
|
|
1423
|
-
var VERSION = "0.1.
|
|
1423
|
+
var VERSION = "0.1.99";
|
|
1424
1424
|
|
|
1425
1425
|
// src/software.ts
|
|
1426
1426
|
var PINNED_BUN_VERSION = "1.3.14";
|
|
@@ -4296,12 +4296,28 @@ function bootstrapIdentityDigest(config) {
|
|
|
4296
4296
|
}
|
|
4297
4297
|
var legacyBootstrapIdentityDigest = (config) => createHash2("sha256").update(JSON.stringify(bootstrapIdentity(config, true))).digest("hex");
|
|
4298
4298
|
function approvedPlatformRepairIdentityDigests(config) {
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4299
|
+
const prior = [];
|
|
4300
|
+
const attestation = config.runtime.environment.initialInventory?.attestation;
|
|
4301
|
+
if (attestation) {
|
|
4302
|
+
const beforeAttestation = structuredClone(config);
|
|
4303
|
+
delete beforeAttestation.runtime.environment.initialInventory.attestation;
|
|
4304
|
+
prior.push(beforeAttestation);
|
|
4305
|
+
}
|
|
4306
|
+
const telemetryMigration = config.environment === "development" && config.telemetryEndpoint === LOCAL_DEBUG_OTEL_EXPORT && config.runtime.environment.agentOtlpEndpoint === "http://127.0.0.1:4318";
|
|
4307
|
+
if (telemetryMigration) {
|
|
4308
|
+
const beforeTelemetry = structuredClone(config);
|
|
4309
|
+
beforeTelemetry.telemetryEndpoint = "https://otel.forgezero.net";
|
|
4310
|
+
beforeTelemetry.runtime.environment.agentOtlpEndpoint = "https://otel.forgezero.net";
|
|
4311
|
+
prior.push(beforeTelemetry);
|
|
4312
|
+
if (attestation) {
|
|
4313
|
+
delete beforeTelemetry.runtime.environment.initialInventory.attestation;
|
|
4314
|
+
prior.push(beforeTelemetry);
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
return [...new Set(prior.flatMap((previous) => [
|
|
4318
|
+
bootstrapIdentityDigest(previous),
|
|
4319
|
+
legacyBootstrapIdentityDigest(previous)
|
|
4320
|
+
]))];
|
|
4305
4321
|
}
|
|
4306
4322
|
function interruptedPlatformReleaseIdentityDigests(config, releaseEvidence, bootstrapManifest) {
|
|
4307
4323
|
if (!config.runtime.environment.initialInventory)
|
|
@@ -5011,8 +5027,12 @@ function strictBootstrapDocument(value) {
|
|
|
5011
5027
|
], "runtime environment");
|
|
5012
5028
|
const environment = runtime.environment;
|
|
5013
5029
|
if (environment.initialInventory !== undefined) {
|
|
5014
|
-
const inventory = exactKeys(environment.initialInventory, ["metalHostname", "region", "computes", "deployment"], "initial inventory");
|
|
5030
|
+
const inventory = exactKeys(environment.initialInventory, ["metalHostname", "region", "computes", "attestation", "deployment"], "initial inventory");
|
|
5015
5031
|
exactKeys(inventory.region, ["key", "label", "country", "city", "confidentialCapable"], "initial inventory region");
|
|
5032
|
+
if (inventory.attestation !== undefined) {
|
|
5033
|
+
const attestation = exactKeys(inventory.attestation, ["measurement", "tcbFloor"], "initial attestation evidence");
|
|
5034
|
+
exactKeys(attestation.tcbFloor, ["bootLoader", "tee", "snp", "microcode"], "initial attestation TCB floor");
|
|
5035
|
+
}
|
|
5016
5036
|
if (inventory.deployment !== undefined)
|
|
5017
5037
|
exactKeys(inventory.deployment, ["source", "branch", "revision", "bundleSha256"], "initial deployment evidence");
|
|
5018
5038
|
if (!Array.isArray(inventory.computes))
|
package/dist/fz-agent.js
CHANGED
package/dist/fz.js
CHANGED
|
@@ -4841,7 +4841,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
|
|
|
4841
4841
|
var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
|
|
4842
4842
|
|
|
4843
4843
|
// src/version.ts
|
|
4844
|
-
var VERSION2 = "0.1.
|
|
4844
|
+
var VERSION2 = "0.1.99";
|
|
4845
4845
|
|
|
4846
4846
|
// src/software.ts
|
|
4847
4847
|
var PINNED_BUN_VERSION = "1.3.14";
|
|
@@ -14681,12 +14681,28 @@ function bootstrapIdentityDigest(config) {
|
|
|
14681
14681
|
}
|
|
14682
14682
|
var legacyBootstrapIdentityDigest = (config) => createHash4("sha256").update(JSON.stringify(bootstrapIdentity(config, true))).digest("hex");
|
|
14683
14683
|
function approvedPlatformRepairIdentityDigests(config) {
|
|
14684
|
-
|
|
14685
|
-
|
|
14686
|
-
|
|
14687
|
-
|
|
14688
|
-
|
|
14689
|
-
|
|
14684
|
+
const prior = [];
|
|
14685
|
+
const attestation = config.runtime.environment.initialInventory?.attestation;
|
|
14686
|
+
if (attestation) {
|
|
14687
|
+
const beforeAttestation = structuredClone(config);
|
|
14688
|
+
delete beforeAttestation.runtime.environment.initialInventory.attestation;
|
|
14689
|
+
prior.push(beforeAttestation);
|
|
14690
|
+
}
|
|
14691
|
+
const telemetryMigration = config.environment === "development" && config.telemetryEndpoint === LOCAL_DEBUG_OTEL_EXPORT && config.runtime.environment.agentOtlpEndpoint === "http://127.0.0.1:4318";
|
|
14692
|
+
if (telemetryMigration) {
|
|
14693
|
+
const beforeTelemetry = structuredClone(config);
|
|
14694
|
+
beforeTelemetry.telemetryEndpoint = "https://otel.forgezero.net";
|
|
14695
|
+
beforeTelemetry.runtime.environment.agentOtlpEndpoint = "https://otel.forgezero.net";
|
|
14696
|
+
prior.push(beforeTelemetry);
|
|
14697
|
+
if (attestation) {
|
|
14698
|
+
delete beforeTelemetry.runtime.environment.initialInventory.attestation;
|
|
14699
|
+
prior.push(beforeTelemetry);
|
|
14700
|
+
}
|
|
14701
|
+
}
|
|
14702
|
+
return [...new Set(prior.flatMap((previous) => [
|
|
14703
|
+
bootstrapIdentityDigest(previous),
|
|
14704
|
+
legacyBootstrapIdentityDigest(previous)
|
|
14705
|
+
]))];
|
|
14690
14706
|
}
|
|
14691
14707
|
function interruptedPlatformReleaseIdentityDigests(config, releaseEvidence, bootstrapManifest) {
|
|
14692
14708
|
if (!config.runtime.environment.initialInventory)
|
|
@@ -15396,8 +15412,12 @@ function strictBootstrapDocument(value) {
|
|
|
15396
15412
|
], "runtime environment");
|
|
15397
15413
|
const environment = runtime.environment;
|
|
15398
15414
|
if (environment.initialInventory !== undefined) {
|
|
15399
|
-
const inventory = exactKeys2(environment.initialInventory, ["metalHostname", "region", "computes", "deployment"], "initial inventory");
|
|
15415
|
+
const inventory = exactKeys2(environment.initialInventory, ["metalHostname", "region", "computes", "attestation", "deployment"], "initial inventory");
|
|
15400
15416
|
exactKeys2(inventory.region, ["key", "label", "country", "city", "confidentialCapable"], "initial inventory region");
|
|
15417
|
+
if (inventory.attestation !== undefined) {
|
|
15418
|
+
const attestation = exactKeys2(inventory.attestation, ["measurement", "tcbFloor"], "initial attestation evidence");
|
|
15419
|
+
exactKeys2(attestation.tcbFloor, ["bootLoader", "tee", "snp", "microcode"], "initial attestation TCB floor");
|
|
15420
|
+
}
|
|
15401
15421
|
if (inventory.deployment !== undefined)
|
|
15402
15422
|
exactKeys2(inventory.deployment, ["source", "branch", "revision", "bundleSha256"], "initial deployment evidence");
|
|
15403
15423
|
if (!Array.isArray(inventory.computes))
|
package/dist/metal-bootstrap.js
CHANGED
|
@@ -366,7 +366,7 @@ function systemdAgentEgressDirectives(loopbackTcpPorts = []) {
|
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
// src/version.ts
|
|
369
|
-
var VERSION = "0.1.
|
|
369
|
+
var VERSION = "0.1.99";
|
|
370
370
|
|
|
371
371
|
// src/otel-collector.ts
|
|
372
372
|
var FORGEZERO_OTEL_COLLECTOR_UNIT = "forgezero-otel-collector.service";
|
|
@@ -1420,7 +1420,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
|
|
|
1420
1420
|
var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
|
|
1421
1421
|
|
|
1422
1422
|
// src/version.ts
|
|
1423
|
-
var VERSION = "0.1.
|
|
1423
|
+
var VERSION = "0.1.99";
|
|
1424
1424
|
|
|
1425
1425
|
// src/software.ts
|
|
1426
1426
|
var PINNED_BUN_VERSION = "1.3.14";
|
|
@@ -4296,12 +4296,28 @@ function bootstrapIdentityDigest(config) {
|
|
|
4296
4296
|
}
|
|
4297
4297
|
var legacyBootstrapIdentityDigest = (config) => createHash2("sha256").update(JSON.stringify(bootstrapIdentity(config, true))).digest("hex");
|
|
4298
4298
|
function approvedPlatformRepairIdentityDigests(config) {
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4299
|
+
const prior = [];
|
|
4300
|
+
const attestation = config.runtime.environment.initialInventory?.attestation;
|
|
4301
|
+
if (attestation) {
|
|
4302
|
+
const beforeAttestation = structuredClone(config);
|
|
4303
|
+
delete beforeAttestation.runtime.environment.initialInventory.attestation;
|
|
4304
|
+
prior.push(beforeAttestation);
|
|
4305
|
+
}
|
|
4306
|
+
const telemetryMigration = config.environment === "development" && config.telemetryEndpoint === LOCAL_DEBUG_OTEL_EXPORT && config.runtime.environment.agentOtlpEndpoint === "http://127.0.0.1:4318";
|
|
4307
|
+
if (telemetryMigration) {
|
|
4308
|
+
const beforeTelemetry = structuredClone(config);
|
|
4309
|
+
beforeTelemetry.telemetryEndpoint = "https://otel.forgezero.net";
|
|
4310
|
+
beforeTelemetry.runtime.environment.agentOtlpEndpoint = "https://otel.forgezero.net";
|
|
4311
|
+
prior.push(beforeTelemetry);
|
|
4312
|
+
if (attestation) {
|
|
4313
|
+
delete beforeTelemetry.runtime.environment.initialInventory.attestation;
|
|
4314
|
+
prior.push(beforeTelemetry);
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
return [...new Set(prior.flatMap((previous) => [
|
|
4318
|
+
bootstrapIdentityDigest(previous),
|
|
4319
|
+
legacyBootstrapIdentityDigest(previous)
|
|
4320
|
+
]))];
|
|
4305
4321
|
}
|
|
4306
4322
|
function interruptedPlatformReleaseIdentityDigests(config, releaseEvidence, bootstrapManifest) {
|
|
4307
4323
|
if (!config.runtime.environment.initialInventory)
|
|
@@ -5011,8 +5027,12 @@ function strictBootstrapDocument(value) {
|
|
|
5011
5027
|
], "runtime environment");
|
|
5012
5028
|
const environment = runtime.environment;
|
|
5013
5029
|
if (environment.initialInventory !== undefined) {
|
|
5014
|
-
const inventory = exactKeys(environment.initialInventory, ["metalHostname", "region", "computes", "deployment"], "initial inventory");
|
|
5030
|
+
const inventory = exactKeys(environment.initialInventory, ["metalHostname", "region", "computes", "attestation", "deployment"], "initial inventory");
|
|
5015
5031
|
exactKeys(inventory.region, ["key", "label", "country", "city", "confidentialCapable"], "initial inventory region");
|
|
5032
|
+
if (inventory.attestation !== undefined) {
|
|
5033
|
+
const attestation = exactKeys(inventory.attestation, ["measurement", "tcbFloor"], "initial attestation evidence");
|
|
5034
|
+
exactKeys(attestation.tcbFloor, ["bootLoader", "tee", "snp", "microcode"], "initial attestation TCB floor");
|
|
5035
|
+
}
|
|
5016
5036
|
if (inventory.deployment !== undefined)
|
|
5017
5037
|
exactKeys(inventory.deployment, ["source", "branch", "revision", "bundleSha256"], "initial deployment evidence");
|
|
5018
5038
|
if (!Array.isArray(inventory.computes))
|
|
@@ -2908,7 +2908,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
|
|
|
2908
2908
|
}
|
|
2909
2909
|
|
|
2910
2910
|
// src/version.ts
|
|
2911
|
-
var VERSION3 = "0.1.
|
|
2911
|
+
var VERSION3 = "0.1.99";
|
|
2912
2912
|
|
|
2913
2913
|
// src/egress-policy.ts
|
|
2914
2914
|
import { realpathSync as realpathSync3 } from "node:fs";
|
package/dist/provision.js
CHANGED
|
@@ -2908,7 +2908,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
|
|
|
2908
2908
|
}
|
|
2909
2909
|
|
|
2910
2910
|
// src/version.ts
|
|
2911
|
-
var VERSION3 = "0.1.
|
|
2911
|
+
var VERSION3 = "0.1.99";
|
|
2912
2912
|
|
|
2913
2913
|
// src/egress-policy.ts
|
|
2914
2914
|
import { realpathSync as realpathSync3 } from "node:fs";
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** One package version shared by both public binaries. Pinned to package.json by tests. */
|
|
2
|
-
export declare const VERSION = "0.1.
|
|
2
|
+
export declare const VERSION = "0.1.99";
|