@openfn/ws-worker 1.13.4 → 1.13.6
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/CHANGELOG.md +15 -0
- package/dist/index.js +3 -1
- package/dist/start.js +3 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# ws-worker
|
|
2
2
|
|
|
3
|
+
## 1.13.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 284d10a: Add 5s of clock tolerance to run token validation
|
|
8
|
+
|
|
9
|
+
## 1.13.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @openfn/lexicon@1.2.2
|
|
15
|
+
- @openfn/engine-multi@1.6.4
|
|
16
|
+
- @openfn/runtime@1.6.4
|
|
17
|
+
|
|
3
18
|
## 1.13.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -118,7 +118,9 @@ var mockLogger = createMockLogger();
|
|
|
118
118
|
var verifyToken = async (token, publicKey) => {
|
|
119
119
|
const key = crypto.createPublicKey(publicKey);
|
|
120
120
|
const { payload } = await jose.jwtVerify(token, key, {
|
|
121
|
-
issuer: "Lightning"
|
|
121
|
+
issuer: "Lightning",
|
|
122
|
+
clockTolerance: "5s"
|
|
123
|
+
// Allow 5 seconds of clock skew
|
|
122
124
|
});
|
|
123
125
|
if (payload) {
|
|
124
126
|
return true;
|
package/dist/start.js
CHANGED
|
@@ -258,7 +258,9 @@ var mockLogger = createMockLogger();
|
|
|
258
258
|
var verifyToken = async (token, publicKey) => {
|
|
259
259
|
const key = crypto2.createPublicKey(publicKey);
|
|
260
260
|
const { payload } = await jose.jwtVerify(token, key, {
|
|
261
|
-
issuer: "Lightning"
|
|
261
|
+
issuer: "Lightning",
|
|
262
|
+
clockTolerance: "5s"
|
|
263
|
+
// Allow 5 seconds of clock skew
|
|
262
264
|
});
|
|
263
265
|
if (payload) {
|
|
264
266
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/ws-worker",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.6",
|
|
4
4
|
"description": "A Websocket Worker to connect Lightning to a Runtime Engine",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"koa-logger": "^3.2.1",
|
|
24
24
|
"phoenix": "1.7.10",
|
|
25
25
|
"ws": "^8.18.0",
|
|
26
|
-
"@openfn/engine-multi": "1.6.
|
|
27
|
-
"@openfn/lexicon": "^1.2.
|
|
26
|
+
"@openfn/engine-multi": "1.6.6",
|
|
27
|
+
"@openfn/lexicon": "^1.2.2",
|
|
28
28
|
"@openfn/logger": "1.0.5",
|
|
29
29
|
"@openfn/runtime": "1.6.4"
|
|
30
30
|
},
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"tsup": "^6.2.3",
|
|
44
44
|
"typescript": "^4.6.4",
|
|
45
45
|
"yargs": "^17.6.2",
|
|
46
|
-
"@openfn/lightning-mock": "2.1.
|
|
46
|
+
"@openfn/lightning-mock": "2.1.9"
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
49
49
|
"dist",
|