@astrale-os/adapter-cloudflare 0.5.0-beta.129 → 0.5.0-beta.130

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.0-beta.130](https://github.com/astrale-os/sdk/compare/adapter-cloudflare-v0.5.0-beta.129...adapter-cloudflare-v0.5.0-beta.130) (2026-09-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **adapter-cloudflare:** use public subrequest routing by default ([#459](https://github.com/astrale-os/sdk/issues/459)) ([9965fc8](https://github.com/astrale-os/sdk/commit/9965fc842c1c9f6d19490f7bb211d05f12ea82a8))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @astrale-os/sdk bumped to 0.5.0-beta.127
16
+
3
17
  ## [0.5.0-beta.129](https://github.com/astrale-os/sdk/compare/adapter-cloudflare-v0.5.0-beta.128...adapter-cloudflare-v0.5.0-beta.129) (2026-09-07)
4
18
 
5
19
 
@@ -1,7 +1,7 @@
1
1
  export function resolveRouter(input) {
2
- if (input === false)
2
+ if (input === false || input === undefined)
3
3
  return undefined;
4
- const value = input ?? {};
4
+ const value = input;
5
5
  return Object.freeze({
6
6
  binding: value.binding ?? 'ROUTER',
7
7
  service: value.service ?? 'admin-router',
package/dist/params.d.ts CHANGED
@@ -67,26 +67,20 @@ export interface CloudflareParams {
67
67
  */
68
68
  readonly wrangler?: Record<string, unknown>;
69
69
  /**
70
- * Route subrequests to platform INSTANCE hostnames through a service binding
71
- * instead of the public edge. A Cloudflare Worker can't fetch a same-zone
72
- * hostname served by another Worker — Cloudflare 522s it — so without this the
73
- * worker can't fetch an instance kernel's JWKS to verify an inbound credential
74
- * from that instance, and every cross-instance call (install hooks, delegated
75
- * GUI calls, and traffic initiated from a Shell-handshaken View) fails with
76
- * `2002 Credential verification failed`. Point it at a router Worker that
77
- * reaches those hosts internally (Astrale: `admin-router`).
70
+ * Optional private routing through a service binding. By default, subrequests use
71
+ * their public URLs; generated Workers enable `global_fetch_strictly_public` so
72
+ * same-zone Worker calls honor public routes too.
78
73
  *
79
74
  * Wires BOTH halves the SDK needs: the `<binding>` service binding in the
80
75
  * generated wrangler config, and a `routeSubrequest` predicate in the worker
81
76
  * entry that diverts matching hosts through it.
82
77
  *
83
- * ON BY DEFAULT (targets `admin-router`) so every adapter-deployed worker can
84
- * verify cross-instance credentials out of the box. Pass `false` to disable
85
- * (a domain that never talks to another instance, or an account without a
86
- * router), or an object to override the target / binding name / host match.
78
+ * Opt in only when the selected router owns every hostname matched by the
79
+ * suffix/label predicate. A shared DNS suffix is not proof of router ownership:
80
+ * standalone Domain deployments may share it with managed instances.
87
81
  *
88
- * router: false // opt out
89
- * router: { service: 'my-router' } // override target
82
+ * router: false // explicit public routing (the default)
83
+ * router: { service: 'my-router' } // opt into a private router
90
84
  */
91
85
  readonly router?: false | {
92
86
  /** Router Worker the binding targets. Default `'admin-router'`. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/adapter-cloudflare",
3
- "version": "0.5.0-beta.129",
3
+ "version": "0.5.0-beta.130",
4
4
  "description": "Deploy an Astrale application through Cloudflare Workers",
5
5
  "keywords": [
6
6
  "adapter",
@@ -53,7 +53,7 @@
53
53
  "registry": "https://registry.npmjs.org/"
54
54
  },
55
55
  "dependencies": {
56
- "@astrale-os/sdk": "0.5.0-beta.126",
56
+ "@astrale-os/sdk": "0.5.0-beta.127",
57
57
  "@noble/hashes": "2.3.0",
58
58
  "hono": "^4.6.20",
59
59
  "jose": "^6.1.3",