@meru2802/aux-server 1.0.24 → 1.0.25
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.
|
@@ -18,7 +18,7 @@ class HealthController extends BaseController_1.BaseController {
|
|
|
18
18
|
this.status = (req, res) => {
|
|
19
19
|
const response = {
|
|
20
20
|
service: "aux-server",
|
|
21
|
-
version: "1.0.
|
|
21
|
+
version: "1.0.25",
|
|
22
22
|
meshCentral: {
|
|
23
23
|
connected: this.isWebSocketConnected,
|
|
24
24
|
server: this.meshServer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authMiddleware.d.ts","sourceRoot":"","sources":["../../src/middleware/authMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKlD,qBAAa,cAAe,SAAQ,cAAc;gBACpC,gBAAgB,CAAC,EAAE,iBAAiB;IAIzC,QAAQ,GAAI,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"authMiddleware.d.ts","sourceRoot":"","sources":["../../src/middleware/authMiddleware.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKlD,qBAAa,cAAe,SAAQ,cAAc;gBACpC,gBAAgB,CAAC,EAAE,iBAAiB;IAIzC,QAAQ,GAAI,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,UAuLhE;IAEK,WAAW,GAChB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,MAAM,YAAY,KACjB,OAAO,CAAC,IAAI,CAAC,CAmFd;CACH"}
|
|
@@ -51,7 +51,10 @@ class AuthMiddleware extends BaseMiddleware_1.BaseMiddleware {
|
|
|
51
51
|
const timestamp = req.headers["x-hmac-timestamp"];
|
|
52
52
|
const nonce = req.headers["x-hmac-nonce"];
|
|
53
53
|
const hostname = ((_a = req.headers.host) === null || _a === void 0 ? void 0 : _a.trim()) || req.hostname.trim();
|
|
54
|
-
|
|
54
|
+
const rawHostname = req.headers.host || req.hostname;
|
|
55
|
+
console.log(`Raw hostname bytes: ${Buffer.from(rawHostname).toString("hex")}`);
|
|
56
|
+
console.log(`Raw hostname length: ${rawHostname.length}`);
|
|
57
|
+
console.log(`Raw hostname charCodes: ${[...rawHostname].map((c) => c.charCodeAt(0)).join(", ")}`);
|
|
55
58
|
if (!signature || !timestamp || !nonce) {
|
|
56
59
|
const unauthorizedResponse = {
|
|
57
60
|
error: "UnauthorizedException",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meru2802/aux-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "Nexus EPM auxillary server to facilitate additional functionality required by Scogo Iceberg",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@types/ws": "^8.5.12",
|
|
24
24
|
"eslint": "^9.26.0",
|
|
25
25
|
"typescript": "5.8.2",
|
|
26
|
-
"@repo/
|
|
27
|
-
"@repo/
|
|
26
|
+
"@repo/eslint-config": "0.0.0",
|
|
27
|
+
"@repo/typescript-config": "0.0.0"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [],
|
|
30
30
|
"author": "meru2802",
|