@caelo-cms/shared 0.11.9 → 0.11.11
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/certs/aws-rds-global.pem +2888 -0
- package/certs/cloudsql-global.pem +1897 -0
- package/dist/body-cap.d.ts +35 -0
- package/dist/body-cap.d.ts.map +1 -0
- package/dist/body-cap.js +63 -0
- package/dist/body-cap.js.map +1 -0
- package/dist/change-journal.d.ts.map +1 -1
- package/dist/change-journal.js +3 -0
- package/dist/change-journal.js.map +1 -1
- package/dist/client-address.d.ts +69 -0
- package/dist/client-address.d.ts.map +1 -0
- package/dist/client-address.js +99 -0
- package/dist/client-address.js.map +1 -0
- package/dist/context.d.ts +8 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/database-tls.d.ts +64 -0
- package/dist/database-tls.d.ts.map +1 -0
- package/dist/database-tls.js +95 -0
- package/dist/database-tls.js.map +1 -0
- package/dist/database-url.d.ts +19 -15
- package/dist/database-url.d.ts.map +1 -1
- package/dist/database-url.js +37 -1
- package/dist/database-url.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/interim-forwarded-host.d.ts +15 -0
- package/dist/interim-forwarded-host.d.ts.map +1 -0
- package/dist/interim-forwarded-host.js +16 -0
- package/dist/interim-forwarded-host.js.map +1 -0
- package/dist/json-security-headers.d.ts +23 -0
- package/dist/json-security-headers.d.ts.map +1 -0
- package/dist/json-security-headers.js +53 -0
- package/dist/json-security-headers.js.map +1 -0
- package/dist/live-events.d.ts.map +1 -1
- package/dist/live-events.js +6 -3
- package/dist/live-events.js.map +1 -1
- package/dist/media.d.ts +8 -0
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +11 -0
- package/dist/media.js.map +1 -1
- package/dist/pool-budget.d.ts +54 -8
- package/dist/pool-budget.d.ts.map +1 -1
- package/dist/pool-budget.js +60 -8
- package/dist/pool-budget.js.map +1 -1
- package/dist/redirect-emit-gcp.d.ts +16 -8
- package/dist/redirect-emit-gcp.d.ts.map +1 -1
- package/dist/redirect-emit-gcp.js +22 -11
- package/dist/redirect-emit-gcp.js.map +1 -1
- package/dist/release-manifest.d.ts +18 -2
- package/dist/release-manifest.d.ts.map +1 -1
- package/dist/release-manifest.js +32 -4
- package/dist/release-manifest.js.map +1 -1
- package/dist/session-cookie.d.ts +88 -0
- package/dist/session-cookie.d.ts.map +1 -0
- package/dist/session-cookie.js +151 -0
- package/dist/session-cookie.js.map +1 -0
- package/dist/staging-plugin-stub.d.ts +28 -0
- package/dist/staging-plugin-stub.d.ts.map +1 -0
- package/dist/staging-plugin-stub.js +34 -0
- package/dist/staging-plugin-stub.js.map +1 -0
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +2 -1
- package/src/body-cap.test.ts +44 -0
- package/src/body-cap.ts +83 -0
- package/src/change-journal.ts +5 -0
- package/src/client-address.test.ts +90 -0
- package/src/client-address.ts +111 -0
- package/src/context.ts +8 -0
- package/src/database-tls.test.ts +83 -0
- package/src/database-tls.ts +99 -0
- package/src/database-url.test.ts +73 -11
- package/src/database-url.ts +57 -1
- package/src/index.ts +7 -0
- package/src/interim-forwarded-host.ts +16 -0
- package/src/json-security-headers.test.ts +31 -0
- package/src/json-security-headers.ts +53 -0
- package/src/live-events.ts +6 -3
- package/src/media.test.ts +27 -0
- package/src/media.ts +13 -0
- package/src/pool-budget.test.ts +52 -10
- package/src/pool-budget.ts +82 -9
- package/src/redirect-emit-gcp.ts +24 -11
- package/src/redirect-emit.test.ts +6 -5
- package/src/release-manifest.ts +33 -4
- package/src/session-cookie.test.ts +96 -0
- package/src/session-cookie.ts +163 -0
- package/src/staging-plugin-stub.test.ts +23 -0
- package/src/staging-plugin-stub.ts +37 -0
- package/src/version.ts +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* P13 — request body size cap, shared by the public services (the visitor
|
|
3
|
+
* gateway and the MCP-Auth-Proxy's OAuth endpoints). Pure Web APIs.
|
|
4
|
+
*
|
|
5
|
+
* Default 64 KB ceiling; the gateway's per-plugin manifest override
|
|
6
|
+
* (`gateway.maxBodyBytes`) can raise it up to a 1 MB hard ceiling. Handlers
|
|
7
|
+
* don't need to worry about hostile payloads — anything over the cap is
|
|
8
|
+
* rejected before they see it.
|
|
9
|
+
*
|
|
10
|
+
* Bun's `req.text()` / `req.json()` will happily buffer multi-MB bodies;
|
|
11
|
+
* we instead read the stream manually with a running counter so the
|
|
12
|
+
* connection short-circuits at the first byte over the cap.
|
|
13
|
+
*/
|
|
14
|
+
/** Cap applied when the caller names none. */
|
|
15
|
+
export declare const DEFAULT_MAX_BODY_BYTES: number;
|
|
16
|
+
/** No caller may raise the cap above this. */
|
|
17
|
+
export declare const HARD_MAX_BODY_BYTES: number;
|
|
18
|
+
/** The body, read in full within the cap. */
|
|
19
|
+
export interface BodyCapResult {
|
|
20
|
+
readonly ok: true;
|
|
21
|
+
readonly body: ArrayBuffer;
|
|
22
|
+
readonly bytes: number;
|
|
23
|
+
}
|
|
24
|
+
/** The body went over the cap; reading stopped there. */
|
|
25
|
+
export interface BodyCapTooLarge {
|
|
26
|
+
readonly ok: false;
|
|
27
|
+
readonly bytes: number;
|
|
28
|
+
readonly limit: number;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Read req.body up to `limit` bytes. If the body exceeds the limit, abort
|
|
32
|
+
* the read and return `{ok: false}` so the handler can emit 413.
|
|
33
|
+
*/
|
|
34
|
+
export declare function readBodyWithCap(req: Request, limit?: number): Promise<BodyCapResult | BodyCapTooLarge>;
|
|
35
|
+
//# sourceMappingURL=body-cap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body-cap.d.ts","sourceRoot":"","sources":["../src/body-cap.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AAEH,8CAA8C;AAC9C,eAAO,MAAM,sBAAsB,QAAY,CAAC;AAChD,8CAA8C;AAC9C,eAAO,MAAM,mBAAmB,QAAc,CAAC;AAE/C,6CAA6C;AAC7C,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,yDAAyD;AACzD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,OAAO,EACZ,KAAK,GAAE,MAA+B,GACrC,OAAO,CAAC,aAAa,GAAG,eAAe,CAAC,CAwC1C"}
|
package/dist/body-cap.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
/**
|
|
3
|
+
* P13 — request body size cap, shared by the public services (the visitor
|
|
4
|
+
* gateway and the MCP-Auth-Proxy's OAuth endpoints). Pure Web APIs.
|
|
5
|
+
*
|
|
6
|
+
* Default 64 KB ceiling; the gateway's per-plugin manifest override
|
|
7
|
+
* (`gateway.maxBodyBytes`) can raise it up to a 1 MB hard ceiling. Handlers
|
|
8
|
+
* don't need to worry about hostile payloads — anything over the cap is
|
|
9
|
+
* rejected before they see it.
|
|
10
|
+
*
|
|
11
|
+
* Bun's `req.text()` / `req.json()` will happily buffer multi-MB bodies;
|
|
12
|
+
* we instead read the stream manually with a running counter so the
|
|
13
|
+
* connection short-circuits at the first byte over the cap.
|
|
14
|
+
*/
|
|
15
|
+
/** Cap applied when the caller names none. */
|
|
16
|
+
export const DEFAULT_MAX_BODY_BYTES = 64 * 1024;
|
|
17
|
+
/** No caller may raise the cap above this. */
|
|
18
|
+
export const HARD_MAX_BODY_BYTES = 1024 * 1024;
|
|
19
|
+
/**
|
|
20
|
+
* Read req.body up to `limit` bytes. If the body exceeds the limit, abort
|
|
21
|
+
* the read and return `{ok: false}` so the handler can emit 413.
|
|
22
|
+
*/
|
|
23
|
+
export async function readBodyWithCap(req, limit = DEFAULT_MAX_BODY_BYTES) {
|
|
24
|
+
const cap = Math.min(limit, HARD_MAX_BODY_BYTES);
|
|
25
|
+
// Cheap pre-check on Content-Length when present.
|
|
26
|
+
const contentLength = req.headers.get("content-length");
|
|
27
|
+
if (contentLength) {
|
|
28
|
+
const declared = Number.parseInt(contentLength, 10);
|
|
29
|
+
if (Number.isFinite(declared) && declared > cap) {
|
|
30
|
+
return { ok: false, bytes: declared, limit: cap };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (!req.body) {
|
|
34
|
+
return { ok: true, body: new ArrayBuffer(0), bytes: 0 };
|
|
35
|
+
}
|
|
36
|
+
const reader = req.body.getReader();
|
|
37
|
+
const chunks = [];
|
|
38
|
+
let total = 0;
|
|
39
|
+
try {
|
|
40
|
+
while (true) {
|
|
41
|
+
const { done, value } = await reader.read();
|
|
42
|
+
if (done)
|
|
43
|
+
break;
|
|
44
|
+
total += value.byteLength;
|
|
45
|
+
if (total > cap) {
|
|
46
|
+
await reader.cancel(); // signal upstream to stop sending
|
|
47
|
+
return { ok: false, bytes: total, limit: cap };
|
|
48
|
+
}
|
|
49
|
+
chunks.push(value);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
finally {
|
|
53
|
+
reader.releaseLock();
|
|
54
|
+
}
|
|
55
|
+
const buf = new Uint8Array(total);
|
|
56
|
+
let offset = 0;
|
|
57
|
+
for (const c of chunks) {
|
|
58
|
+
buf.set(c, offset);
|
|
59
|
+
offset += c.byteLength;
|
|
60
|
+
}
|
|
61
|
+
return { ok: true, body: buf.buffer, bytes: total };
|
|
62
|
+
}
|
|
63
|
+
//# s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,QAAQ,CAAC;AAExD,+DAA+D;AAC/D,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,qEAAqE;IACrE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,mFAAmF;IACnF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,qDAAqD;IACrD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,iDAAiD;IACjD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAeD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAqDrE,CAAC;AAWF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA2IlE,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,eAAe,yBAAyB,CAAC;AAEtD,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,sBAAsB,CAAC"}
|
package/dist/change-journal.js
CHANGED
|
@@ -216,11 +216,14 @@ export const JOURNAL_EXEMPT_TABLES = {
|
|
|
216
216
|
plugin_schema_provisions: "plugin DDL bookkeeping",
|
|
217
217
|
plugin_private_file_chunks: "the bytes of plugin_private_files rows, journaled through the file row",
|
|
218
218
|
public_projection_outbox: "the outbox of the cms_public projection, drained by its publisher",
|
|
219
|
+
projection_releases: "#1329: the frozen release state of a deploy run, written once by the deploy ops and read only by the projection publisher",
|
|
220
|
+
projection_release_pointers: "#1329: which frozen release each public database serves, moved by the deploy ops; a move marks the projection's outbox",
|
|
219
221
|
platform_update_agent: RUNTIME,
|
|
220
222
|
platform_update_notifications: RUNTIME,
|
|
221
223
|
platform_update_policy: "the Owner's update policy, read by the update scheduler",
|
|
222
224
|
platform_update_requests: "update requests, run by the upgrader job",
|
|
223
225
|
platform_update_scheduler: RUNTIME,
|
|
226
|
+
scheduled_tasks: RUNTIME,
|
|
224
227
|
import_runs: "site-import runs; reach editors as the op-classified `crawl` topic",
|
|
225
228
|
import_pages: "crawled pages of a site import, before they become pages",
|
|
226
229
|
import_run_links: "links found by a site import",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-journal.js","sourceRoot":"","sources":["../src/change-journal.ts"],"names":[],"mappings":"AAAA,mCAAmC;AAEnC;;;;;;;;;;;;;;;;;;GAkBG;AAEH,+EAA+E;AAC/E,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,MAAM;IACN,YAAY;IACZ,UAAU;IACV,aAAa;IACb,qBAAqB;IACrB,QAAQ;IACR,UAAU;IACV,iBAAiB;IACjB,QAAQ;IACR,eAAe;IACf,eAAe;IACf,kBAAkB;IAClB,MAAM;IACN,WAAW;IACX,WAAW;IACX,OAAO;IACP,OAAO;IACP,eAAe;IACf,YAAY;IACZ,MAAM;IACN,UAAU;IACV,QAAQ;IACR,eAAe;IACf,eAAe;IACf,aAAa;IACb,OAAO;IACP,QAAQ;IACR,qBAAqB;IACrB,cAAc;IACd,aAAa;IACb,YAAY;IACZ,gBAAgB;IAChB,UAAU;CACF,CAAC;AAKX,MAAM,QAAQ,GAAwB,IAAI,GAAG,CAAC,aAAa,CAAC,CAAC;AAE7D,iCAAiC;AACjC,MAAM,UAAU,aAAa,CAAC,KAAa;IACzC,OAAO,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC7B,CAAC;AAkCD,MAAM,GAAG,GAAG,CACV,IAAiB,EACjB,GAAW,EACX,IAAuB,EACvB,QAAuE,EAAE,EACzD,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,E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+
* vouches for it — one rule for every Caelo service that faces the internet
|
|
4
|
+
* (the visitor data gateway, apps/api-gateway; the MCP-Auth-Proxy,
|
|
5
|
+
* apps/mcp-auth-proxy). Pure Web APIs, no runtime dependency.
|
|
6
|
+
*
|
|
7
|
+
* Every proxy on the path APPENDS to `X-Forwarded-For`; everything before
|
|
8
|
+
* the entries our own infrastructure appended came from the client and can
|
|
9
|
+
* be forged. So the client address is not "the first entry" (forgeable) and
|
|
10
|
+
* not blindly "the last entry" either (behind a load balancer that is the
|
|
11
|
+
* load balancer, for every client): it is the entry `hops` places from the
|
|
12
|
+
* end, where `hops` is how many entries the deployment's proxies append,
|
|
13
|
+
* counting the client's own. That number is a property of the topology in
|
|
14
|
+
* front of each service, so the provisioner sets it per provider and service
|
|
15
|
+
* (`CAELO_TRUSTED_PROXY_HOPS`, packages/provisioning/src/stack-contract.ts):
|
|
16
|
+
*
|
|
17
|
+
* - gcp: external Application LB appends `<client>,<LB IP>` and
|
|
18
|
+
* the service's ingress is internal-and-LB only → 2.
|
|
19
|
+
* - gcp-firebase: Cloud Run's front end appends the address it got the
|
|
20
|
+
* connection from → 1 (behind the Firebase Hosting
|
|
21
|
+
* rewrite that is the Hosting CDN edge, see the gateway's
|
|
22
|
+
* client-ip.ts).
|
|
23
|
+
* - self-hosted: Caddy (no `trusted_proxies`) replaces the header with
|
|
24
|
+
* the peer address; the service is reachable only on the
|
|
25
|
+
* Compose network → 1.
|
|
26
|
+
* - azure: Container Apps ingress appends the peer → 1.
|
|
27
|
+
* - 0: nothing in front (local dev): the TCP peer address.
|
|
28
|
+
*
|
|
29
|
+
* The MCP-Auth-Proxy is reached the same way as the gateway on every
|
|
30
|
+
* provider (on gcp-firebase directly on its run.app URL, on gcp through the
|
|
31
|
+
* load balancer), so the same counts apply to it.
|
|
32
|
+
*/
|
|
33
|
+
/** The env var carrying the deployment's trusted proxy hop count. */
|
|
34
|
+
export declare const TRUSTED_PROXY_HOPS_ENV = "CAELO_TRUSTED_PROXY_HOPS";
|
|
35
|
+
/**
|
|
36
|
+
* The service cannot tell who the client is: the hop count is missing or
|
|
37
|
+
* invalid, or a request arrived with fewer forwarded entries than the
|
|
38
|
+
* deployment's proxies always append. Both are deployment errors; the
|
|
39
|
+
* message names the fix.
|
|
40
|
+
*/
|
|
41
|
+
export declare class ClientAddressError extends Error {
|
|
42
|
+
readonly name = "ClientAddressError";
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The trusted proxy hop count from `env`.
|
|
46
|
+
*
|
|
47
|
+
* @throws ClientAddressError when it is unset or not a non-negative integer —
|
|
48
|
+
* guessing would either pool every client into one rate-limit bucket or
|
|
49
|
+
* let a client pick its own.
|
|
50
|
+
*/
|
|
51
|
+
export declare function trustedProxyHopsFromEnv(env: Readonly<Record<string, string | undefined>>): number;
|
|
52
|
+
/**
|
|
53
|
+
* The entry `hops` places from the end of `xForwardedFor` (1 = the last), or
|
|
54
|
+
* null when the header has fewer entries than that.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* forwardedClientIp("6.6.6.6, 198.51.100.7, 34.1.2.3", 2) // → "198.51.100.7"
|
|
58
|
+
*/
|
|
59
|
+
export declare function forwardedClientIp(xForwardedFor: string | null, hops: number): string | null;
|
|
60
|
+
/**
|
|
61
|
+
* The client address of `req` under `hops`.
|
|
62
|
+
*
|
|
63
|
+
* @param peerAddress the TCP peer (Bun `server.requestIP`); used only when
|
|
64
|
+
* `hops` is 0.
|
|
65
|
+
* @throws ClientAddressError when the request does not carry what the
|
|
66
|
+
* configured topology always adds.
|
|
67
|
+
*/
|
|
68
|
+
export declare function clientAddress(req: Request, hops: number, peerAddress: string | null): string;
|
|
69
|
+
//# sourceMappingURL=client-address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-address.d.ts","sourceRoot":"","sources":["../src/client-address.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,qEAAqE;AACrE,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AAEjE;;;;;GAKG;AACH,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C,SAAkB,IAAI,wBAAwB;CAC/C;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GAAG,MAAM,CAajG;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAO3F;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAgB5F"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
/**
|
|
3
|
+
* The client's address, as the infrastructure in front of a public service
|
|
4
|
+
* vouches for it — one rule for every Caelo service that faces the internet
|
|
5
|
+
* (the visitor data gateway, apps/api-gateway; the MCP-Auth-Proxy,
|
|
6
|
+
* apps/mcp-auth-proxy). Pure Web APIs, no runtime dependency.
|
|
7
|
+
*
|
|
8
|
+
* Every proxy on the path APPENDS to `X-Forwarded-For`; everything before
|
|
9
|
+
* the entries our own infrastructure appended came from the client and can
|
|
10
|
+
* be forged. So the client address is not "the first entry" (forgeable) and
|
|
11
|
+
* not blindly "the last entry" either (behind a load balancer that is the
|
|
12
|
+
* load balancer, for every client): it is the entry `hops` places from the
|
|
13
|
+
* end, where `hops` is how many entries the deployment's proxies append,
|
|
14
|
+
* counting the client's own. That number is a property of the topology in
|
|
15
|
+
* front of each service, so the provisioner sets it per provider and service
|
|
16
|
+
* (`CAELO_TRUSTED_PROXY_HOPS`, packages/provisioning/src/stack-contract.ts):
|
|
17
|
+
*
|
|
18
|
+
* - gcp: external Application LB appends `<client>,<LB IP>` and
|
|
19
|
+
* the service's ingress is internal-and-LB only → 2.
|
|
20
|
+
* - gcp-firebase: Cloud Run's front end appends the address it got the
|
|
21
|
+
* connection from → 1 (behind the Firebase Hosting
|
|
22
|
+
* rewrite that is the Hosting CDN edge, see the gateway's
|
|
23
|
+
* client-ip.ts).
|
|
24
|
+
* - self-hosted: Caddy (no `trusted_proxies`) replaces the header with
|
|
25
|
+
* the peer address; the service is reachable only on the
|
|
26
|
+
* Compose network → 1.
|
|
27
|
+
* - azure: Container Apps ingress appends the peer → 1.
|
|
28
|
+
* - 0: nothing in front (local dev): the TCP peer address.
|
|
29
|
+
*
|
|
30
|
+
* The MCP-Auth-Proxy is reached the same way as the gateway on every
|
|
31
|
+
* provider (on gcp-firebase directly on its run.app URL, on gcp through the
|
|
32
|
+
* load balancer), so the same counts apply to it.
|
|
33
|
+
*/
|
|
34
|
+
/** The env var carrying the deployment's trusted proxy hop count. */
|
|
35
|
+
export const TRUSTED_PROXY_HOPS_ENV = "CAELO_TRUSTED_PROXY_HOPS";
|
|
36
|
+
/**
|
|
37
|
+
* The service cannot tell who the client is: the hop count is missing or
|
|
38
|
+
* invalid, or a request arrived with fewer forwarded entries than the
|
|
39
|
+
* deployment's proxies always append. Both are deployment errors; the
|
|
40
|
+
* message names the fix.
|
|
41
|
+
*/
|
|
42
|
+
export class ClientAddressError extends Error {
|
|
43
|
+
name = "ClientAddressError";
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The trusted proxy hop count from `env`.
|
|
47
|
+
*
|
|
48
|
+
* @throws ClientAddressError when it is unset or not a non-negative integer —
|
|
49
|
+
* guessing would either pool every client into one rate-limit bucket or
|
|
50
|
+
* let a client pick its own.
|
|
51
|
+
*/
|
|
52
|
+
export function trustedProxyHopsFromEnv(env) {
|
|
53
|
+
const raw = env[TRUSTED_PROXY_HOPS_ENV];
|
|
54
|
+
if (raw === undefined || raw.trim() === "") {
|
|
55
|
+
throw new ClientAddressError(`${TRUSTED_PROXY_HOPS_ENV} is not set, so this service cannot tell which X-Forwarded-For entry is the client. Cloud and self-hosted installs: run \`cms-provision upgrade\` (the provisioner sets it per provider). Local dev without a proxy: set it to 0.`);
|
|
56
|
+
}
|
|
57
|
+
if (!/^\d+$/.test(raw.trim())) {
|
|
58
|
+
throw new ClientAddressError(`${TRUSTED_PROXY_HOPS_ENV}="${raw}" is not a non-negative integer (the number of X-Forwarded-For entries the proxies in front of this service append, counting the client's).`);
|
|
59
|
+
}
|
|
60
|
+
return Number.parseInt(raw.trim(), 10);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* The entry `hops` places from the end of `xForwardedFor` (1 = the last), or
|
|
64
|
+
* null when the header has fewer entries than that.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* forwardedClientIp("6.6.6.6, 198.51.100.7, 34.1.2.3", 2) // → "198.51.100.7"
|
|
68
|
+
*/
|
|
69
|
+
export function forwardedClientIp(xForwardedFor, hops) {
|
|
70
|
+
if (hops < 1 || !xForwardedFor)
|
|
71
|
+
return null;
|
|
72
|
+
const entries = xForwardedFor
|
|
73
|
+
.split(",")
|
|
74
|
+
.map((s) => s.trim())
|
|
75
|
+
.filter(Boolean);
|
|
76
|
+
return entries[entries.length - hops] ?? null;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The client address of `req` under `hops`.
|
|
80
|
+
*
|
|
81
|
+
* @param peerAddress the TCP peer (Bun `server.requestIP`); used only when
|
|
82
|
+
* `hops` is 0.
|
|
83
|
+
* @throws ClientAddressError when the request does not carry what the
|
|
84
|
+
* configured topology always adds.
|
|
85
|
+
*/
|
|
86
|
+
export function clientAddress(req, hops, peerAddress) {
|
|
87
|
+
if (hops === 0) {
|
|
88
|
+
if (!peerAddress) {
|
|
89
|
+
throw new ClientAddressError(`${TRUSTED_PROXY_HOPS_ENV}=0 (no proxy) but the connection's peer address is unknown.`);
|
|
90
|
+
}
|
|
91
|
+
return peerAddress;
|
|
92
|
+
}
|
|
93
|
+
const ip = forwardedClientIp(req.headers.get("x-forwarded-for"), hops);
|
|
94
|
+
if (!ip) {
|
|
95
|
+
throw new ClientAddressError(`the request carries fewer than ${hops} X-Forwarded-For entries, but ${TRUSTED_PROXY_HOPS_ENV}=${hops} says the proxies in front of this service always append that many. Either a request reached the service around its proxy, or ${TRUSTED_PROXY_HOPS_ENV} does not match the deployment.`);
|
|
96
|
+
}
|
|
97
|
+
return ip;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=client-address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-address.js","sourceRoot":"","sources":["../src/client-address.ts"],"names":[],"mappings":"AAAA,mCAAmC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,qEAAqE;AACrE,MAAM,CAAC,MAAM,sBAAsB,GAAG,0BAA0B,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IACzB,IAAI,GAAG,oBAAoB,CAAC;CAC/C;AAED;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAAC,GAAiD;IACvF,MAAM,GAAG,GAAG,GAAG,CAAC,sBAAsB,CAAC,CAAC;IACxC,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC3C,MAAM,IAAI,kBAAkB,CAC1B,GAAG,sBAAsB,mOAAmO,CAC7P,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;QAC9B,MAAM,IAAI,kBAAkB,CAC1B,GAAG,sBAAsB,KAAK,GAAG,6IAA6I,CAC/K,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;AACzC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,aAA4B,EAAE,IAAY;IAC1E,IAAI,IAAI,GAAG,CAAC,IAAI,CAAC,aAAa;QAAE,OAAO,IAAI,CAAC;IAC5C,MAAM,OAAO,GAAG,aAAa;SAC1B,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SACpB,MAAM,CAAC,OAAO,CAAC,CAAC;IACnB,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,IAAI,CAAC;AAChD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAAC,GAAY,EAAE,IAAY,EAAE,WAA0B;IAClF,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;QACf,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,MAAM,IAAI,kBAAkB,CAC1B,GAAG,sBAAsB,6DAA6D,CACvF,CAAC;QACJ,CAAC;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;IACD,MAAM,EAAE,GAAG,iBAAiB,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,IAAI,CAAC,CAAC;IACvE,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,MAAM,IAAI,kBAAkB,CAC1B,kCAAkC,IAAI,iCAAiC,sBAAsB,IAAI,IAAI,iIAAiI,sBAAsB,iCAAiC,CAC9R,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC"}
|
package/dist/context.d.ts
CHANGED
|
@@ -33,6 +33,14 @@ export interface ExecutionContext {
|
|
|
33
33
|
* only while exactly this artifact is the active, granted one.
|
|
34
34
|
*/
|
|
35
35
|
readonly pluginArtifactDigest?: string;
|
|
36
|
+
/**
|
|
37
|
+
* #650 — the public origin of the static build a plugin's render-time
|
|
38
|
+
* call belongs to. `pages.resolve_public_urls` builds URLs on it
|
|
39
|
+
* instead of the stored site base URL, so a Stage with its own staging
|
|
40
|
+
* host gets staging URLs from plugins too. Set by the plugin host from
|
|
41
|
+
* the render invocation only.
|
|
42
|
+
*/
|
|
43
|
+
readonly renderSiteBaseUrl?: string;
|
|
36
44
|
/**
|
|
37
45
|
* P10.5: parent attribution for subagent invocations. When the
|
|
38
46
|
* `spawn_subagent` tool calls runChatTurn for the child, it carries
|
package/dist/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,gDAAgD;IAChD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,mDAAmD;IACnD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC;;;;;;OAMG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC"}
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,gDAAgD;IAChD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,mDAAmD;IACnD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC;;;;;;OAMG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACpC;;;;;;OAMG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CAClC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TLS of every database connection (#1338, gateway hardening L6).
|
|
3
|
+
*
|
|
4
|
+
* Every connection to a database on another machine uses
|
|
5
|
+
* `sslmode=verify-full`: the server's certificate must chain to a CA the
|
|
6
|
+
* install trusts AND name the host the client dialled. `sslmode=require`
|
|
7
|
+
* (what every provider used before) encrypts but checks neither, so anyone
|
|
8
|
+
* who can answer on the database's address can read the passwords and the
|
|
9
|
+
* data. There is no weaker mode for a remote host and no automatic downgrade
|
|
10
|
+
* (CLAUDE.md §2, no fallbacks): a URL that asks for less is refused with
|
|
11
|
+
* {@link databaseTlsProblem} wherever a process reads one from its
|
|
12
|
+
* environment (`databaseUrlFromEnv`).
|
|
13
|
+
*
|
|
14
|
+
* Which CA each provider's server presents, and so which bundle the client
|
|
15
|
+
* passes as `sslrootcert`:
|
|
16
|
+
*
|
|
17
|
+
* - gcp / gcp-firebase: Cloud SQL with the shared CA
|
|
18
|
+
* (`GOOGLE_MANAGED_CAS_CA`); its server certificate names the instance's
|
|
19
|
+
* DNS name, not its IP, so clients dial that name (resolved by a private
|
|
20
|
+
* Cloud DNS zone in the install's VPC) and trust Google's published root
|
|
21
|
+
* + regional bundle ({@link CLOUD_SQL_CA_BUNDLE}).
|
|
22
|
+
* - aws: RDS, the endpoint host name, Amazon's RDS bundle
|
|
23
|
+
* ({@link AWS_RDS_CA_BUNDLE}).
|
|
24
|
+
* - azure: Flexible Server, the server's FQDN; its certificate chains to
|
|
25
|
+
* public roots (DigiCert Global Root G2 / Microsoft RSA Root CA 2017)
|
|
26
|
+
* that Bun trusts out of the box, so no `sslrootcert`.
|
|
27
|
+
* - self-hosted: the compose Postgres serves a certificate for the host
|
|
28
|
+
* name `postgres`, signed by a CA the installer generates once per
|
|
29
|
+
* install ({@link SELF_HOSTED_CA_FILE}).
|
|
30
|
+
*
|
|
31
|
+
* The bundles ship in every image at {@link DATABASE_CA_DIR}
|
|
32
|
+
* (packages/shared/certs/ in the repo), so a URL built on the operator's
|
|
33
|
+
* machine names a path that exists in the container.
|
|
34
|
+
*
|
|
35
|
+
* Pure module — no I/O.
|
|
36
|
+
*/
|
|
37
|
+
/** Where every Caelo image carries the database CA bundles (copied from packages/shared/certs/). */
|
|
38
|
+
export declare const DATABASE_CA_DIR = "/etc/caelo/db-ca";
|
|
39
|
+
/** Google's Cloud SQL shared-CA bundle (all regions), `cloudsql-ca-bundles/global.pem`. */
|
|
40
|
+
export declare const CLOUD_SQL_CA_BUNDLE = "/etc/caelo/db-ca/cloudsql-global.pem";
|
|
41
|
+
/** Amazon's RDS bundle (all regions), `truststore.pki.rds.amazonaws.com/global/global-bundle.pem`. */
|
|
42
|
+
export declare const AWS_RDS_CA_BUNDLE = "/etc/caelo/db-ca/aws-rds-global.pem";
|
|
43
|
+
/** The self-hosted install's own CA, mounted read-only into every container that connects. */
|
|
44
|
+
export declare const SELF_HOSTED_CA_FILE = "/etc/caelo/db-ca/self-hosted-ca.pem";
|
|
45
|
+
/**
|
|
46
|
+
* The query string of a verify-full connection, with `caFile` as the trust
|
|
47
|
+
* anchor (omit it for a server whose chain ends in a public root).
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* verifyFullQuery(CLOUD_SQL_CA_BUNDLE)
|
|
51
|
+
* // → "sslmode=verify-full&sslrootcert=/etc/caelo/db-ca/cloudsql-global.pem"
|
|
52
|
+
*/
|
|
53
|
+
export declare function verifyFullQuery(caFile?: string): string;
|
|
54
|
+
/** Whether `host` is an IPv4 or IPv6 literal (with or without URL brackets). */
|
|
55
|
+
export declare function isIpLiteral(host: string): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Why `url` may not be used to reach a database, or null when it may: a
|
|
58
|
+
* remote host needs `sslmode=verify-full`. Loopback hosts and unix sockets
|
|
59
|
+
* (`?host=/path`) are exempt. The message names the variable and the fix.
|
|
60
|
+
*
|
|
61
|
+
* @param label how the URL is known to the operator, e.g. `ADMIN_DATABASE_URL`
|
|
62
|
+
*/
|
|
63
|
+
export declare function databaseTlsProblem(url: string, label?: string): string | null;
|
|
64
|
+
//# sourceMappingURL=database-tls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database-tls.d.ts","sourceRoot":"","sources":["../src/database-tls.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,oGAAoG;AACpG,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAElD,2FAA2F;AAC3F,eAAO,MAAM,mBAAmB,yCAA2C,CAAC;AAE5E,sGAAsG;AACtG,eAAO,MAAM,iBAAiB,wCAA0C,CAAC;AAEzE,8FAA8F;AAC9F,eAAO,MAAM,mBAAmB,wCAA0C,CAAC;AAE3E;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGjD;AAWD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,SAAiB,GAAG,MAAM,GAAG,IAAI,CAarF"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
/**
|
|
3
|
+
* TLS of every database connection (#1338, gateway hardening L6).
|
|
4
|
+
*
|
|
5
|
+
* Every connection to a database on another machine uses
|
|
6
|
+
* `sslmode=verify-full`: the server's certificate must chain to a CA the
|
|
7
|
+
* install trusts AND name the host the client dialled. `sslmode=require`
|
|
8
|
+
* (what every provider used before) encrypts but checks neither, so anyone
|
|
9
|
+
* who can answer on the database's address can read the passwords and the
|
|
10
|
+
* data. There is no weaker mode for a remote host and no automatic downgrade
|
|
11
|
+
* (CLAUDE.md §2, no fallbacks): a URL that asks for less is refused with
|
|
12
|
+
* {@link databaseTlsProblem} wherever a process reads one from its
|
|
13
|
+
* environment (`databaseUrlFromEnv`).
|
|
14
|
+
*
|
|
15
|
+
* Which CA each provider's server presents, and so which bundle the client
|
|
16
|
+
* passes as `sslrootcert`:
|
|
17
|
+
*
|
|
18
|
+
* - gcp / gcp-firebase: Cloud SQL with the shared CA
|
|
19
|
+
* (`GOOGLE_MANAGED_CAS_CA`); its server certificate names the instance's
|
|
20
|
+
* DNS name, not its IP, so clients dial that name (resolved by a private
|
|
21
|
+
* Cloud DNS zone in the install's VPC) and trust Google's published root
|
|
22
|
+
* + regional bundle ({@link CLOUD_SQL_CA_BUNDLE}).
|
|
23
|
+
* - aws: RDS, the endpoint host name, Amazon's RDS bundle
|
|
24
|
+
* ({@link AWS_RDS_CA_BUNDLE}).
|
|
25
|
+
* - azure: Flexible Server, the server's FQDN; its certificate chains to
|
|
26
|
+
* public roots (DigiCert Global Root G2 / Microsoft RSA Root CA 2017)
|
|
27
|
+
* that Bun trusts out of the box, so no `sslrootcert`.
|
|
28
|
+
* - self-hosted: the compose Postgres serves a certificate for the host
|
|
29
|
+
* name `postgres`, signed by a CA the installer generates once per
|
|
30
|
+
* install ({@link SELF_HOSTED_CA_FILE}).
|
|
31
|
+
*
|
|
32
|
+
* The bundles ship in every image at {@link DATABASE_CA_DIR}
|
|
33
|
+
* (packages/shared/certs/ in the repo), so a URL built on the operator's
|
|
34
|
+
* machine names a path that exists in the container.
|
|
35
|
+
*
|
|
36
|
+
* Pure module — no I/O.
|
|
37
|
+
*/
|
|
38
|
+
/** Where every Caelo image carries the database CA bundles (copied from packages/shared/certs/). */
|
|
39
|
+
export const DATABASE_CA_DIR = "/etc/caelo/db-ca";
|
|
40
|
+
/** Google's Cloud SQL shared-CA bundle (all regions), `cloudsql-ca-bundles/global.pem`. */
|
|
41
|
+
export const CLOUD_SQL_CA_BUNDLE = `${DATABASE_CA_DIR}/cloudsql-global.pem`;
|
|
42
|
+
/** Amazon's RDS bundle (all regions), `truststore.pki.rds.amazonaws.com/global/global-bundle.pem`. */
|
|
43
|
+
export const AWS_RDS_CA_BUNDLE = `${DATABASE_CA_DIR}/aws-rds-global.pem`;
|
|
44
|
+
/** The self-hosted install's own CA, mounted read-only into every container that connects. */
|
|
45
|
+
export const SELF_HOSTED_CA_FILE = `${DATABASE_CA_DIR}/self-hosted-ca.pem`;
|
|
46
|
+
/**
|
|
47
|
+
* The query string of a verify-full connection, with `caFile` as the trust
|
|
48
|
+
* anchor (omit it for a server whose chain ends in a public root).
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* verifyFullQuery(CLOUD_SQL_CA_BUNDLE)
|
|
52
|
+
* // → "sslmode=verify-full&sslrootcert=/etc/caelo/db-ca/cloudsql-global.pem"
|
|
53
|
+
*/
|
|
54
|
+
export function verifyFullQuery(caFile) {
|
|
55
|
+
return caFile ? `sslmode=verify-full&sslrootcert=${caFile}` : "sslmode=verify-full";
|
|
56
|
+
}
|
|
57
|
+
/** Whether `host` is an IPv4 or IPv6 literal (with or without URL brackets). */
|
|
58
|
+
export function isIpLiteral(host) {
|
|
59
|
+
const h = host.replace(/^\[|\]$/g, "");
|
|
60
|
+
return /^\d{1,3}(\.\d{1,3}){3}$/.test(h) || (h.includes(":") && /^[0-9a-f:.]+$/i.test(h));
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Hosts on this machine: a connection to them never crosses a network, so
|
|
64
|
+
* dev, CI and the test suites connect without TLS.
|
|
65
|
+
*/
|
|
66
|
+
function isLoopbackHost(host) {
|
|
67
|
+
const h = host.replace(/^\[|\]$/g, "").toLowerCase();
|
|
68
|
+
return h === "localhost" || h === "::1" || /^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(h);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Why `url` may not be used to reach a database, or null when it may: a
|
|
72
|
+
* remote host needs `sslmode=verify-full`. Loopback hosts and unix sockets
|
|
73
|
+
* (`?host=/path`) are exempt. The message names the variable and the fix.
|
|
74
|
+
*
|
|
75
|
+
* @param label how the URL is known to the operator, e.g. `ADMIN_DATABASE_URL`
|
|
76
|
+
*/
|
|
77
|
+
export function databaseTlsProblem(url, label = "database URL") {
|
|
78
|
+
let parsed;
|
|
79
|
+
try {
|
|
80
|
+
parsed = new URL(url);
|
|
81
|
+
}
|
|
82
|
+
catch {
|
|
83
|
+
return `${label} is not a valid URL`;
|
|
84
|
+
}
|
|
85
|
+
const socket = parsed.searchParams.get("host");
|
|
86
|
+
if (socket?.startsWith("/"))
|
|
87
|
+
return null;
|
|
88
|
+
if (parsed.hostname === "" || isLoopbackHost(parsed.hostname))
|
|
89
|
+
return null;
|
|
90
|
+
const mode = parsed.searchParams.get("sslmode");
|
|
91
|
+
if (mode === "verify-full")
|
|
92
|
+
return null;
|
|
93
|
+
return `${label} reaches ${parsed.hostname} with sslmode=${mode ?? "(none)"}; every connection to a database on another machine must use sslmode=verify-full, which checks the server's certificate and host name (#1338). Cloud and self-hosted installs: run \`cms-provision upgrade\` (it sets the URLs and the database's certificate up). Local development: connect to localhost.`;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=database-tls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"database-tls.js","sourceRoot":"","sources":["../src/database-tls.ts"],"names":[],"mappings":"AAAA,mCAAmC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,oGAAoG;AACpG,MAAM,CAAC,MAAM,eAAe,GAAG,kBAAkB,CAAC;AAElD,2FAA2F;AAC3F,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,eAAe,sBAAsB,CAAC;AAE5E,sGAAsG;AACtG,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,eAAe,qBAAqB,CAAC;AAEzE,8FAA8F;AAC9F,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,eAAe,qBAAqB,CAAC;AAE3E;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAAC,MAAe;IAC7C,OAAO,MAAM,CAAC,CAAC,CAAC,mCAAmC,MAAM,EAAE,CAAC,CAAC,CAAC,qBAAqB,CAAC;AACtF,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,WAAW,CAAC,IAAY;IACtC,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IACvC,OAAO,yBAAyB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5F,CAAC;AAED;;;GAGG;AACH,SAAS,cAAc,CAAC,IAAY;IAClC,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IACrD,OAAO,CAAC,KAAK,WAAW,IAAI,CAAC,KAAK,KAAK,IAAI,kCAAkC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACxF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAW,EAAE,KAAK,GAAG,cAAc;IACpE,IAAI,MAAW,CAAC;IAChB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;IACxB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,GAAG,KAAK,qBAAqB,CAAC;IACvC,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC/C,IAAI,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IACzC,IAAI,MAAM,CAAC,QAAQ,KAAK,EAAE,IAAI,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC;QAAE,OAAO,IAAI,CAAC;IAC3E,MAAM,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAChD,IAAI,IAAI,KAAK,aAAa;QAAE,OAAO,IAAI,CAAC;IACxC,OAAO,GAAG,KAAK,YAAY,MAAM,CAAC,QAAQ,iBAAiB,IAAI,IAAI,QAAQ,6SAA6S,CAAC;AAC3X,CAAC"}
|
package/dist/database-url.d.ts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Database connection URLs as every Caelo process reads them from its
|
|
3
|
-
* environment.
|
|
4
|
-
*
|
|
5
|
-
* A URL var (`ADMIN_DATABASE_URL`, `PUBLIC_ADMIN_DATABASE_URL`,
|
|
6
|
-
* `PUBLIC_DATABASE_URL`) may carry its password inline — the shape the
|
|
7
|
-
* self-hosted compose stack, CI and `.env` use — or leave it out and have
|
|
8
|
-
* the password come from a companion `<NAME>_PASSWORD` var
|
|
9
|
-
* (`ADMIN_DATABASE_URL` → `ADMIN_DATABASE_PASSWORD`). Cloud installs use the
|
|
10
|
-
* second shape: the URL (host, role, database) is a plain env var, the
|
|
11
|
-
* password is a Secret Manager reference, so the password never shows up in
|
|
12
|
-
* the service's configuration or its revision history.
|
|
13
|
-
*
|
|
14
|
-
* Pure module — no I/O.
|
|
15
|
-
*/
|
|
16
1
|
/** The `<NAME>_PASSWORD` var that pairs with a `<NAME>_URL` var. */
|
|
17
2
|
export declare function databasePasswordVar(urlVar: string): string;
|
|
18
3
|
/**
|
|
@@ -40,6 +25,8 @@ export declare function databaseUrlFromEnv(urlVars: readonly string[], env?: Rea
|
|
|
40
25
|
* how the in-cloud jobs (the operator-access sync job, the upgrader job)
|
|
41
26
|
* connect: the user is the service account email without
|
|
42
27
|
* `.gserviceaccount.com`, the password a short-lived OAuth access token.
|
|
28
|
+
* TLS is verify-full against Google's Cloud SQL shared-CA bundle, so `host`
|
|
29
|
+
* must be the instance's DNS name (its certificate names no IP).
|
|
43
30
|
*
|
|
44
31
|
* @example
|
|
45
32
|
* cloudSqlIamDatabaseUrls("10.0.0.3", "job@p.iam.gserviceaccount.com", "ya29.x").user
|
|
@@ -50,4 +37,21 @@ export declare function cloudSqlIamDatabaseUrls(host: string, serviceAccountEmai
|
|
|
50
37
|
public: string;
|
|
51
38
|
user: string;
|
|
52
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* #1373 — {@link cloudSqlIamDatabaseUrls} for the instance's private IP,
|
|
42
|
+
* for the one connection that dials it: the converge job's, before the
|
|
43
|
+
* install's TLS step has given the instance a DNS name the clients can
|
|
44
|
+
* resolve. The URLs ask for `sslmode=verify-full` and name no trust anchor;
|
|
45
|
+
* the caller must pass the server checks itself (`DatabaseAdapter`'s
|
|
46
|
+
* `tls`, from provisioning converge-db-trust.ts), since a certificate
|
|
47
|
+
* never names an IP.
|
|
48
|
+
*
|
|
49
|
+
* @throws when `ip` is not an IP literal: a DNS host takes the verify-full
|
|
50
|
+
* URLs of {@link cloudSqlIamDatabaseUrls}
|
|
51
|
+
*/
|
|
52
|
+
export declare function cloudSqlIamIpDatabaseUrls(ip: string, serviceAccountEmail: string, accessToken: string): {
|
|
53
|
+
admin: string;
|
|
54
|
+
public: string;
|
|
55
|
+
user: string;
|
|
56
|
+
};
|
|
53
57
|
//# sourceMappingURL=database-url.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-url.d.ts","sourceRoot":"","sources":["../src/database-url.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"database-url.d.ts","sourceRoot":"","sources":["../src/database-url.ts"],"names":[],"mappings":"AA6BA,oEAAoE;AACpE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAK1D;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,KAAK,SAAiB,GACrB,MAAM,CAoBR;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,GAAG,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAe,GAC9D,MAAM,GAAG,SAAS,CAWpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,EACZ,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,GAClB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAOjD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,CACvC,EAAE,EAAE,MAAM,EACV,mBAAmB,EAAE,MAAM,EAC3B,WAAW,EAAE,MAAM,GAClB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CASjD"}
|