instar 1.3.104 → 1.3.105

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.
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAmSH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAwvDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAo7OtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAmSH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAwvDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA+7OtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
@@ -2214,9 +2214,20 @@ export async function startServer(options) {
2214
2214
  let localSigningKeyPem = '';
2215
2215
  if (coordinator.enabled && coordinator.identity) {
2216
2216
  try {
2217
- const keyPath = path.join(config.stateDir, 'machine', 'signing-private.pem');
2218
- if (fs.existsSync(keyPath)) {
2219
- localSigningKeyPem = fs.readFileSync(keyPath, 'utf-8');
2217
+ // The canonical signing-key filename is `signing-key.pem` (MachineIdentity.SIGNING_KEY_FILE,
2218
+ // what every normally-created install has + what idMgr.loadSigningKey reads). This loader
2219
+ // historically hard-coded `signing-private.pem`, which only EXISTS on installs that were
2220
+ // propagated with that (non-canonical) name — so a normally-created machine got an EMPTY
2221
+ // localSigningKeyPem, its MeshRpcClient then signed every cross-machine command with no key,
2222
+ // the send threw, and it could not PULL/transfer to any peer (while still RECEIVING fine,
2223
+ // since receive verifies the OTHER machine's key). Try the canonical name first, then fall
2224
+ // back to the legacy/propagated name so both layouts work.
2225
+ for (const name of ['signing-key.pem', 'signing-private.pem']) {
2226
+ const keyPath = path.join(config.stateDir, 'machine', name);
2227
+ if (fs.existsSync(keyPath)) {
2228
+ localSigningKeyPem = fs.readFileSync(keyPath, 'utf-8');
2229
+ break;
2230
+ }
2220
2231
  }
2221
2232
  }
2222
2233
  catch { /* @silent-fallback-ok — signing key optional */ }