@forgezero/agent 0.1.112 → 0.1.114
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.js +2 -2
- package/dist/fz-agent.js +1 -1
- package/dist/fz.js +12 -4
- package/dist/metal-bootstrap.js +1 -1
- package/dist/operator-bootstrap.js +12 -4
- 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.js
CHANGED
|
@@ -1460,7 +1460,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
|
|
|
1460
1460
|
var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
|
|
1461
1461
|
|
|
1462
1462
|
// src/version.ts
|
|
1463
|
-
var VERSION = "0.1.
|
|
1463
|
+
var VERSION = "0.1.114";
|
|
1464
1464
|
|
|
1465
1465
|
// src/software.ts
|
|
1466
1466
|
var PINNED_BUN_VERSION = "1.3.14";
|
|
@@ -4132,7 +4132,7 @@ User=arangodb
|
|
|
4132
4132
|
Group=arangodb
|
|
4133
4133
|
LoadCredentialEncrypted=arangodb-jwt:${JWT_CREDENTIAL}
|
|
4134
4134
|
LoadCredentialEncrypted=arangodb-root-password:${ARANGO_ROOT_CREDENTIAL}
|
|
4135
|
-
ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");const secured=c.PATCH("/_api/user/root",{passwd:password,active:true});if(secured.error)throw new Error("ArangoDB root credential update failed: "+JSON.stringify(secured));'
|
|
4135
|
+
ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");const secured=c.PATCH("/_api/user/root",{passwd:password,active:true});if(secured.error&&secured.code!==409)throw new Error("ArangoDB root credential update failed: "+JSON.stringify(secured));'
|
|
4136
4136
|
ExecStart=/usr/local/bin/fz-agent database-auth-verify --endpoint=http://${unitEscape(address)}:8529
|
|
4137
4137
|
RemainAfterExit=yes
|
|
4138
4138
|
TimeoutStartSec=200
|
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.114";
|
|
4845
4845
|
|
|
4846
4846
|
// src/software.ts
|
|
4847
4847
|
var PINNED_BUN_VERSION = "1.3.14";
|
|
@@ -14517,7 +14517,7 @@ User=arangodb
|
|
|
14517
14517
|
Group=arangodb
|
|
14518
14518
|
LoadCredentialEncrypted=arangodb-jwt:${JWT_CREDENTIAL}
|
|
14519
14519
|
LoadCredentialEncrypted=arangodb-root-password:${ARANGO_ROOT_CREDENTIAL}
|
|
14520
|
-
ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");const secured=c.PATCH("/_api/user/root",{passwd:password,active:true});if(secured.error)throw new Error("ArangoDB root credential update failed: "+JSON.stringify(secured));'
|
|
14520
|
+
ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");const secured=c.PATCH("/_api/user/root",{passwd:password,active:true});if(secured.error&&secured.code!==409)throw new Error("ArangoDB root credential update failed: "+JSON.stringify(secured));'
|
|
14521
14521
|
ExecStart=/usr/local/bin/fz-agent database-auth-verify --endpoint=http://${unitEscape(address)}:8529
|
|
14522
14522
|
RemainAfterExit=yes
|
|
14523
14523
|
TimeoutStartSec=200
|
|
@@ -17971,13 +17971,21 @@ async function applyOperatorMetalBootstrap(request, mode, options = {}) {
|
|
|
17971
17971
|
if (typeof publicIdentity2 !== "string")
|
|
17972
17972
|
throw new Error("remote Metal bootstrap omitted its public identity");
|
|
17973
17973
|
const identity = parseMetalPublicIdentity(publicIdentity2);
|
|
17974
|
-
|
|
17974
|
+
const evidence = {
|
|
17975
17975
|
format: 1,
|
|
17976
17976
|
kind: "forgezero-operator-metal-identity",
|
|
17977
17977
|
metalHostname: config.metalHostname,
|
|
17978
17978
|
metalHostKeySha256: request.target.hostKeySha256,
|
|
17979
17979
|
...identity
|
|
17980
|
-
}
|
|
17980
|
+
};
|
|
17981
|
+
if (existsSync11(request.metalIdentityEvidenceFile)) {
|
|
17982
|
+
const current2 = readOperatorMetalIdentityEvidence(request.metalIdentityEvidenceFile, request);
|
|
17983
|
+
if (current2.nodeKey !== evidence.nodeKey || current2.publicKeys.ed25519 !== evidence.publicKeys.ed25519 || current2.publicKeys.mlDsa !== evidence.publicKeys.mlDsa) {
|
|
17984
|
+
throw new Error("remote Metal repair returned a different public identity");
|
|
17985
|
+
}
|
|
17986
|
+
} else {
|
|
17987
|
+
writeOwnerJson2(request.metalIdentityEvidenceFile, evidence, "operator metal identity evidence");
|
|
17988
|
+
}
|
|
17981
17989
|
}
|
|
17982
17990
|
return { plan, output };
|
|
17983
17991
|
} finally {
|
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.114";
|
|
370
370
|
|
|
371
371
|
// src/otel-collector.ts
|
|
372
372
|
var FORGEZERO_OTEL_COLLECTOR_UNIT = "forgezero-otel-collector.service";
|
|
@@ -1460,7 +1460,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
|
|
|
1460
1460
|
var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
|
|
1461
1461
|
|
|
1462
1462
|
// src/version.ts
|
|
1463
|
-
var VERSION = "0.1.
|
|
1463
|
+
var VERSION = "0.1.114";
|
|
1464
1464
|
|
|
1465
1465
|
// src/software.ts
|
|
1466
1466
|
var PINNED_BUN_VERSION = "1.3.14";
|
|
@@ -4132,7 +4132,7 @@ User=arangodb
|
|
|
4132
4132
|
Group=arangodb
|
|
4133
4133
|
LoadCredentialEncrypted=arangodb-jwt:${JWT_CREDENTIAL}
|
|
4134
4134
|
LoadCredentialEncrypted=arangodb-root-password:${ARANGO_ROOT_CREDENTIAL}
|
|
4135
|
-
ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");const secured=c.PATCH("/_api/user/root",{passwd:password,active:true});if(secured.error)throw new Error("ArangoDB root credential update failed: "+JSON.stringify(secured));'
|
|
4135
|
+
ExecStart=/usr/bin/arangosh --server.endpoint tcp://${unitEscape(address)}:8529 --server.jwt-secret-keyfile %d/arangodb-jwt --javascript.execute-string 'const c=require("@arangodb").db._connection;let last;let ok=false;for(let i=0;i<90;i++){try{const v=c.GET("/_api/version?details=true");const s=c.GET("/_admin/status");const m=c.GET("/_admin/server/mode");if(!v.error&&v.version==="3.11.14"&&v.details&&v.details.license==="community"&&!s.error&&s.serverInfo&&s.serverInfo.role==="COORDINATOR"&&!m.error&&m.mode==="default"){ok=true;break;}last={v,s,m};}catch(e){last=String(e);}require("internal").wait(2);}if(!ok)throw new Error("writable Community Coordinator verification failed: "+JSON.stringify(last));const password=require("fs").read("%d/arangodb-root-password").trim();if(password.length<48)throw new Error("ArangoDB root credential is malformed");const secured=c.PATCH("/_api/user/root",{passwd:password,active:true});if(secured.error&&secured.code!==409)throw new Error("ArangoDB root credential update failed: "+JSON.stringify(secured));'
|
|
4136
4136
|
ExecStart=/usr/local/bin/fz-agent database-auth-verify --endpoint=http://${unitEscape(address)}:8529
|
|
4137
4137
|
RemainAfterExit=yes
|
|
4138
4138
|
TimeoutStartSec=200
|
|
@@ -7417,13 +7417,21 @@ async function applyOperatorMetalBootstrap(request, mode, options = {}) {
|
|
|
7417
7417
|
if (typeof publicIdentity2 !== "string")
|
|
7418
7418
|
throw new Error("remote Metal bootstrap omitted its public identity");
|
|
7419
7419
|
const identity = parseMetalPublicIdentity(publicIdentity2);
|
|
7420
|
-
|
|
7420
|
+
const evidence = {
|
|
7421
7421
|
format: 1,
|
|
7422
7422
|
kind: "forgezero-operator-metal-identity",
|
|
7423
7423
|
metalHostname: config.metalHostname,
|
|
7424
7424
|
metalHostKeySha256: request.target.hostKeySha256,
|
|
7425
7425
|
...identity
|
|
7426
|
-
}
|
|
7426
|
+
};
|
|
7427
|
+
if (existsSync7(request.metalIdentityEvidenceFile)) {
|
|
7428
|
+
const current2 = readOperatorMetalIdentityEvidence(request.metalIdentityEvidenceFile, request);
|
|
7429
|
+
if (current2.nodeKey !== evidence.nodeKey || current2.publicKeys.ed25519 !== evidence.publicKeys.ed25519 || current2.publicKeys.mlDsa !== evidence.publicKeys.mlDsa) {
|
|
7430
|
+
throw new Error("remote Metal repair returned a different public identity");
|
|
7431
|
+
}
|
|
7432
|
+
} else {
|
|
7433
|
+
writeOwnerJson2(request.metalIdentityEvidenceFile, evidence, "operator metal identity evidence");
|
|
7434
|
+
}
|
|
7427
7435
|
}
|
|
7428
7436
|
return { plan, output };
|
|
7429
7437
|
} finally {
|
|
@@ -3004,7 +3004,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
|
|
|
3004
3004
|
}
|
|
3005
3005
|
|
|
3006
3006
|
// src/version.ts
|
|
3007
|
-
var VERSION3 = "0.1.
|
|
3007
|
+
var VERSION3 = "0.1.114";
|
|
3008
3008
|
|
|
3009
3009
|
// src/egress-policy.ts
|
|
3010
3010
|
import { realpathSync as realpathSync3 } from "node:fs";
|
package/dist/provision.js
CHANGED
|
@@ -3004,7 +3004,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
|
|
|
3004
3004
|
}
|
|
3005
3005
|
|
|
3006
3006
|
// src/version.ts
|
|
3007
|
-
var VERSION3 = "0.1.
|
|
3007
|
+
var VERSION3 = "0.1.114";
|
|
3008
3008
|
|
|
3009
3009
|
// src/egress-policy.ts
|
|
3010
3010
|
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.114";
|