@cosmicdrift/kumiko-guards 0.283.0 → 0.284.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 +2 -2
- package/src/changes.json +6 -0
- package/src/guard-direct-fetch.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-guards",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.284.0",
|
|
4
4
|
"description": "AST-based security guards for Kumiko repos: direct-fs/fetch, tenant escalation, admin-API, escape hatches and related checks, run over a shared ts-morph project.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"kumiko-guards": "./src/cli.ts"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@cosmicdrift/kumiko-repo-manifest": "0.
|
|
30
|
+
"@cosmicdrift/kumiko-repo-manifest": "0.284.0",
|
|
31
31
|
"ts-morph": "^28.0.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
package/src/changes.json
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.284.0",
|
|
4
|
+
"type": "fix",
|
|
5
|
+
"title": "Fix Direct-Fetch Guard allowlist after egress moved to kumiko-http",
|
|
6
|
+
"detail": "The ALLOWLIST regex still pointed at the old packages/framework/src/http/egress.ts path; egress() now lives in packages/http/src/egress.ts (@cosmicdrift/kumiko-http), so the guard was about to self-flag its own allowed implementation as a raw-fetch violation."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.283.0",
|
|
4
10
|
"type": "fix",
|
|
@@ -43,8 +43,8 @@ const EXCLUDE =
|
|
|
43
43
|
// Prefixed by RepoRoot.name (not kind): kind "app" is shared across
|
|
44
44
|
// unregistered repos (infra#560).
|
|
45
45
|
|
|
46
|
-
// packages/
|
|
47
|
-
const ALLOWLIST = [/^kumiko-framework\/packages\/
|
|
46
|
+
// packages/http/src/egress.ts IS the egress() implementation.
|
|
47
|
+
const ALLOWLIST = [/^kumiko-framework\/packages\/http\/src\/egress\.ts$/];
|
|
48
48
|
const ALLOW_MARKER = "guard-allow: same-origin fetch";
|
|
49
49
|
|
|
50
50
|
interface Violation {
|