@substrat-run/contracts 0.225.0 → 0.226.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/dist/credential-injection.d.ts +105 -0
- package/dist/credential-injection.d.ts.map +1 -0
- package/dist/credential-injection.js +119 -0
- package/dist/credential-injection.js.map +1 -0
- package/dist/egress-gate.d.ts +68 -0
- package/dist/egress-gate.d.ts.map +1 -0
- package/dist/egress-gate.js +23 -0
- package/dist/egress-gate.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/job-run.d.ts +34 -0
- package/dist/job-run.d.ts.map +1 -1
- package/dist/job-run.js +68 -0
- package/dist/job-run.js.map +1 -1
- package/dist/manifest.d.ts +21 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +21 -0
- package/dist/manifest.js.map +1 -1
- package/dist/provision-reconcile.d.ts +51 -0
- package/dist/provision-reconcile.d.ts.map +1 -1
- package/dist/provision-reconcile.js +66 -0
- package/dist/provision-reconcile.js.map +1 -1
- package/dist/public-read.d.ts +31 -0
- package/dist/public-read.d.ts.map +1 -0
- package/dist/public-read.js +60 -0
- package/dist/public-read.js.map +1 -0
- package/dist/registry.d.ts +52 -0
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +25 -0
- package/dist/registry.js.map +1 -1
- package/dist/source-build.d.ts +95 -0
- package/dist/source-build.d.ts.map +1 -1
- package/dist/source-build.js +48 -0
- package/dist/source-build.js.map +1 -1
- package/dist/vertical-connector.d.ts +5 -1
- package/dist/vertical-connector.d.ts.map +1 -1
- package/dist/vertical-connector.js +8 -1
- package/dist/vertical-connector.js.map +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Credential injection in the fence (broker RFC §8.2–8.3, Track D, #3476; D-81).
|
|
4
|
+
*
|
|
5
|
+
* App code that needs a connection's credential on a request does not hold it. It names the
|
|
6
|
+
* credential by reference, in {@link CREDENTIAL_REF_HEADER}, and the fence — the platform's
|
|
7
|
+
* outbound worker, `apps/vertical-egress` — asks a resolver for the value with the caller the
|
|
8
|
+
* router set on the dispatch (never one the request claims), checks the field's D-81 binding
|
|
9
|
+
* against the request's host, method and path, removes the reference, adds the value the way the
|
|
10
|
+
* resolver says, and sends it. The value is never in the app's request, its response, a log line
|
|
11
|
+
* or a meter point.
|
|
12
|
+
*
|
|
13
|
+
* What it covers is what §8.3 says: a credential sent as it is, as a bearer token or one header.
|
|
14
|
+
* A signed request, a JWT client assertion, mTLS or an OAuth refresh needs the platform to run the
|
|
15
|
+
* scheme, and is not offered here.
|
|
16
|
+
*
|
|
17
|
+
* Opt-in and off by default: the fence reads the reference only behind its `CREDENTIAL_INJECTION`
|
|
18
|
+
* switch, and only with a resolver bound. With either missing a request is sent as it always was,
|
|
19
|
+
* reference header and all; the header names a credential and carries none of it, so a request
|
|
20
|
+
* that bypasses the fence (a Durable Object's own fetch) sends no secret, only a name.
|
|
21
|
+
*/
|
|
22
|
+
/** The request header that names the credential to inject. A reference, never a value. */
|
|
23
|
+
export declare const CREDENTIAL_REF_HEADER = "x-substrat-credential";
|
|
24
|
+
/** The most a reference header may hold. */
|
|
25
|
+
export declare const CREDENTIAL_REF_MAX_LENGTH = 512;
|
|
26
|
+
/**
|
|
27
|
+
* Which credential: the connector's provider, the secret field, and, for a provider keyed per
|
|
28
|
+
* account, the account. The tenant, app and scope are never part of it: the fence takes those from
|
|
29
|
+
* the dispatch, so a request cannot name another tenant's connection.
|
|
30
|
+
*/
|
|
31
|
+
export declare const credentialRef: z.ZodObject<{
|
|
32
|
+
provider: z.ZodString;
|
|
33
|
+
field: z.ZodString;
|
|
34
|
+
account: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
export type CredentialRef = z.infer<typeof credentialRef>;
|
|
37
|
+
/** The header value for a reference: what app code (or the SDK that wraps it) sets. */
|
|
38
|
+
export declare function credentialRefHeader(ref: CredentialRef): string;
|
|
39
|
+
/** The reference a header names, or `null` when it is not one. */
|
|
40
|
+
export declare function parseCredentialRef(value: string): CredentialRef | null;
|
|
41
|
+
/**
|
|
42
|
+
* How the value rides on the request, which the connector declares and the resolver answers with;
|
|
43
|
+
* app code never chooses it. `bearer`: `Authorization: Bearer <value>`. `header`: the value alone,
|
|
44
|
+
* in the named header. Either replaces a header of that name the request already carried.
|
|
45
|
+
*/
|
|
46
|
+
export declare const credentialInjectionScheme: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
47
|
+
as: z.ZodLiteral<"bearer">;
|
|
48
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
49
|
+
as: z.ZodLiteral<"header">;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
}, z.core.$strict>], "as">;
|
|
52
|
+
export type CredentialInjectionScheme = z.infer<typeof credentialInjectionScheme>;
|
|
53
|
+
/** The header a scheme writes, and its value. */
|
|
54
|
+
export declare function injectedHeader(scheme: CredentialInjectionScheme, value: string): {
|
|
55
|
+
name: string;
|
|
56
|
+
value: string;
|
|
57
|
+
};
|
|
58
|
+
/** Who is asking, as the router set it on the dispatch. */
|
|
59
|
+
export declare const credentialResolutionCaller: z.ZodObject<{
|
|
60
|
+
vertical: z.ZodString;
|
|
61
|
+
tenantId: z.ZodString;
|
|
62
|
+
scopeId: z.ZodString;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
export type CredentialResolutionCaller = z.infer<typeof credentialResolutionCaller>;
|
|
65
|
+
/**
|
|
66
|
+
* The resolver's answer. `ok`: the value, the field's D-81 binding and how to inject it. Otherwise
|
|
67
|
+
* the status the fence answers with and a reason it may show the app, which names no value.
|
|
68
|
+
*/
|
|
69
|
+
export declare const credentialResolution: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
70
|
+
ok: z.ZodLiteral<true>;
|
|
71
|
+
value: z.ZodString;
|
|
72
|
+
binding: z.ZodObject<{
|
|
73
|
+
hosts: z.ZodArray<z.ZodString>;
|
|
74
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
75
|
+
DELETE: "DELETE";
|
|
76
|
+
GET: "GET";
|
|
77
|
+
HEAD: "HEAD";
|
|
78
|
+
PATCH: "PATCH";
|
|
79
|
+
POST: "POST";
|
|
80
|
+
PUT: "PUT";
|
|
81
|
+
}>>>;
|
|
82
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
|
+
}, z.core.$strict>;
|
|
84
|
+
scheme: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
85
|
+
as: z.ZodLiteral<"bearer">;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
as: z.ZodLiteral<"header">;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
}, z.core.$strict>], "as">;
|
|
90
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
91
|
+
ok: z.ZodLiteral<false>;
|
|
92
|
+
status: z.ZodNumber;
|
|
93
|
+
reason: z.ZodString;
|
|
94
|
+
}, z.core.$strict>], "ok">;
|
|
95
|
+
export type CredentialResolution = z.infer<typeof credentialResolution>;
|
|
96
|
+
/**
|
|
97
|
+
* The fence's port to whoever holds the sealed credential (the control plane, where it is stored).
|
|
98
|
+
* Arguments are `unknown` because the resolver parses them: the fence is not where a caller is
|
|
99
|
+
* decided to be valid. The resolver checks that the caller's app and tenant own a live connection
|
|
100
|
+
* for the reference, and answers its binding with the value.
|
|
101
|
+
*/
|
|
102
|
+
export interface CredentialResolver {
|
|
103
|
+
resolve(caller: unknown, ref: unknown): Promise<unknown>;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=credential-injection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-injection.d.ts","sourceRoot":"","sources":["../src/credential-injection.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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AC,CAAC;CAC1D"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { connectionProvider } from './connections.js';
|
|
3
|
+
import { credentialBinding } from './credential-binding.js';
|
|
4
|
+
/**
|
|
5
|
+
* Credential injection in the fence (broker RFC §8.2–8.3, Track D, #3476; D-81).
|
|
6
|
+
*
|
|
7
|
+
* App code that needs a connection's credential on a request does not hold it. It names the
|
|
8
|
+
* credential by reference, in {@link CREDENTIAL_REF_HEADER}, and the fence — the platform's
|
|
9
|
+
* outbound worker, `apps/vertical-egress` — asks a resolver for the value with the caller the
|
|
10
|
+
* router set on the dispatch (never one the request claims), checks the field's D-81 binding
|
|
11
|
+
* against the request's host, method and path, removes the reference, adds the value the way the
|
|
12
|
+
* resolver says, and sends it. The value is never in the app's request, its response, a log line
|
|
13
|
+
* or a meter point.
|
|
14
|
+
*
|
|
15
|
+
* What it covers is what §8.3 says: a credential sent as it is, as a bearer token or one header.
|
|
16
|
+
* A signed request, a JWT client assertion, mTLS or an OAuth refresh needs the platform to run the
|
|
17
|
+
* scheme, and is not offered here.
|
|
18
|
+
*
|
|
19
|
+
* Opt-in and off by default: the fence reads the reference only behind its `CREDENTIAL_INJECTION`
|
|
20
|
+
* switch, and only with a resolver bound. With either missing a request is sent as it always was,
|
|
21
|
+
* reference header and all; the header names a credential and carries none of it, so a request
|
|
22
|
+
* that bypasses the fence (a Durable Object's own fetch) sends no secret, only a name.
|
|
23
|
+
*/
|
|
24
|
+
/** The request header that names the credential to inject. A reference, never a value. */
|
|
25
|
+
export const CREDENTIAL_REF_HEADER = 'x-substrat-credential';
|
|
26
|
+
/** The most a reference header may hold. */
|
|
27
|
+
export const CREDENTIAL_REF_MAX_LENGTH = 512;
|
|
28
|
+
/**
|
|
29
|
+
* Which credential: the connector's provider, the secret field, and, for a provider keyed per
|
|
30
|
+
* account, the account. The tenant, app and scope are never part of it: the fence takes those from
|
|
31
|
+
* the dispatch, so a request cannot name another tenant's connection.
|
|
32
|
+
*/
|
|
33
|
+
export const credentialRef = z
|
|
34
|
+
.object({
|
|
35
|
+
provider: connectionProvider,
|
|
36
|
+
field: z.string().max(64).regex(/^[a-zA-Z][a-zA-Z0-9_]*$/, 'a field key is an identifier'),
|
|
37
|
+
account: z.string().min(1).max(200).optional(),
|
|
38
|
+
})
|
|
39
|
+
.strict();
|
|
40
|
+
/** The header value for a reference: what app code (or the SDK that wraps it) sets. */
|
|
41
|
+
export function credentialRefHeader(ref) {
|
|
42
|
+
return JSON.stringify(credentialRef.parse(ref));
|
|
43
|
+
}
|
|
44
|
+
/** The reference a header names, or `null` when it is not one. */
|
|
45
|
+
export function parseCredentialRef(value) {
|
|
46
|
+
if (value.length === 0 || value.length > CREDENTIAL_REF_MAX_LENGTH)
|
|
47
|
+
return null;
|
|
48
|
+
let raw;
|
|
49
|
+
try {
|
|
50
|
+
raw = JSON.parse(value);
|
|
51
|
+
}
|
|
52
|
+
catch {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
const parsed = credentialRef.safeParse(raw);
|
|
56
|
+
return parsed.success ? parsed.data : null;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Headers a credential is never injected into: those that frame the request or address it, the
|
|
60
|
+
* ones that carry another party's state, and the platform's own.
|
|
61
|
+
*/
|
|
62
|
+
const UNINJECTABLE_HEADERS = new Set([
|
|
63
|
+
'host',
|
|
64
|
+
'connection',
|
|
65
|
+
'content-length',
|
|
66
|
+
'content-type',
|
|
67
|
+
'transfer-encoding',
|
|
68
|
+
'te',
|
|
69
|
+
'trailer',
|
|
70
|
+
'upgrade',
|
|
71
|
+
'keep-alive',
|
|
72
|
+
'proxy-authorization',
|
|
73
|
+
'cookie',
|
|
74
|
+
'forwarded',
|
|
75
|
+
'traceparent',
|
|
76
|
+
'tracestate',
|
|
77
|
+
]);
|
|
78
|
+
const injectableHeaderName = z
|
|
79
|
+
.string()
|
|
80
|
+
.min(1)
|
|
81
|
+
.max(64)
|
|
82
|
+
.regex(/^[a-z0-9][a-z0-9-]*$/, 'a header name is lowercase letters, digits and dashes')
|
|
83
|
+
.refine((n) => !UNINJECTABLE_HEADERS.has(n) && !n.startsWith('x-substrat-') && !n.startsWith('cf-'), 'a credential is never injected into that header');
|
|
84
|
+
/**
|
|
85
|
+
* How the value rides on the request, which the connector declares and the resolver answers with;
|
|
86
|
+
* app code never chooses it. `bearer`: `Authorization: Bearer <value>`. `header`: the value alone,
|
|
87
|
+
* in the named header. Either replaces a header of that name the request already carried.
|
|
88
|
+
*/
|
|
89
|
+
export const credentialInjectionScheme = z.discriminatedUnion('as', [
|
|
90
|
+
z.object({ as: z.literal('bearer') }).strict(),
|
|
91
|
+
z.object({ as: z.literal('header'), name: injectableHeaderName }).strict(),
|
|
92
|
+
]);
|
|
93
|
+
/** The header a scheme writes, and its value. */
|
|
94
|
+
export function injectedHeader(scheme, value) {
|
|
95
|
+
return scheme.as === 'bearer' ? { name: 'authorization', value: `Bearer ${value}` } : { name: scheme.name, value };
|
|
96
|
+
}
|
|
97
|
+
/** Who is asking, as the router set it on the dispatch. */
|
|
98
|
+
export const credentialResolutionCaller = z
|
|
99
|
+
.object({
|
|
100
|
+
vertical: z.string().min(1).max(200),
|
|
101
|
+
tenantId: z.string().min(1).max(200),
|
|
102
|
+
scopeId: z.string().min(1).max(200),
|
|
103
|
+
})
|
|
104
|
+
.strict();
|
|
105
|
+
/** No control character: a value that could end a header line is never sent. */
|
|
106
|
+
const injectableValue = z
|
|
107
|
+
.string()
|
|
108
|
+
.min(1)
|
|
109
|
+
.max(8192)
|
|
110
|
+
.regex(/^[^\u0000-\u001f\u007f]+$/, 'a credential to inject holds no control character');
|
|
111
|
+
/**
|
|
112
|
+
* The resolver's answer. `ok`: the value, the field's D-81 binding and how to inject it. Otherwise
|
|
113
|
+
* the status the fence answers with and a reason it may show the app, which names no value.
|
|
114
|
+
*/
|
|
115
|
+
export const credentialResolution = z.discriminatedUnion('ok', [
|
|
116
|
+
z.object({ ok: z.literal(true), value: injectableValue, binding: credentialBinding, scheme: credentialInjectionScheme }).strict(),
|
|
117
|
+
z.object({ ok: z.literal(false), status: z.number().int().min(400).max(599), reason: z.string().min(1).max(600) }).strict(),
|
|
118
|
+
]);
|
|
119
|
+
//# sourceMappingURL=credential-injection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-injection.js","sourceRoot":"","sources":["../src/credential-injection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,0FAA0F;AAC1F,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAE7D,4CAA4C;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAE7C;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,MAAM,CAAC;IACN,QAAQ,EAAE,kBAAkB;IAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,EAAE,8BAA8B,CAAC;IAC1F,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,uFAAuF;AACvF,MAAM,UAAU,mBAAmB,CAAC,GAAkB;IACpD,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAClD,CAAC;AAED,kEAAkE;AAClE,MAAM,UAAU,kBAAkB,CAAC,KAAa;IAC9C,IAAI,KAAK,CAAC,MAAM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K,EAAE,eAAe,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjI,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;CAC5H,CAAC,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The gate's decision (broker RFC §8.1, Track D, #3476): whether one outward call from an app may
|
|
3
|
+
* leave, judged on three levels of rule, then a rate limit. The gate is the app's common exit to the
|
|
4
|
+
* internet; the fence behind it (`apps/vertical-egress`) is the only place a credential is injected.
|
|
5
|
+
*
|
|
6
|
+
* **The gate never touches a credential, and its input cannot carry one.** It is handed the host and
|
|
7
|
+
* the method, never a header, a body or a resolver. A call that asks the fence to inject a
|
|
8
|
+
* credential names it by reference (`CREDENTIAL_REF_HEADER`), and the gate passes that reference on
|
|
9
|
+
* as it came: the request it lets out is the request it was given.
|
|
10
|
+
*
|
|
11
|
+
* Order, first refusal wins:
|
|
12
|
+
* 1. the platform's deny list, which holds for every app, a version with no declared surface included;
|
|
13
|
+
* 2. the hosts the app's version declares (D-46); `null` is a version pushed before the declaration,
|
|
14
|
+
* passed as `unenforced` exactly as the fence passes it today;
|
|
15
|
+
* 3. the tenant's own policy, which narrows and never widens: a host it denies is refused, and when it
|
|
16
|
+
* names an allow list, a host outside it is refused;
|
|
17
|
+
* 4. a rate limit per (tenant, app, host), through a port the gate's host supplies.
|
|
18
|
+
*
|
|
19
|
+
* Not wired: the gate's home is an entrypoint in the broker's script that a facet's `fetch` points at
|
|
20
|
+
* (Track B, #3466). Until a facet exists there is nothing to point at it, and a worker's calls reach
|
|
21
|
+
* the fence directly, judged as they are today. Hosts use the outbound grammar (D-46).
|
|
22
|
+
*/
|
|
23
|
+
/** What the gate judges: where the call goes and how. Deliberately no headers, body or credential. */
|
|
24
|
+
export interface EgressGateTarget {
|
|
25
|
+
hostname: string;
|
|
26
|
+
method: string;
|
|
27
|
+
}
|
|
28
|
+
/** The tenant's own rule for one app's calls. It narrows what the app declares, never widens it. */
|
|
29
|
+
export interface EgressTenantPolicy {
|
|
30
|
+
/** Hosts this tenant refuses to let the app call. */
|
|
31
|
+
deny?: readonly string[];
|
|
32
|
+
/** When present, the only hosts this tenant lets the app call. Absent: whatever the app declares. */
|
|
33
|
+
allow?: readonly string[];
|
|
34
|
+
}
|
|
35
|
+
export interface EgressGateRules {
|
|
36
|
+
/** Hosts no app may call. The platform's, held for every app and version. */
|
|
37
|
+
platformDeny: readonly string[];
|
|
38
|
+
/** The version's declared outbound surface; `null` for a version pushed before it existed. */
|
|
39
|
+
appHosts: readonly string[] | null;
|
|
40
|
+
/** The calling tenant's policy, when it set one. */
|
|
41
|
+
tenant?: EgressTenantPolicy;
|
|
42
|
+
}
|
|
43
|
+
/** The key a rate limit is counted under: the calling tenant and app, and the destination host. */
|
|
44
|
+
export interface EgressRateKey {
|
|
45
|
+
tenant: string;
|
|
46
|
+
app: string;
|
|
47
|
+
host: string;
|
|
48
|
+
}
|
|
49
|
+
/** Counts one call against its key's limit. `false`: the limit is spent, and the call is refused. */
|
|
50
|
+
export interface EgressRateLimiter {
|
|
51
|
+
take(key: EgressRateKey): boolean;
|
|
52
|
+
}
|
|
53
|
+
export type EgressGateRefusal = 'platform-denied' | 'undeclared' | 'tenant-denied' | 'rate-limited';
|
|
54
|
+
/** What the gate decided, as the meter records it. A refusal says which rule refused, never a value. */
|
|
55
|
+
export type EgressGateVerdict = {
|
|
56
|
+
allowed: true;
|
|
57
|
+
verdict: 'allowed' | 'unenforced';
|
|
58
|
+
} | {
|
|
59
|
+
allowed: false;
|
|
60
|
+
verdict: EgressGateRefusal;
|
|
61
|
+
detail: string;
|
|
62
|
+
};
|
|
63
|
+
/** Judge one call. Pure but for the limiter, which is asked only once every rule has admitted the call. */
|
|
64
|
+
export declare function judgeEgress(target: EgressGateTarget, rules: EgressGateRules, limit?: {
|
|
65
|
+
limiter: EgressRateLimiter;
|
|
66
|
+
key: Omit<EgressRateKey, 'host'>;
|
|
67
|
+
}): EgressGateVerdict;
|
|
68
|
+
//# sourceMappingURL=egress-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"egress-gate.d.ts","sourceRoot":"","sources":["../src/egress-gate.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,sGAAsG;AACtG,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oGAAoG;AACpG,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,qGAAqG;IACrG,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,6EAA6E;IAC7E,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,8FAA8F;IAC9F,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IACnC,oDAAoD;IACpD,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAED,mGAAmG;AACnG,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qGAAqG;AACrG,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC;CACnC;AAED,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,GAAG,YAAY,GAAG,eAAe,GAAG,cAAc,CAAC;AAEpG,wGAAwG;AACxG,MAAM,MAAM,iBAAiB,GACzB;IAAE,OAAO,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,SAAS,GAAG,YAAY,CAAA;CAAE,GACpD;IAAE,OAAO,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,iBAAiB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnE,2GAA2G;AAC3G,wBAAgB,WAAW,CACzB,MAAM,EAAE,gBAAgB,EACxB,KAAK,EAAE,eAAe,EACtB,KAAK,CAAC,EAAE;IAAE,OAAO,EAAE,iBAAiB,CAAC;IAAC,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;CAAE,GACvE,iBAAiB,CAmBnB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { matchesOutboundHost } from './outbound-host.js';
|
|
2
|
+
/** Judge one call. Pure but for the limiter, which is asked only once every rule has admitted the call. */
|
|
3
|
+
export function judgeEgress(target, rules, limit) {
|
|
4
|
+
const host = target.hostname.toLowerCase();
|
|
5
|
+
if (matchesOutboundHost(host, rules.platformDeny)) {
|
|
6
|
+
return { allowed: false, verdict: 'platform-denied', detail: `'${host}' is on the platform's deny list, and no app may call it` };
|
|
7
|
+
}
|
|
8
|
+
const declared = rules.appHosts !== null;
|
|
9
|
+
if (declared && !matchesOutboundHost(host, rules.appHosts)) {
|
|
10
|
+
return { allowed: false, verdict: 'undeclared', detail: `'${host}' is not in this app's declared outbound surface` };
|
|
11
|
+
}
|
|
12
|
+
if (rules.tenant?.deny && matchesOutboundHost(host, rules.tenant.deny)) {
|
|
13
|
+
return { allowed: false, verdict: 'tenant-denied', detail: `this tenant does not let the app call '${host}'` };
|
|
14
|
+
}
|
|
15
|
+
if (rules.tenant?.allow && !matchesOutboundHost(host, rules.tenant.allow)) {
|
|
16
|
+
return { allowed: false, verdict: 'tenant-denied', detail: `'${host}' is outside the hosts this tenant lets the app call` };
|
|
17
|
+
}
|
|
18
|
+
if (limit && !limit.limiter.take({ ...limit.key, host })) {
|
|
19
|
+
return { allowed: false, verdict: 'rate-limited', detail: `the rate limit for '${host}' is spent` };
|
|
20
|
+
}
|
|
21
|
+
return { allowed: true, verdict: declared ? 'allowed' : 'unenforced' };
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=egress-gate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"egress-gate.js","sourceRoot":"","sources":["../src/egress-gate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAmEzD,2GAA2G;AAC3G,MAAM,UAAU,WAAW,CACzB,MAAwB,EACxB,KAAsB,EACtB,KAAwE;IAExE,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;IAC3C,IAAI,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,EAAE,CAAC;QAClD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,IAAI,IAAI,0DAA0D,EAAE,CAAC;IACpI,CAAC;IACD,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC;IACzC,IAAI,QAAQ,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,QAAS,CAAC,EAAE,CAAC;QAC5D,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,IAAI,kDAAkD,EAAE,CAAC;IACvH,CAAC;IACD,IAAI,KAAK,CAAC,MAAM,EAAE,IAAI,IAAI,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QACvE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,0CAA0C,IAAI,GAAG,EAAE,CAAC;IACjH,CAAC;IACD,IAAI,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1E,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,IAAI,IAAI,sDAAsD,EAAE,CAAC;IAC9H,CAAC;IACD,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QACzD,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,uBAAuB,IAAI,YAAY,EAAE,CAAC;IACtG,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC;AACzE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ export * from './connections.js';
|
|
|
44
44
|
export * from './connection-landing.js';
|
|
45
45
|
export * from './vertical-connector.js';
|
|
46
46
|
export * from './credential-binding.js';
|
|
47
|
+
export * from './credential-injection.js';
|
|
48
|
+
export * from './egress-gate.js';
|
|
47
49
|
export * from './connector-call-target.js';
|
|
48
50
|
export * from './connection-health.js';
|
|
49
51
|
export * from './control-plane.js';
|
|
@@ -93,6 +95,7 @@ export * from './connect-intent.js';
|
|
|
93
95
|
export * from './relay-intents.js';
|
|
94
96
|
export * from './entity-state.js';
|
|
95
97
|
export * from './job-run.js';
|
|
98
|
+
export * from './public-read.js';
|
|
96
99
|
export * from './entity-stamps.js';
|
|
97
100
|
export * from './subject-erasure.js';
|
|
98
101
|
export * from './subject-access.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,EAC7B,mCAAmC,EACnC,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,EAClB,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,MAAM,2BAA2B,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,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AAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,8 @@ export * from './connections.js';
|
|
|
45
45
|
export * from './connection-landing.js';
|
|
46
46
|
export * from './vertical-connector.js';
|
|
47
47
|
export * from './credential-binding.js';
|
|
48
|
+
export * from './credential-injection.js';
|
|
49
|
+
export * from './egress-gate.js';
|
|
48
50
|
export * from './connector-call-target.js';
|
|
49
51
|
export * from './connection-health.js';
|
|
50
52
|
export * from './control-plane.js';
|
|
@@ -95,6 +97,7 @@ export * from './connect-intent.js';
|
|
|
95
97
|
export * from './relay-intents.js';
|
|
96
98
|
export * from './entity-state.js';
|
|
97
99
|
export * from './job-run.js';
|
|
100
|
+
export * from './public-read.js';
|
|
98
101
|
export * from './entity-stamps.js';
|
|
99
102
|
export * from './subject-erasure.js';
|
|
100
103
|
export * from './subject-access.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,kFAAkF;AAClF,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,6BAA6B,EAC7B,mCAAmC,EACnC,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,EAClB,2BAA2B,EAC3B,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,wBAAwB,GASzB,MAAM,2BAA2B,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;A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AoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC"}
|
package/dist/job-run.d.ts
CHANGED
|
@@ -29,6 +29,40 @@ export declare const jobRunEndedPayload: z.ZodObject<{
|
|
|
29
29
|
lastError: z.ZodNullable<z.ZodString>;
|
|
30
30
|
startedAt: z.ZodString;
|
|
31
31
|
endedAt: z.ZodString;
|
|
32
|
+
result: z.ZodOptional<z.ZodUnknown>;
|
|
32
33
|
}, z.core.$strict>;
|
|
33
34
|
export type JobRunEndedPayload = z.infer<typeof jobRunEndedPayload>;
|
|
35
|
+
/** Where a container-placed job's passes run, as its package declares it (`substrat.jobs`). */
|
|
36
|
+
export interface ContainerPlacement {
|
|
37
|
+
/** A runtime the platform curates: `node24`, `node24-ffmpeg`. */
|
|
38
|
+
readonly runtime: string;
|
|
39
|
+
/** A Cloudflare instance type: `lite`, `standard-1` … `standard-4`. */
|
|
40
|
+
readonly instance: string;
|
|
41
|
+
/** How long one pass may run before the platform stops its container and fails the pass. */
|
|
42
|
+
readonly passDeadlineMs: number;
|
|
43
|
+
/** How a failed pass is retried: the kernel's `ExecutorRetryPolicy`. A package declares only `maxAttempts`. */
|
|
44
|
+
readonly retry?: {
|
|
45
|
+
readonly maxAttempts?: number;
|
|
46
|
+
readonly baseDelayMs?: number;
|
|
47
|
+
readonly maxDelayMs?: number;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* D-86: whether the pass may read public addresses it was not told about (a feed, the files it links
|
|
51
|
+
* to), and the most bytes one such read may carry. Absent: the container reaches nothing but its door.
|
|
52
|
+
*/
|
|
53
|
+
readonly publicRead?: {
|
|
54
|
+
readonly maxBytes: number;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/** The runtimes a container pass may name. Each is an image the platform builds and pins. */
|
|
58
|
+
export declare const CONTAINER_RUNTIMES: readonly ['node24', 'node24-ffmpeg'];
|
|
59
|
+
export type ContainerRuntime = (typeof CONTAINER_RUNTIMES)[number];
|
|
60
|
+
/** The instance types a container pass may name (Cloudflare's, for the `durable_object` policy). */
|
|
61
|
+
export declare const CONTAINER_INSTANCES: readonly ['lite', 'standard-1', 'standard-2', 'standard-3', 'standard-4'];
|
|
62
|
+
/** The longest a pass may be declared to run. A run of longer work is several passes, with a cursor. */
|
|
63
|
+
export declare const CONTAINER_PASS_DEADLINE_MAX_MS: number;
|
|
64
|
+
/** The deadline a placement that names none gets. */
|
|
65
|
+
export declare const CONTAINER_PASS_DEADLINE_DEFAULT_MS: number;
|
|
66
|
+
/** Parse one placement as a package declares it; the message names what is wrong. */
|
|
67
|
+
export declare function containerPlacementOf(job: string, raw: unknown): ContainerPlacement;
|
|
34
68
|
//# sourceMappingURL=job-run.d.ts.map
|
package/dist/job-run.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-run.d.ts","sourceRoot":"","sources":["../src/job-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"job-run.d.ts","sourceRoot":"","sources":["../src/job-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,uFAAuF;AACvF,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAE7C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;kBAqB7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAKpE,+FAA+F;AAC/F,MAAM,WAAW,kBAAkB;IACjC,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,4FAA4F;IAC5F,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,+GAA+G;IAC/G,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAChH;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE;QAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CACrD;AAED,6FAA6F;AAC7F,eAAO,MAAM,kBAAkB,YAAI,QAAQ,EAAE,eAAe,CAAU,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,oGAAoG;AACpG,eAAO,MAAM,mBAAmB,YAAI,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAU,CAAC;AAE7G,wGAAwG;AACxG,eAAO,MAAM,8BAA8B,QAAkB,CAAC;AAE9D,qDAAqD;AACrD,eAAO,MAAM,kCAAkC,QAAc,CAAC;AAG9D,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,kBAAkB,CAsClF"}
|
package/dist/job-run.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* A run of a job no module declares (the kernel's own text run, a host's `startJobRun`) writes none.
|
|
13
13
|
*/
|
|
14
14
|
import { z } from 'zod';
|
|
15
|
+
import { PUBLIC_READ_MAX_BYTES_CEILING, PUBLIC_READ_MAX_BYTES_DEFAULT } from './public-read.js';
|
|
15
16
|
export const JOB_RUN_ENDED = 'job.run-ended';
|
|
16
17
|
/** The `entityType` of a `job.run-ended` event: the run's own id is its `entityId`. */
|
|
17
18
|
export const JOB_RUN_ENTITY_TYPE = 'job-run';
|
|
@@ -30,5 +31,72 @@ export const jobRunEndedPayload = z.strictObject({
|
|
|
30
31
|
lastError: z.string().nullable(),
|
|
31
32
|
startedAt: z.string().min(1),
|
|
32
33
|
endedAt: z.string().min(1),
|
|
34
|
+
/**
|
|
35
|
+
* A `done` run's result: the cursor its last pass committed, which a container pass that ends with
|
|
36
|
+
* `{ done: true, result }` sets to that result (#3752). Absent on `failed`, and on a run that ended
|
|
37
|
+
* with no cursor.
|
|
38
|
+
*/
|
|
39
|
+
result: z.unknown().optional(),
|
|
33
40
|
});
|
|
41
|
+
/** The runtimes a container pass may name. Each is an image the platform builds and pins. */
|
|
42
|
+
export const CONTAINER_RUNTIMES = ['node24', 'node24-ffmpeg'];
|
|
43
|
+
/** The instance types a container pass may name (Cloudflare's, for the `durable_object` policy). */
|
|
44
|
+
export const CONTAINER_INSTANCES = ['lite', 'standard-1', 'standard-2', 'standard-3', 'standard-4'];
|
|
45
|
+
/** The longest a pass may be declared to run. A run of longer work is several passes, with a cursor. */
|
|
46
|
+
export const CONTAINER_PASS_DEADLINE_MAX_MS = 6 * 60 * 60_000;
|
|
47
|
+
/** The deadline a placement that names none gets. */
|
|
48
|
+
export const CONTAINER_PASS_DEADLINE_DEFAULT_MS = 30 * 60_000;
|
|
49
|
+
/** Parse one placement as a package declares it; the message names what is wrong. */
|
|
50
|
+
export function containerPlacementOf(job, raw) {
|
|
51
|
+
const where = `job '${job}'`;
|
|
52
|
+
if (typeof raw !== 'object' || raw === null)
|
|
53
|
+
throw new Error(`${where}: a placement is an object`);
|
|
54
|
+
const r = raw;
|
|
55
|
+
if (r.placement !== 'container')
|
|
56
|
+
throw new Error(`${where}: placement must be 'container'`);
|
|
57
|
+
if (typeof r.runtime !== 'string' || !CONTAINER_RUNTIMES.includes(r.runtime)) {
|
|
58
|
+
throw new Error(`${where}: runtime must be one of ${CONTAINER_RUNTIMES.join(', ')}`);
|
|
59
|
+
}
|
|
60
|
+
const instance = r.instance ?? 'lite';
|
|
61
|
+
if (typeof instance !== 'string' || !CONTAINER_INSTANCES.includes(instance)) {
|
|
62
|
+
throw new Error(`${where}: instance must be one of ${CONTAINER_INSTANCES.join(', ')}`);
|
|
63
|
+
}
|
|
64
|
+
const deadline = r.passDeadline === undefined ? CONTAINER_PASS_DEADLINE_DEFAULT_MS : durationMs(r.passDeadline);
|
|
65
|
+
if (deadline === null || deadline < 60_000 || deadline > CONTAINER_PASS_DEADLINE_MAX_MS) {
|
|
66
|
+
throw new Error(`${where}: passDeadline is an ISO 8601 duration from PT1M to PT6H, such as 'PT30M'`);
|
|
67
|
+
}
|
|
68
|
+
const retry = r.maxAttempts === undefined ? undefined : Number(r.maxAttempts);
|
|
69
|
+
if (retry !== undefined && (!Number.isSafeInteger(retry) || retry < 1 || retry > 20)) {
|
|
70
|
+
throw new Error(`${where}: maxAttempts is an integer from 1 to 20`);
|
|
71
|
+
}
|
|
72
|
+
let publicRead;
|
|
73
|
+
if (r.publicRead === true)
|
|
74
|
+
publicRead = { maxBytes: PUBLIC_READ_MAX_BYTES_DEFAULT };
|
|
75
|
+
else if (typeof r.publicRead === 'object' && r.publicRead !== null) {
|
|
76
|
+
const max = r.publicRead.maxBytes ?? PUBLIC_READ_MAX_BYTES_DEFAULT;
|
|
77
|
+
if (typeof max !== 'number' || !Number.isSafeInteger(max) || max < 1 || max > PUBLIC_READ_MAX_BYTES_CEILING) {
|
|
78
|
+
throw new Error(`${where}: publicRead.maxBytes is a whole number of bytes, at most ${PUBLIC_READ_MAX_BYTES_CEILING}`);
|
|
79
|
+
}
|
|
80
|
+
publicRead = { maxBytes: max };
|
|
81
|
+
}
|
|
82
|
+
else if (r.publicRead !== undefined && r.publicRead !== false) {
|
|
83
|
+
throw new Error(`${where}: publicRead is true, false or { maxBytes }`);
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
runtime: r.runtime,
|
|
87
|
+
instance,
|
|
88
|
+
passDeadlineMs: deadline,
|
|
89
|
+
...(retry !== undefined ? { retry: { maxAttempts: retry } } : {}),
|
|
90
|
+
...(publicRead ? { publicRead } : {}),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
/** `PT2H`, `PT30M`, `PT1H30M`, `PT90S` → milliseconds; null for anything else. */
|
|
94
|
+
function durationMs(raw) {
|
|
95
|
+
if (typeof raw !== 'string')
|
|
96
|
+
return null;
|
|
97
|
+
const m = /^PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?$/.exec(raw);
|
|
98
|
+
if (!m || (m[1] === undefined && m[2] === undefined && m[3] === undefined))
|
|
99
|
+
return null;
|
|
100
|
+
return ((Number(m[1] ?? 0) * 60 + Number(m[2] ?? 0)) * 60 + Number(m[3] ?? 0)) * 1000;
|
|
101
|
+
}
|
|
34
102
|
//# sourceMappingURL=job-run.js.map
|
package/dist/job-run.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-run.js","sourceRoot":"","sources":["../src/job-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"job-run.js","sourceRoot":"","sources":["../src/job-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,6BAA6B,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAEhG,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC;AAE7C,uFAAuF;AACvF,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAE7C,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,wFAAwF;IACxF,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAClC,kGAAkG;IAClG,iBAAiB,EAAE,CAAC,CAAC,M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G,uCAAuC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5D,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;QAAE,OAAO,IAAI,CAAC;IACxF,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AACxF,CAAC"}
|
package/dist/manifest.d.ts
CHANGED
|
@@ -212,6 +212,27 @@ export declare const PLATFORM_BROKER_CLASS = "SubstratDeliveryBrokerDO";
|
|
|
212
212
|
export declare const PLATFORM_BROKER_BINDING = "SUBSTRAT_DELIVERY_BROKER";
|
|
213
213
|
/** The `Symbol.for` key adapter-cloudflare's `defineScopeDO` registers its broker class under. */
|
|
214
214
|
export declare const PLATFORM_DELIVERY_BROKER_KEY = "substrat.delivery-broker";
|
|
215
|
+
/**
|
|
216
|
+
* D-85 (#3752): the names the platform's pass box takes in an upload. The class is a Durable Object
|
|
217
|
+
* that starts a container for one detached job pass; the entrypoint is the door that container
|
|
218
|
+
* reaches at `run.substrat.internal`, which forwards to the vertical's own scope host, so the pass
|
|
219
|
+
* runs against the kernel the vertical shipped. The binding is the name the launcher finds its box
|
|
220
|
+
* by, and the module is the one `substrat push` writes into the bundle: each container-placed job's
|
|
221
|
+
* placement and bundled code.
|
|
222
|
+
*/
|
|
223
|
+
export declare const PLATFORM_PASS_BOX_CLASS = "SubstratPassBox";
|
|
224
|
+
export declare const PLATFORM_PASS_DOOR_ENTRYPOINT = "SubstratPassDoor";
|
|
225
|
+
/** D-86: the entrypoint every other request a pass's container makes is judged by, as a public read. */
|
|
226
|
+
export declare const PLATFORM_PASS_EGRESS_ENTRYPOINT = "SubstratPassEgress";
|
|
227
|
+
/** D-86: the plain-text binding the uploader writes the platform's base domains into, for the pass box. */
|
|
228
|
+
export declare const PLATFORM_DOMAINS_VAR = "SUBSTRAT_PLATFORM_DOMAINS";
|
|
229
|
+
export declare const PLATFORM_PASSES_BINDING = "SUBSTRAT_PASSES";
|
|
230
|
+
export declare const PLATFORM_PASSES_MODULE = "substrat-passes.js";
|
|
231
|
+
/**
|
|
232
|
+
* The `Symbol.for` key {@link PLATFORM_PASSES_MODULE} publishes its jobs under, when the entry
|
|
233
|
+
* imports it: `{ [job]: { placement: ContainerPlacement, source: string } }`.
|
|
234
|
+
*/
|
|
235
|
+
export declare const PLATFORM_PASS_JOBS_KEY = "substrat.container-pass-jobs";
|
|
215
236
|
/** A5: the door a deployment answers its tenant's shadow comparison at, for the control plane's staff read. */
|
|
216
237
|
export declare const DELIVERY_COMPARISON_PATH = "/internal/delivery-comparison";
|
|
217
238
|
/** Why a vertical's sweeper wiring cannot work, as {@link sweeperConflict} reads it. */
|
package/dist/manifest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,aAAa,aAEsC,CAAC;AAEjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB;;;;;;;kBAUpB,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,qBAAqB;;;;iBAShC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,YAAY;;;iBAGvB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