@camstack/server 1.2.503 → 1.2.505

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.
@@ -692,9 +692,8 @@ class MoleculerService {
692
692
  probe: (url, options) => this.streamProbe.probe(url, options),
693
693
  probeField: (key, value) => this.streamProbe.probeField(key, value),
694
694
  }));
695
- // Release A: when system-config's MeshCaKeeper becomes ready it offers
696
- // hub leaf material here; the transporter starts TLS on :6443 alongside
697
- // clear :6000 so enrolled agents can dual-dial without splitting the cluster.
695
+ // D826: when system-config's MeshCaKeeper becomes ready it offers hub leaf
696
+ // material here; the transporter listens on mutual TLS only (:6443).
698
697
  (0, system_1.setProcessMeshTlsEnabler)(async (material) => {
699
698
  const tx = (0, system_1.getBrokerTlsTransporter)(this.broker);
700
699
  if (tx === null) {
@@ -702,28 +701,10 @@ class MoleculerService {
702
701
  return;
703
702
  }
704
703
  await tx.enableMeshTls(material);
705
- logger.info('Mesh mTLS listener enabled (dual-port with clear TCP)');
704
+ logger.info('Mesh mTLS listener enabled (TLS-only hub mesh)');
706
705
  });
707
- // Release A cutover: System → Cluster reads each agent's transport and may
708
- // close the clear port through this slot (never flipped by this wiring).
709
- (0, system_1.setProcessMeshClearPortControl)({
710
- listOnlineAgents: () => this.listAvailableNodeIds()
711
- .filter((id) => id !== this.brokerSafe.nodeID && !id.includes('/'))
712
- .map((nodeId) => ({
713
- nodeId,
714
- transport: (0, system_1.getBrokerTlsTransporter)(this.broker)?.peerTransport(nodeId) ?? 'clear',
715
- })),
716
- isTlsListening: () => (0, system_1.getBrokerTlsTransporter)(this.broker)?.isTlsListening() === true,
706
+ (0, system_1.setProcessMeshPeerTransportLookup)({
717
707
  transportOf: (nodeId) => (0, system_1.getBrokerTlsTransporter)(this.broker)?.peerTransport(nodeId),
718
- apply: async (mode) => {
719
- const tx = (0, system_1.getBrokerTlsTransporter)(this.broker);
720
- if (tx === null)
721
- return;
722
- if (mode === 'off')
723
- tx.disableClearTransport();
724
- else
725
- await tx.enableClearTransport();
726
- },
727
708
  });
728
709
  await this.brokerSafe.start();
729
710
  logger.info('Moleculer broker started (TCP transport)');
@@ -1358,7 +1339,7 @@ class MoleculerService {
1358
1339
  }
1359
1340
  async onModuleDestroy() {
1360
1341
  (0, system_1.setProcessMeshTlsEnabler)(null);
1361
- (0, system_1.setProcessMeshClearPortControl)(null);
1342
+ (0, system_1.setProcessMeshPeerTransportLookup)(null);
1362
1343
  this.meshGuard.stop();
1363
1344
  if (this.agentReadinessPullTimer !== null) {
1364
1345
  clearInterval(this.agentReadinessPullTimer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.503",
3
+ "version": "1.2.505",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "files": [
@@ -37,8 +37,8 @@
37
37
  ]
38
38
  },
39
39
  "dependencies": {
40
- "@camstack/addon-admin-ui": "1.2.371",
41
- "@camstack/addon-agent-ui": "1.2.203",
40
+ "@camstack/addon-admin-ui": "1.2.372",
41
+ "@camstack/addon-agent-ui": "1.2.204",
42
42
  "@camstack/addon-auth": "1.2.136",
43
43
  "@camstack/addon-decoder-nodeav": "1.2.122",
44
44
  "@camstack/addon-notifiers": "1.2.129",
@@ -46,9 +46,9 @@
46
46
  "@camstack/addon-pipeline-orchestrator": "1.2.305",
47
47
  "@camstack/addon-post-analysis": "1.2.352",
48
48
  "@camstack/sdk": "1.2.129",
49
- "@camstack/system": "1.2.396",
50
- "@camstack/types": "1.2.340",
51
- "@camstack/ui-library": "1.2.260",
49
+ "@camstack/system": "1.2.398",
50
+ "@camstack/types": "1.2.341",
51
+ "@camstack/ui-library": "1.2.261",
52
52
  "@fastify/compress": "^9.0.0",
53
53
  "@fastify/cookie": "^11.0.2",
54
54
  "@fastify/cors": "^11.2.0",