@o3co/create-auth-policy-verifier 0.4.0 → 0.5.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3co/create-auth-policy-verifier",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Scaffold a new o3co/auth.policy-verifier project from the standalone template",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"templates"
|
|
29
29
|
],
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/node": "^26.
|
|
32
|
-
"vitest": "^4.1.
|
|
31
|
+
"@types/node": "^26.4.0",
|
|
32
|
+
"vitest": "^4.1.11"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsc",
|
|
@@ -314,12 +314,19 @@ verify {
|
|
|
314
314
|
|
|
315
315
|
# `collectorConcurrency` is how many run at once, per pipeline, per decision.
|
|
316
316
|
# Higher than any realistic collector set, so an ordinary configuration still
|
|
317
|
-
# fans out in one wave; what it removes is the tail, where a wide config
|
|
318
|
-
#
|
|
319
|
-
#
|
|
317
|
+
# fans out in one wave; what it removes is the tail, where a wide config
|
|
318
|
+
# multiplies into simultaneous calls against a dependency that has just
|
|
319
|
+
# started to slow down.
|
|
320
320
|
collectorConcurrency = 8
|
|
321
321
|
collectorConcurrency = ${?VERIFY_COLLECTOR_CONCURRENCY}
|
|
322
322
|
|
|
323
|
+
# `batchConcurrency` is how many of a batch's entries are decided at once.
|
|
324
|
+
# The three collector bounds above are per decision — this is what keeps one
|
|
325
|
+
# `POST /verify/batch` from multiplying them by `maxBatchSize` (50 x 8
|
|
326
|
+
# collectors in flight per pipeline, from a single request).
|
|
327
|
+
batchConcurrency = 8
|
|
328
|
+
batchConcurrency = ${?VERIFY_BATCH_CONCURRENCY}
|
|
329
|
+
|
|
323
330
|
# Whether collectors receive the raw credential as `context.credential`
|
|
324
331
|
# (#175). "never" (the default): collectors get verified claims only — the
|
|
325
332
|
# credential is replayable, and a collector that logs its context would leak
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3co/auth-policy-verifier-standalone",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"packageManager": "pnpm@10.29.3",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"@o3co/auth.policy-verifier.builtins": "workspace:*",
|
|
21
21
|
"@o3co/auth.policy-verifier.server": "workspace:*",
|
|
22
22
|
"@o3co/auth.utils": "^0.0.4",
|
|
23
|
-
"@o3co/ts.hocon": "^1.
|
|
23
|
+
"@o3co/ts.hocon": "^1.13.0",
|
|
24
24
|
"express": "^5.2.1",
|
|
25
25
|
"pino": "^10.3.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/node": "^26.
|
|
28
|
+
"@types/node": "^26.4.0",
|
|
29
29
|
"@types/supertest": "^7.2.1",
|
|
30
|
-
"jose": "^6.2.
|
|
30
|
+
"jose": "^6.2.10",
|
|
31
31
|
"supertest": "^7.2.2",
|
|
32
|
-
"tsx": "^4.23.
|
|
32
|
+
"tsx": "^4.23.12",
|
|
33
33
|
"typescript": "^5.9.3",
|
|
34
|
-
"vitest": "^4.1.
|
|
34
|
+
"vitest": "^4.1.11"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -381,7 +381,7 @@ rule { collectors = [ { collector = ResourceActionScopeRuleCollector } ] }
|
|
|
381
381
|
|
|
382
382
|
const config = loadAppConfig(withoutVerify(), "development");
|
|
383
383
|
|
|
384
|
-
// All
|
|
384
|
+
// All eleven, spelled out. A knob that reached the shape but not the
|
|
385
385
|
// block's `.default()` literal is `undefined` here, and `toEqual` says
|
|
386
386
|
// which one.
|
|
387
387
|
expect(config.verify).toEqual({
|
|
@@ -394,6 +394,7 @@ rule { collectors = [ { collector = ResourceActionScopeRuleCollector } ] }
|
|
|
394
394
|
collectorTimeoutMs: 2_000,
|
|
395
395
|
collectorDeadlineMs: 5_000,
|
|
396
396
|
collectorConcurrency: 8,
|
|
397
|
+
batchConcurrency: 8,
|
|
397
398
|
credentialToCollectors: "never",
|
|
398
399
|
});
|
|
399
400
|
});
|
package/templates/versions.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"@o3co/auth.policy-verifier.core": "0.
|
|
3
|
-
"@o3co/auth.policy-verifier.builtins": "0.
|
|
4
|
-
"@o3co/auth.policy-verifier.server": "0.
|
|
2
|
+
"@o3co/auth.policy-verifier.core": "0.5.0",
|
|
3
|
+
"@o3co/auth.policy-verifier.builtins": "0.5.0",
|
|
4
|
+
"@o3co/auth.policy-verifier.server": "0.5.0"
|
|
5
5
|
}
|