@blamejs/core 0.18.42 → 0.18.44
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 +126 -0
- package/NOTICE +1 -1
- package/README.md +5 -4
- package/index.js +2 -0
- package/lib/chain-writer.js +103 -4
- package/lib/file-type.js +99 -2
- package/lib/framework-error.js +10 -0
- package/lib/gate-contract.js +255 -12
- package/lib/guard-all.js +1 -0
- package/lib/guard-archive.js +14 -0
- package/lib/guard-auth.js +1 -3
- package/lib/guard-country.js +480 -0
- package/lib/guard-csv.js +5 -0
- package/lib/guard-email.js +7 -7
- package/lib/guard-filename.js +11 -9
- package/lib/guard-graphql.js +1 -3
- package/lib/guard-html.js +6 -7
- package/lib/guard-image.js +15 -1
- package/lib/guard-json.js +3 -7
- package/lib/guard-jwt.js +8 -3
- package/lib/guard-markdown.js +946 -2
- package/lib/guard-oauth.js +1 -3
- package/lib/guard-pdf.js +8 -0
- package/lib/guard-regex.js +5 -4
- package/lib/guard-smtp-command.js +4 -2
- package/lib/guard-sql.js +10 -0
- package/lib/guard-svg.js +2 -1
- package/lib/guard-text.js +10 -0
- package/lib/guard-yaml.js +13 -2
- package/lib/middleware/index.js +3 -0
- package/lib/middleware/shared-secret-header.js +334 -0
- package/lib/money.js +70 -7
- package/lib/queue.js +346 -98
- package/lib/time.js +282 -0
- package/lib/vendor/MANIFEST.json +12 -12
- package/lib/vendor/blamejs-pki.cjs +858 -304
- package/package.json +1 -1
- package/sbom.cdx.json +6 -6
package/lib/guard-jwt.js
CHANGED
|
@@ -439,9 +439,9 @@ function _detectIssues(input, opts) {
|
|
|
439
439
|
* allowedAlgs: string[],
|
|
440
440
|
* requiredClaims: string[],
|
|
441
441
|
* knownCrit: string[],
|
|
442
|
-
* algNonePolicy: "reject"
|
|
442
|
+
* algNonePolicy: "reject", // alg=none is always critical
|
|
443
443
|
* algAllowlistPolicy: "reject"|"audit"|"allow",
|
|
444
|
-
* kidTraversalPolicy: "reject"
|
|
444
|
+
* kidTraversalPolicy: "reject", // kid traversal is always critical
|
|
445
445
|
* typConfusionPolicy: "reject"|"audit"|"allow",
|
|
446
446
|
* expSanityPolicy: "reject"|"audit"|"allow",
|
|
447
447
|
* nbfSanityPolicy: "reject"|"audit"|"allow",
|
|
@@ -587,8 +587,13 @@ module.exports = gateContract.defineGuard({
|
|
|
587
587
|
integrationFixtures: INTEGRATION_FIXTURES,
|
|
588
588
|
detect: _detectIssues,
|
|
589
589
|
sanitizeTransform: _sanitizeTransform,
|
|
590
|
+
// The byte caps only. nbfFutureSlackMs and iatFutureSlackMs are TOLERANCES,
|
|
591
|
+
// not caps: zero means "allow no clock slack", which is a stricter setting an
|
|
592
|
+
// operator may legitimately want, and declaring them here refused it. They
|
|
593
|
+
// are still held to being non-negative integers by the derived check, so a
|
|
594
|
+
// slack given as a string or an Infinity is refused exactly as before.
|
|
590
595
|
intOpts: ["maxBytes", "maxHeaderBytes", "maxPayloadBytes",
|
|
591
|
-
"maxSignatureBytes"
|
|
596
|
+
"maxSignatureBytes"],
|
|
592
597
|
extra: {
|
|
593
598
|
kidSafe: kidSafe,
|
|
594
599
|
},
|