Say why a name under the mind's apex is enough for a sandbox's git helper
Jonas Templestein, 2026-11-26 13:16 UTC · 2623d4e59f482291a9d9dc06a95c3d4282aa6706 · parent 175d661
1 file changed
M core/lib/src/cli/git.ts
@@ -162,7 +162,12 @@ /** Whether `host` is a host of the mind whose own address is `mindUrl` (`itx.url()`, its apex): * that hostname, or a name under it. A sandbox's helper hands a repo's token to no other host: - * git asks the helper for whatever host its config names. */ + * git asks the helper for whatever host its config names. + * A NAME UNDER THE APEX IS ENOUGH IN A SANDBOX, whatever DNS says of it: every request of a + * sandbox is the mind's own `itx.fetch`, and a request for a hostname of one of the mind's zones + * never leaves the stack. The boundary's own handler answers it + * (core/boundary-worker/src/rpc.ts `Door.fetch`), so a record that points such a name at + * someone else's server is not followed, and the token reaches the mind's own code alone. */ export function isHostOfMind(host: string, mindUrl: string): boolean { if (!URL.canParse(mindUrl)) return false; const apex = new URL(mindUrl).hostname.toLowerCase();