@friggframework/core 2.0.0--canary.419.6e5f240.0 → 2.0.0--canary.419.a9bb30f.0
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/handlers/routers/health.js +13 -0
- package/package.json +5 -5
|
@@ -15,6 +15,19 @@ const validateApiKey = (req, res, next) => {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
if (!apiKey || apiKey !== process.env.HEALTH_API_KEY) {
|
|
18
|
+
const healthApiKey = process.env.HEALTH_API_KEY;
|
|
19
|
+
console.log('Incoming API Key Debug:', {
|
|
20
|
+
first3: apiKey ? apiKey.substring(0, 3) : 'undefined',
|
|
21
|
+
last3: apiKey ? apiKey.substring(apiKey.length - 3) : 'undefined',
|
|
22
|
+
length: apiKey ? apiKey.length : 0,
|
|
23
|
+
});
|
|
24
|
+
console.log('Health API Key Debug:', {
|
|
25
|
+
first3: healthApiKey ? healthApiKey.substring(0, 3) : 'undefined',
|
|
26
|
+
last3: healthApiKey
|
|
27
|
+
? healthApiKey.substring(healthApiKey.length - 3)
|
|
28
|
+
: 'undefined',
|
|
29
|
+
length: healthApiKey ? healthApiKey.length : 0,
|
|
30
|
+
});
|
|
18
31
|
console.log('Unauthorized access attempt to health endpoint');
|
|
19
32
|
return res.status(401).json({
|
|
20
33
|
status: 'error',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/core",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.419.
|
|
4
|
+
"version": "2.0.0--canary.419.a9bb30f.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@hapi/boom": "^10.0.1",
|
|
7
7
|
"aws-sdk": "^2.1200.0",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"uuid": "^9.0.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@friggframework/eslint-config": "2.0.0--canary.419.
|
|
26
|
-
"@friggframework/prettier-config": "2.0.0--canary.419.
|
|
27
|
-
"@friggframework/test": "2.0.0--canary.419.
|
|
25
|
+
"@friggframework/eslint-config": "2.0.0--canary.419.a9bb30f.0",
|
|
26
|
+
"@friggframework/prettier-config": "2.0.0--canary.419.a9bb30f.0",
|
|
27
|
+
"@friggframework/test": "2.0.0--canary.419.a9bb30f.0",
|
|
28
28
|
"@types/lodash": "4.17.15",
|
|
29
29
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
30
30
|
"chai": "^4.3.6",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "a9bb30f7ae26580e49e1a2ed7ac62e6df8db9638"
|
|
60
60
|
}
|