@meru2802/aux-server 1.0.11 → 1.0.13
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/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/controllers/coreController.d.ts.map +1 -1
- package/dist/controllers/coreController.js +155 -88
- package/dist/controllers/healthController.js +1 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/config/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAgB;IACvC,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO;WAIO,WAAW,IAAI,aAAa;IAO1C,OAAO,CAAC,UAAU;IAwDX,SAAS,IAAI,MAAM;IAInB,aAAa;;;;;;;IAIb,WAAW;;;;;;;IAIX,gBAAgB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAgB;IACvC,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO;WAIO,WAAW,IAAI,aAAa;IAO1C,OAAO,CAAC,UAAU;IAwDX,SAAS,IAAI,MAAM;IAInB,aAAa;;;;;;;IAIb,WAAW;;;;;;;IAIX,gBAAgB;;;;;;IAIhB,gBAAgB;;;;;;;;CAGxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coreController.d.ts","sourceRoot":"","sources":["../../src/controllers/coreController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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AAC,CA8iBd;CACH"}
|
|
@@ -391,8 +391,56 @@ class CoreController extends BaseController_1.BaseController {
|
|
|
391
391
|
try {
|
|
392
392
|
const { clientId, siteId, agentType, endpointUrl, os } = req.body;
|
|
393
393
|
const baseUrl = `https://${this.config.epmConfig.server}`;
|
|
394
|
-
|
|
395
|
-
|
|
394
|
+
//Get Org_id, Site_id, AssetTypeID, and Org_token form db
|
|
395
|
+
const iceberg_org_id_query = "SELECT string_value FROM clients_clientcustomfield WHERE client_id = $1";
|
|
396
|
+
const iceberg_site_id_query = "SELECT string_value FROM clients_sitecustomfield WHERE site_id = $1";
|
|
397
|
+
const iceberg_org_token_query = "SELECT string_value FROM clients_clientcustomfield WHERE client_id = $1 AND field_id = $2";
|
|
398
|
+
const iceberg_asset_type_id_query = "SELECT string_value FROM clients_clientcustomfield WHERE client_id = $1 AND field_id = $2";
|
|
399
|
+
console.log(`[getAgentDetails] Executing parallel queries for iceberg details`);
|
|
400
|
+
const iceberg_org_id_promise = this.dbPool.query(iceberg_org_id_query, [clientId]);
|
|
401
|
+
const iceberg_site_id_promise = this.dbPool.query(iceberg_site_id_query, [siteId]);
|
|
402
|
+
const iceberg_org_token_promise = this.dbPool.query(iceberg_org_token_query, [
|
|
403
|
+
clientId,
|
|
404
|
+
this.config.epmConfig.tokenFieldId,
|
|
405
|
+
]);
|
|
406
|
+
const iceberg_asset_type_id_promise = this.dbPool.query(iceberg_asset_type_id_query, [
|
|
407
|
+
clientId,
|
|
408
|
+
this.config.epmConfig.assetTypeFieldId,
|
|
409
|
+
]);
|
|
410
|
+
let [iceberg_ord_id, iceberg_site_id, iceberg_org_token, iceberg_asset_type_id,] = await Promise.all([
|
|
411
|
+
iceberg_org_id_promise,
|
|
412
|
+
iceberg_site_id_promise,
|
|
413
|
+
iceberg_org_token_promise,
|
|
414
|
+
iceberg_asset_type_id_promise,
|
|
415
|
+
]);
|
|
416
|
+
console.log(`[getAgentDetails] Iceberg queries completed with results:`, {
|
|
417
|
+
org_id_rows: iceberg_ord_id.rows.length,
|
|
418
|
+
site_id_rows: iceberg_site_id.rows.length,
|
|
419
|
+
org_token_rows: iceberg_org_token.rows.length,
|
|
420
|
+
asset_type_id_rows: iceberg_asset_type_id.rows.length,
|
|
421
|
+
});
|
|
422
|
+
if (iceberg_ord_id.rows.length > 0 &&
|
|
423
|
+
iceberg_site_id.rows.length > 0 &&
|
|
424
|
+
iceberg_org_token.rows.length > 0 &&
|
|
425
|
+
iceberg_asset_type_id.rows.length > 0) {
|
|
426
|
+
const siteRow = iceberg_site_id.rows[0];
|
|
427
|
+
const orgRow = iceberg_ord_id.rows[0];
|
|
428
|
+
const orgTokenRow = iceberg_org_token.rows[0];
|
|
429
|
+
const assetTypeRow = iceberg_asset_type_id.rows[0];
|
|
430
|
+
if (!siteRow || !orgRow || !orgTokenRow || !assetTypeRow) {
|
|
431
|
+
const errorResponse = {
|
|
432
|
+
error: "Either SiteId, OrgId, OrgToken, or AssetTypeId is missing",
|
|
433
|
+
timestamp: new Date().toISOString(),
|
|
434
|
+
};
|
|
435
|
+
res.status(501).json(errorResponse);
|
|
436
|
+
return;
|
|
437
|
+
}
|
|
438
|
+
const assetTypeId = assetTypeRow.string_value;
|
|
439
|
+
const icebergSiteId = siteRow.string_value;
|
|
440
|
+
const icebergOrgId = orgRow.string_value;
|
|
441
|
+
const icebergOrgToken = orgTokenRow.string_value;
|
|
442
|
+
if (os == types_1.OperatingSystems.WINDOWS) {
|
|
443
|
+
const script = `
|
|
396
444
|
$endpointsetup = 'nexus-endpoint-v0.1.0-i32-setup.exe'
|
|
397
445
|
$api = '"${baseUrl}"'
|
|
398
446
|
$clientid = '${clientId}'
|
|
@@ -404,13 +452,18 @@ $ping = 0
|
|
|
404
452
|
$auth = '"${this.config.epmConfig.installerToken}"'
|
|
405
453
|
$endpointdownloadlink = '${endpointUrl}'
|
|
406
454
|
$apilink = $endpointdownloadlink.split('/')
|
|
455
|
+
$assetTypeId = '"${assetTypeId}"'
|
|
456
|
+
$icebergSiteId = '"${icebergSiteId}"'
|
|
457
|
+
$icebergOrgId = '"${icebergOrgId}"'
|
|
458
|
+
$icebergOrgToken = '"${icebergOrgToken}"'
|
|
459
|
+
$assetEndpoint = '"${this.config.icebergConfig.assetEndpoint}"'
|
|
407
460
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
|
408
461
|
$serviceName = 'nexusrmm'
|
|
409
462
|
If (Get-Service $serviceName -ErrorAction SilentlyContinue) {
|
|
410
463
|
write-host ('Nexus RMM Agent Is Already Installed')
|
|
411
464
|
} Else {
|
|
412
465
|
$OutPath = $env:TMP
|
|
413
|
-
$installArgs = @('-m install --api ', "$api", '--client-id', $clientid, '--site-id', $siteid, '--agent-type', "$agenttype", '--auth', "$auth", '-silent')
|
|
466
|
+
$installArgs = @('-m install --api ', "$api", '--client-id', $clientid, '--site-id', $siteid, '--agent-type', "$agenttype", '--auth', "$auth", '--asset-type-id', "$assetTypeId", '--iceberg-site-id', "$icebergSiteId", '--iceberg-org-id', "$icebergOrgId", '--iceberg-org-token', "$icebergOrgToken", '--asset-api', "$assetEndpoint", '-silent')
|
|
414
467
|
if ($power) {
|
|
415
468
|
$installArgs += "--power"
|
|
416
469
|
}
|
|
@@ -465,81 +518,81 @@ If (Get-Service $serviceName -ErrorAction SilentlyContinue) {
|
|
|
465
518
|
}
|
|
466
519
|
}
|
|
467
520
|
`;
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
472
|
-
else if (os == types_1.OperatingSystems.LINUX) {
|
|
473
|
-
const meshesMessageSent = this.WebSocketService.sendMessage({
|
|
474
|
-
action: "meshes",
|
|
475
|
-
responseid: "meshctrl",
|
|
476
|
-
});
|
|
477
|
-
if (!meshesMessageSent) {
|
|
478
|
-
const errorResponse = {
|
|
479
|
-
error: "Could Not Send Message Over Socket",
|
|
480
|
-
timestamp: new Date().toISOString(),
|
|
481
|
-
};
|
|
482
|
-
res.status(500).json(errorResponse);
|
|
483
|
-
return;
|
|
484
|
-
}
|
|
485
|
-
if (!this.webSocket) {
|
|
486
|
-
const errorResponse = {
|
|
487
|
-
error: "Socket Not Found",
|
|
488
|
-
timestamp: new Date().toISOString(),
|
|
489
|
-
};
|
|
490
|
-
res.status(500).json(errorResponse);
|
|
491
|
-
return;
|
|
521
|
+
res.setHeader("X-Script-Type", "powershell");
|
|
522
|
+
res.setHeader("Content-Type", "text/plain; charset=utf-8");
|
|
523
|
+
res.status(200).send(script);
|
|
492
524
|
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
525
|
+
else if (os == types_1.OperatingSystems.LINUX) {
|
|
526
|
+
const meshesMessageSent = this.WebSocketService.sendMessage({
|
|
527
|
+
action: "meshes",
|
|
528
|
+
responseid: "meshctrl",
|
|
529
|
+
});
|
|
530
|
+
if (!meshesMessageSent) {
|
|
531
|
+
const errorResponse = {
|
|
532
|
+
error: "Could Not Send Message Over Socket",
|
|
533
|
+
timestamp: new Date().toISOString(),
|
|
534
|
+
};
|
|
535
|
+
res.status(500).json(errorResponse);
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
if (!this.webSocket) {
|
|
539
|
+
const errorResponse = {
|
|
540
|
+
error: "Socket Not Found",
|
|
541
|
+
timestamp: new Date().toISOString(),
|
|
542
|
+
};
|
|
543
|
+
res.status(500).json(errorResponse);
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
const waitForMeshResponse = new Promise((resolve, reject) => {
|
|
547
|
+
let responseReceived = false;
|
|
548
|
+
const timeout = setTimeout(() => {
|
|
549
|
+
if (!responseReceived) {
|
|
508
550
|
responseReceived = true;
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
551
|
+
reject(new Error("Timeout waiting for mesh response"));
|
|
552
|
+
}
|
|
553
|
+
}, 10000);
|
|
554
|
+
const messageHandler = (data) => {
|
|
555
|
+
var _a, _b;
|
|
556
|
+
if (responseReceived)
|
|
557
|
+
return;
|
|
558
|
+
try {
|
|
559
|
+
const message = JSON.parse(data.toString());
|
|
560
|
+
if (message.action === types_1.MeshActions.MESH_ES) {
|
|
561
|
+
responseReceived = true;
|
|
562
|
+
clearTimeout(timeout);
|
|
563
|
+
(_a = this.webSocket) === null || _a === void 0 ? void 0 : _a.removeListener("message", messageHandler);
|
|
564
|
+
const meshesMessasge = message;
|
|
565
|
+
console.log(`meshes: ${JSON.stringify(meshesMessasge)}`);
|
|
566
|
+
const mesh = meshesMessasge.meshes.find((mesh) => mesh.name == "TacticalRMM");
|
|
567
|
+
if (!mesh) {
|
|
568
|
+
reject(new Error("Mesh Not Found"));
|
|
569
|
+
return;
|
|
570
|
+
}
|
|
571
|
+
const deviceGroupId = mesh._id.split("/")[2];
|
|
572
|
+
if (!deviceGroupId) {
|
|
573
|
+
reject(new Error("Error parsing deviceGroupId"));
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
const response = {
|
|
577
|
+
deviceGroupId,
|
|
578
|
+
};
|
|
579
|
+
resolve(response);
|
|
522
580
|
}
|
|
523
|
-
const response = {
|
|
524
|
-
deviceGroupId,
|
|
525
|
-
};
|
|
526
|
-
resolve(response);
|
|
527
581
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
582
|
+
catch (parseError) {
|
|
583
|
+
if (!responseReceived) {
|
|
584
|
+
responseReceived = true;
|
|
585
|
+
clearTimeout(timeout);
|
|
586
|
+
(_b = this.webSocket) === null || _b === void 0 ? void 0 : _b.removeListener("message", messageHandler);
|
|
587
|
+
reject(parseError);
|
|
588
|
+
}
|
|
535
589
|
}
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
const script = `
|
|
590
|
+
};
|
|
591
|
+
this.webSocket.on("message", messageHandler);
|
|
592
|
+
});
|
|
593
|
+
try {
|
|
594
|
+
const response = await waitForMeshResponse;
|
|
595
|
+
const script = `
|
|
543
596
|
#!/usr/bin/env bash
|
|
544
597
|
|
|
545
598
|
if [ $EUID -ne 0 ]; then
|
|
@@ -589,6 +642,11 @@ token='${this.config.epmConfig.installerToken}'
|
|
|
589
642
|
clientID='${clientId}'
|
|
590
643
|
siteID='${siteId}'
|
|
591
644
|
agentType='${agentType}'
|
|
645
|
+
assetTypeId='${assetTypeId}'
|
|
646
|
+
icebergSiteId='${icebergSiteId}'
|
|
647
|
+
icebergOrgId='${icebergOrgId}'
|
|
648
|
+
icebergOrgToken='${icebergOrgToken}'
|
|
649
|
+
assetEndpoint='${this.config.icebergConfig.assetEndpoint}'
|
|
592
650
|
proxy=''
|
|
593
651
|
|
|
594
652
|
agentBinPath='/usr/local/bin'
|
|
@@ -598,7 +656,7 @@ agentConf='/etc/nexusagent'
|
|
|
598
656
|
agentSvcName='nexusagent.service'
|
|
599
657
|
agentSysD="/etc/systemd/system/\${agentSvcName}"
|
|
600
658
|
agentDir='/opt/nexusagent'
|
|
601
|
-
meshDir='/opt/
|
|
659
|
+
meshDir='/opt/NexusMeshBackend'
|
|
602
660
|
meshSystemBin="\${meshDir}/NexusMeshBackend"
|
|
603
661
|
meshSvcName='NexusMeshBackend.service'
|
|
604
662
|
meshSysD="/lib/systemd/system/\${meshSvcName}"
|
|
@@ -663,7 +721,7 @@ InstallMesh() {
|
|
|
663
721
|
meshTmpDir='/root/meshtemp'
|
|
664
722
|
mkdir -p $meshTmpDir
|
|
665
723
|
|
|
666
|
-
meshTmpBin="\${meshTmpDir}/
|
|
724
|
+
meshTmpBin="\${meshTmpDir}/NexusMeshBackend"
|
|
667
725
|
wget --no-check-certificate -q -O \${meshTmpBin} \${meshDL}
|
|
668
726
|
chmod +x \${meshTmpBin}
|
|
669
727
|
mkdir -p \${meshDir}
|
|
@@ -743,7 +801,7 @@ if [ ! -d "\${agentBinPath}" ]; then
|
|
|
743
801
|
mkdir -p \${agentBinPath}
|
|
744
802
|
fi
|
|
745
803
|
|
|
746
|
-
INSTALL_CMD="\${agentBin} -m install -api \${apiURL} -client-id \${clientID} -site-id \${siteID} -agent-type \${agentType} -auth \${token}"
|
|
804
|
+
INSTALL_CMD="\${agentBin} -m install -api \${apiURL} -client-id \${clientID} -site-id \${siteID} -agent-type \${agentType} -auth \${token} -asset-type-id \${assetTypeId} -iceberg-site-id \${icebergSiteId} -iceberg-org-id \${icebergOrgId} -iceberg-org-token \${icebergOrgToken} -asset-api \${assetEndpoint}"
|
|
747
805
|
|
|
748
806
|
if [ "\${MESH_NODE_ID}" != '' ]; then
|
|
749
807
|
INSTALL_CMD+=" --meshnodeid \${MESH_NODE_ID}"
|
|
@@ -791,26 +849,35 @@ systemctl start \${agentSvcName}
|
|
|
791
849
|
sudo systemctl restart gdm3
|
|
792
850
|
sudo systemctl restart systemd-logind
|
|
793
851
|
sudo dmidecode --string system-serial-number`;
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
852
|
+
res.setHeader("X-Script-Type", "bash");
|
|
853
|
+
res.setHeader("Content-Type", "text/plain; charset=utf-8");
|
|
854
|
+
res.status(200).send(script);
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
catch (error) {
|
|
858
|
+
console.error("Error waiting for mesh response:", error);
|
|
859
|
+
const errorResponse = {
|
|
860
|
+
error: error instanceof Error
|
|
861
|
+
? error.message
|
|
862
|
+
: "Failed to get mesh response",
|
|
863
|
+
timestamp: new Date().toISOString(),
|
|
864
|
+
};
|
|
865
|
+
res.status(500).json(errorResponse);
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
798
868
|
}
|
|
799
|
-
|
|
800
|
-
console.error("Error waiting for mesh response:", error);
|
|
869
|
+
else if (os == types_1.OperatingSystems.MACOS) {
|
|
801
870
|
const errorResponse = {
|
|
802
|
-
error:
|
|
803
|
-
? error.message
|
|
804
|
-
: "Failed to get mesh response",
|
|
871
|
+
error: "Macos script is not supported yet",
|
|
805
872
|
timestamp: new Date().toISOString(),
|
|
806
873
|
};
|
|
807
|
-
res.status(
|
|
874
|
+
res.status(501).json(errorResponse);
|
|
808
875
|
return;
|
|
809
876
|
}
|
|
810
877
|
}
|
|
811
|
-
else
|
|
878
|
+
else {
|
|
812
879
|
const errorResponse = {
|
|
813
|
-
error: "
|
|
880
|
+
error: "Either SiteId, OrgId, OrgToken, or AssetTypeId is missing",
|
|
814
881
|
timestamp: new Date().toISOString(),
|
|
815
882
|
};
|
|
816
883
|
res.status(501).json(errorResponse);
|
|
@@ -17,7 +17,7 @@ class HealthController extends BaseController_1.BaseController {
|
|
|
17
17
|
this.status = (req, res) => {
|
|
18
18
|
const response = {
|
|
19
19
|
service: "aux-server",
|
|
20
|
-
version: "1.0.
|
|
20
|
+
version: "1.0.13",
|
|
21
21
|
meshCentral: {
|
|
22
22
|
connected: this.isWebSocketConnected,
|
|
23
23
|
server: this.meshServer,
|
package/dist/types/index.d.ts
CHANGED
|
@@ -104,12 +104,15 @@ export interface Config {
|
|
|
104
104
|
epmConfig: {
|
|
105
105
|
server: string;
|
|
106
106
|
installerToken: string;
|
|
107
|
-
masterApiKey:
|
|
107
|
+
masterApiKey: string;
|
|
108
|
+
tokenFieldId: number;
|
|
109
|
+
assetTypeFieldId: number;
|
|
108
110
|
};
|
|
109
111
|
icebergConfig: {
|
|
110
112
|
eventsEndpoint: string;
|
|
111
113
|
introspectEndpoint: string;
|
|
112
114
|
HMAC_SECRET: string;
|
|
115
|
+
assetEndpoint: string;
|
|
113
116
|
};
|
|
114
117
|
dbConfig: {
|
|
115
118
|
host: string;
|
|
@@ -1 +1 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