@caelo-cms/provisioning 0.12.10 → 0.12.12
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/agent-db.js +51 -2
- package/dist/cli.js +23 -2
- package/dist/cli.js.map +1 -1
- package/dist/collection-stores.d.ts +5 -0
- package/dist/collection-stores.d.ts.map +1 -0
- package/dist/collection-stores.js +21 -0
- package/dist/collection-stores.js.map +1 -0
- package/dist/collections-setup.d.ts +66 -0
- package/dist/collections-setup.d.ts.map +1 -0
- package/dist/collections-setup.js +252 -0
- package/dist/collections-setup.js.map +1 -0
- package/dist/compose.d.ts +27 -0
- package/dist/compose.d.ts.map +1 -1
- package/dist/compose.js +52 -1
- package/dist/compose.js.map +1 -1
- package/dist/gateway-edge.d.ts +13 -0
- package/dist/gateway-edge.d.ts.map +1 -1
- package/dist/gateway-edge.js +22 -0
- package/dist/gateway-edge.js.map +1 -1
- package/dist/gcp-names.d.ts +18 -48
- package/dist/gcp-names.d.ts.map +1 -1
- package/dist/gcp-names.js +11 -69
- package/dist/gcp-names.js.map +1 -1
- package/dist/infra-contract.d.ts +1 -1
- package/dist/infra-contract.d.ts.map +1 -1
- package/dist/infra-contract.js +35 -1
- package/dist/infra-contract.js.map +1 -1
- package/dist/reporting-job-catalog.d.ts +111 -0
- package/dist/reporting-job-catalog.d.ts.map +1 -0
- package/dist/reporting-job-catalog.js +306 -0
- package/dist/reporting-job-catalog.js.map +1 -0
- package/dist/reporting-job-setup.d.ts +11 -68
- package/dist/reporting-job-setup.d.ts.map +1 -1
- package/dist/reporting-job-setup.js +44 -100
- package/dist/reporting-job-setup.js.map +1 -1
- package/dist/runtime-secrets.d.ts +25 -0
- package/dist/runtime-secrets.d.ts.map +1 -1
- package/dist/runtime-secrets.js +34 -0
- package/dist/runtime-secrets.js.map +1 -1
- package/dist/self-hosted-backup.d.ts.map +1 -1
- package/dist/self-hosted-backup.js +18 -6
- package/dist/self-hosted-backup.js.map +1 -1
- package/dist/stack-contract.d.ts +75 -22
- package/dist/stack-contract.d.ts.map +1 -1
- package/dist/stack-contract.js +142 -51
- package/dist/stack-contract.js.map +1 -1
- package/dist/stack-converge.d.ts +20 -1
- package/dist/stack-converge.d.ts.map +1 -1
- package/dist/stack-converge.js +105 -2
- package/dist/stack-converge.js.map +1 -1
- package/dist/staging-gateway-setup.d.ts.map +1 -1
- package/dist/staging-gateway-setup.js +10 -5
- package/dist/staging-gateway-setup.js.map +1 -1
- package/dist/upgrade/admin-image-jobs.d.ts +4 -3
- package/dist/upgrade/admin-image-jobs.d.ts.map +1 -1
- package/dist/upgrade/admin-image-jobs.js +9 -16
- package/dist/upgrade/admin-image-jobs.js.map +1 -1
- package/dist/upgrade/app-roll.d.ts +16 -0
- package/dist/upgrade/app-roll.d.ts.map +1 -1
- package/dist/upgrade/app-roll.js +35 -23
- package/dist/upgrade/app-roll.js.map +1 -1
- package/dist/upgrade/converge.d.ts +1 -1
- package/dist/upgrade/converge.d.ts.map +1 -1
- package/dist/upgrade/converge.js +83 -87
- package/dist/upgrade/converge.js.map +1 -1
- package/dist/upgrade/upgrade.d.ts +7 -5
- package/dist/upgrade/upgrade.d.ts.map +1 -1
- package/dist/upgrade/upgrade.js +31 -14
- package/dist/upgrade/upgrade.js.map +1 -1
- package/dist/upgrader-iam-preflight.d.ts.map +1 -1
- package/dist/upgrader-iam-preflight.js +8 -18
- package/dist/upgrader-iam-preflight.js.map +1 -1
- package/dist/upgrader-setup.d.ts.map +1 -1
- package/dist/upgrader-setup.js +7 -15
- package/dist/upgrader-setup.js.map +1 -1
- package/dist/visitor-query-logs.d.ts +40 -0
- package/dist/visitor-query-logs.d.ts.map +1 -0
- package/dist/visitor-query-logs.js +41 -0
- package/dist/visitor-query-logs.js.map +1 -0
- package/dist/wizards/gcp-cost.d.ts.map +1 -1
- package/dist/wizards/gcp-cost.js +17 -9
- package/dist/wizards/gcp-cost.js.map +1 -1
- package/dist/wizards/gcp.d.ts.map +1 -1
- package/dist/wizards/gcp.js +45 -35
- package/dist/wizards/gcp.js.map +1 -1
- package/package.json +2 -2
- package/src/admin-memory.test.ts +57 -1
- package/src/cli.ts +23 -1
- package/src/collection-stores.ts +28 -0
- package/src/collections-setup.test.ts +237 -0
- package/src/collections-setup.ts +317 -0
- package/src/compose.ts +54 -1
- package/src/gateway-edge.test.ts +28 -0
- package/src/gateway-edge.ts +24 -0
- package/src/gateway-env-isolation.test.ts +141 -3
- package/src/gcp-names.ts +28 -84
- package/src/infra-contract.test.ts +5 -3
- package/src/infra-contract.ts +35 -1
- package/src/remote-mcp.test.ts +13 -1
- package/src/reporting-job-catalog.test.ts +156 -0
- package/src/reporting-job-catalog.ts +426 -0
- package/src/reporting-job-setup.test.ts +119 -6
- package/src/reporting-job-setup.ts +51 -158
- package/src/runtime-secrets.test.ts +19 -4
- package/src/runtime-secrets.ts +42 -0
- package/src/self-hosted-backup.test.ts +2 -2
- package/src/self-hosted-backup.ts +18 -6
- package/src/self-hosted-compose.test.ts +9 -3
- package/src/stack-contract.test.ts +62 -4
- package/src/stack-contract.ts +172 -59
- package/src/stack-converge-secrets.test.ts +4 -0
- package/src/stack-converge.test.ts +81 -3
- package/src/stack-converge.ts +124 -3
- package/src/staging-gateway-setup.test.ts +4 -0
- package/src/staging-gateway-setup.ts +16 -6
- package/src/upgrade/admin-image-jobs.ts +13 -25
- package/src/upgrade/app-roll.ts +54 -28
- package/src/upgrade/converge.ts +100 -122
- package/src/upgrade/upgrade.test.ts +159 -6
- package/src/upgrade/upgrade.ts +46 -32
- package/src/upgrader-iam-preflight.ts +7 -20
- package/src/upgrader-job.test.ts +3 -0
- package/src/upgrader-setup.test.ts +3 -0
- package/src/upgrader-setup.ts +6 -17
- package/src/visitor-query-logs.ts +46 -0
- package/src/wizards/gcp-cost.ts +19 -9
- package/src/wizards/gcp.ts +51 -45
- package/stacks/aws/index.ts +18 -9
- package/stacks/azure/index.ts +19 -8
- package/stacks/gcp/index.ts +54 -1
- package/stacks/gcp-firebase/index.ts +28 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// SPDX-License-Identifier: MPL-2.0
|
|
2
|
+
/**
|
|
3
|
+
* Epic #1644 (#1649) — visitors' search queries stay out of the install's
|
|
4
|
+
* logs. A declared collection operation (search, suggest, read) answers a
|
|
5
|
+
* GET whose query string carries what the visitor typed:
|
|
6
|
+
* `/api/plugin/<slug>/<op>?q=…&lang=…`. The gateway itself never logs it
|
|
7
|
+
* (its `gateway_request_log` row has the operation, not the query), but
|
|
8
|
+
* Google Cloud writes a request log entry for every request a Cloud Run
|
|
9
|
+
* service, the load balancer or Firebase Hosting serves, with the full URL
|
|
10
|
+
* in `httpRequest.requestUrl`. A visitor's query is personal data the
|
|
11
|
+
* install has no use for in its logs.
|
|
12
|
+
*
|
|
13
|
+
* So every Google Cloud install excludes those entries from every sink the
|
|
14
|
+
* install routes logs through: `_Default` (the project's own log bucket)
|
|
15
|
+
* and, on `gcp`, the edge log sink to BigQuery (the stack declares the same
|
|
16
|
+
* exclusion there). A sink exclusion drops the entry before it is stored,
|
|
17
|
+
* so nothing is kept anywhere. The rest of the request's record stays: the
|
|
18
|
+
* gateway's own request log row (operation, status, duration).
|
|
19
|
+
*
|
|
20
|
+
* The filter matches by method and URL shape only, never by service or
|
|
21
|
+
* resource type: whichever Google service logged the request (Cloud Run,
|
|
22
|
+
* the load balancer, Firebase Hosting's optional Cloud Logging
|
|
23
|
+
* integration), an entry with such a URL is dropped. Only collection
|
|
24
|
+
* operations are GETs under `/api/plugin/` (plugin operations are POSTs),
|
|
25
|
+
* so no other request disappears from the logs.
|
|
26
|
+
*
|
|
27
|
+
* Pure module: the stacks import it from `dist/`; collections-setup.ts
|
|
28
|
+
* applies it with gcloud on install and converge.
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The Cloud Logging query of the exclusion. `=~` is an RE2 match anywhere in
|
|
32
|
+
* the value; `[?]` is a literal question mark without an escape the query
|
|
33
|
+
* language would read first. A route without a query string (the uncached
|
|
34
|
+
* `/release` lookup) carries nothing of the visitor's and stays logged.
|
|
35
|
+
*/
|
|
36
|
+
export const VISITOR_QUERY_LOG_FILTER = 'httpRequest.requestMethod="GET" AND httpRequest.requestUrl=~"/api/plugin/[a-z][a-z0-9-]*/[a-z_][a-z0-9_]*[?]"';
|
|
37
|
+
/** The exclusion's description, as the Cloud Console shows it. */
|
|
38
|
+
export const VISITOR_QUERY_LOG_DESCRIPTION = "Caelo: visitors' search queries (GET /api/plugin/<slug>/<op>?...) are not stored (epic #1644)";
|
|
39
|
+
/** The sink every Google Cloud project routes its logs through by default. */
|
|
40
|
+
export const DEFAULT_LOG_SINK = "_Default";
|
|
41
|
+
//# sourceMappingURL=visitor-query-logs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visitor-query-logs.js","sourceRoot":"","sources":["../src/visitor-query-logs.ts"],"names":[],"mappings":"AAAA,mCAAmC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GACnC,+GAA+G,CAAC;AAElH,kEAAkE;AAClE,MAAM,CAAC,MAAM,6BAA6B,GACxC,+FAA+F,CAAC;AAElG,8EAA8E;AAC9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gcp-cost.d.ts","sourceRoot":"","sources":["../../src/wizards/gcp-cost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gcp-cost.d.ts","sourceRoot":"","sources":["../../src/wizards/gcp-cost.ts"],"names":[],"mappings":"AAsBA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC;IAClC,8FAA8F;IAC9F,MAAM,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;CAAwC,CAAC;AAgB1E;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAe/D;AASD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,IAAI,CAAC;AACxC,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAUtC,sEAAsE;AACtE,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE7D;AAmBD,wBAAgB,eAAe,CAAC,MAAM,EAAE,kBAAkB,GAAG;IAC3D,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;CACpB,CAyNA"}
|
package/dist/wizards/gcp-cost.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* + AI calls + storage growth on top.
|
|
11
11
|
*/
|
|
12
12
|
import { GATEWAY_ARMOR_BILLED_RULES } from "../gateway-edge.js";
|
|
13
|
-
import { ADMIN_MEMORY_DEFAULT, memoryQuantityMiB, parseSchedulerIntervalMinutes, RUNTIME_SECRETS, } from "../stack-contract.js";
|
|
13
|
+
import { ADMIN_MEMORY_DEFAULT, GATEWAY_MEMORY_DEFAULT, memoryQuantityMiB, parseSchedulerIntervalMinutes, RUNTIME_SECRETS, } from "../stack-contract.js";
|
|
14
14
|
/**
|
|
15
15
|
* #1140 — Workflows steps one scheduler tick costs (scheduler-setup.ts
|
|
16
16
|
* schedulerWorkflowSource): the claims `assign`, the signJwt call (a Google
|
|
@@ -159,6 +159,14 @@ export function estimateGcpCost(inputs) {
|
|
|
159
159
|
monthlyUsd: 0,
|
|
160
160
|
notes: "one small container per such build for the build's length (1 vCPU / 512 MiB, waiting for the admin's answer): ~$0.001 per build minute, a 2-minute Stage ~$0.002; mostly in the free tier",
|
|
161
161
|
},
|
|
162
|
+
{
|
|
163
|
+
// Epic #1644 — a Stage whose plugin collections changed (a site
|
|
164
|
+
// search's pages) builds their new index in its own job; nothing runs
|
|
165
|
+
// without a plugin that declares collections.
|
|
166
|
+
name: "Search indexes (Cloud Run collection index job)",
|
|
167
|
+
monthlyUsd: 0,
|
|
168
|
+
notes: "one container per Stage whose plugin collections changed (2 vCPU / 4 GiB): a delta of 1,000 pages ~30 s (~$0.002), a full 50,000-page rebuild a few minutes (~$0.01-0.02); nothing without such a plugin; mostly in the free tier",
|
|
169
|
+
},
|
|
162
170
|
{
|
|
163
171
|
name: "Screenshots (Cloud Run capture job)",
|
|
164
172
|
monthlyUsd: 1,
|
|
@@ -170,8 +178,8 @@ export function estimateGcpCost(inputs) {
|
|
|
170
178
|
name: provider === "gcp" ? "Cloud Run gateway" : "Cloud Run data gateway",
|
|
171
179
|
monthlyUsd: inputs.gatewayMinInstances === 0 ? 1 : 1 + inputs.gatewayMinInstances * 15,
|
|
172
180
|
notes: inputs.gatewayMinInstances === 0
|
|
173
|
-
?
|
|
174
|
-
: `${inputs.gatewayMinInstances} min-instance${inputs.gatewayMinInstances > 1 ? "s" : ""}`,
|
|
181
|
+
? `scale-to-zero, ${GATEWAY_MEMORY_DEFAULT} (search indexes cached in memory, #1644); ~$1/mo light traffic`
|
|
182
|
+
: `${inputs.gatewayMinInstances} min-instance${inputs.gatewayMinInstances > 1 ? "s" : ""}, ${GATEWAY_MEMORY_DEFAULT}`,
|
|
175
183
|
},
|
|
176
184
|
{
|
|
177
185
|
// #1330 — the staging gateway serves the staged site behind the
|
|
@@ -180,7 +188,7 @@ export function estimateGcpCost(inputs) {
|
|
|
180
188
|
// answers a fixed 404 while no staging host is set.
|
|
181
189
|
name: "Cloud Run staging gateway",
|
|
182
190
|
monthlyUsd: 0,
|
|
183
|
-
notes:
|
|
191
|
+
notes: `scale-to-zero, request-based CPU, ${GATEWAY_MEMORY_DEFAULT}; only the team's visits to staging wake it, mostly in the free tier`,
|
|
184
192
|
},
|
|
185
193
|
{
|
|
186
194
|
// #1328 — remote MCP's sign-in service, its own service on every
|
|
@@ -205,7 +213,7 @@ export function estimateGcpCost(inputs) {
|
|
|
205
213
|
{
|
|
206
214
|
name: "Cloud CDN cache",
|
|
207
215
|
monthlyUsd: 1,
|
|
208
|
-
notes: "Free egress at edge cache hits",
|
|
216
|
+
notes: "Free egress at edge cache hits; also caches visitor search answers on the gateway backend (#1644): ~$0.0075 per 10,000 lookups",
|
|
209
217
|
},
|
|
210
218
|
{
|
|
211
219
|
// #1339 — the gateway's policy (src/gateway-edge.ts): its rules
|
|
@@ -227,9 +235,9 @@ export function estimateGcpCost(inputs) {
|
|
|
227
235
|
notes: "own policy ($5) with 2 rules ($2): per-IP throttle for remote MCP clients; requests ~$0",
|
|
228
236
|
},
|
|
229
237
|
{
|
|
230
|
-
name: "Cloud Storage (static + media + staging)",
|
|
238
|
+
name: "Cloud Storage (static + media + staging + collection stores)",
|
|
231
239
|
monthlyUsd: 1,
|
|
232
|
-
notes: "~5 GB storage + low egress; the staging bucket holds two complete builds (#1330 A/B slots); growth roughly $0.02/GB",
|
|
240
|
+
notes: "~5 GB storage + low egress; the staging bucket holds two complete builds (#1330 A/B slots); a 50,000-page site search index ~350 MB per environment (#1644); growth roughly $0.02/GB",
|
|
233
241
|
},
|
|
234
242
|
{
|
|
235
243
|
name: "BigQuery edge log sink",
|
|
@@ -244,9 +252,9 @@ export function estimateGcpCost(inputs) {
|
|
|
244
252
|
notes: "Free tier: 10 GB storage + 360 MB/day egress; the staging site (#1330) only rewrites to the staging gateway and stores nothing",
|
|
245
253
|
},
|
|
246
254
|
{
|
|
247
|
-
name: "Cloud Storage (media + staging)",
|
|
255
|
+
name: "Cloud Storage (media + staging + collection stores)",
|
|
248
256
|
monthlyUsd: 1,
|
|
249
|
-
notes: "~5 GB storage + low egress; static lives on Firebase; the private staging bucket holds two complete builds (#1330 A/B slots); growth roughly $0.02/GB",
|
|
257
|
+
notes: "~5 GB storage + low egress; static lives on Firebase; the private staging bucket holds two complete builds (#1330 A/B slots); a 50,000-page site search index ~350 MB per environment (#1644); growth roughly $0.02/GB",
|
|
250
258
|
},
|
|
251
259
|
{
|
|
252
260
|
name: "Cloud Logging (service logs, the edge log sink)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gcp-cost.js","sourceRoot":"","sources":["../../src/wizards/gcp-cost.ts"],"names":[],"mappings":"AAAA,mCAAmC;AAEnC;;;;;;;;;GASG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,6BAA6B,EAC7B,eAAe,GAChB,MAAM,sBAAsB,CAAC;AAkC9B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAW,CAAC;AAE1E;;;GAGG;AACH,MAAM,eAAe,GAAG;IACtB,eAAe,EAAE,IAAI;IACrB,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;IACnB,YAAY,EAAE,KAAK;CACX,CAAC;AAEX,wFAAwF;AACxF,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAE9B;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAAC,OAAe;IACrD,MAAM,KAAK,GAAG,IAAI,CAAC,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M,6CAA6C,aAAa,gBAAgB,MAAM,CAAC,MAAM,mBAAmB,CAAC;IACzI,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;AACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gcp.d.ts","sourceRoot":"","sources":["../../src/wizards/gcp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gcp.d.ts","sourceRoot":"","sources":["../../src/wizards/gcp.ts"],"names":[],"mappings":"AAuDA,OAAO,EAA0C,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAsFjG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAc9C,OAAO,EAOL,KAAK,eAAe,EAErB,MAAM,qBAAqB,CAAC;AAiB7B,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,KAAK,GAAG,cAAc,CAAC;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2FAA2F;IAC3F,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAiJrE;AAKD,wCAAwC;AACxC,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,KAAK,GAAG,cAAc,CAAC;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,yBAAyB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClD,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,uEAAuE;IACvE,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,GAAG,QAAQ,CAAC;IACvC,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5D,0FAA0F;IAC1F,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,IAAI,CAAC;CAC/D;AAED;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA0VzE"}
|
package/dist/wizards/gcp.js
CHANGED
|
@@ -37,6 +37,7 @@ import { ensureAuditJob, resolveAdminImage } from "../audit-job-setup.js";
|
|
|
37
37
|
import { ensureCaptureJob } from "../capture-job-setup.js";
|
|
38
38
|
import { CERT_WAIT_TIMEOUT_MS, lbCertProbe, waitForCert } from "../cert-wait.js";
|
|
39
39
|
import { redactCredentials } from "../checkpoint-secrets.js";
|
|
40
|
+
import { ensureCollectionStores } from "../collections-setup.js";
|
|
40
41
|
import { ensureConvergeJob } from "../converge-job-setup.js";
|
|
41
42
|
import { removeDefaultFirewallRules } from "../default-firewall.js";
|
|
42
43
|
import { checkDeployedRuntimeEnv, chooseImageDigests, readDeployedImageDigests, readDeployedRegion, } from "../deployed-release.js";
|
|
@@ -44,7 +45,7 @@ import { formatDnsRecordGroups, groupDnsRecords } from "../dns/groups.js";
|
|
|
44
45
|
import { pickDnsAdapter } from "../dns/index.js";
|
|
45
46
|
import { deleteNeverStartedGateways, deployOntoMigratedDatabase, readGatewayStart, } from "../gateway-bootstrap.js";
|
|
46
47
|
import { activeAccount, checkGcloudAuth, createProject, createServiceAccount, enableApis, gcloud, gcloudEnv, grantProvisionerRoles, linkBilling, listBillingAccounts, PROVISIONER_ROLE_LIST, projectDisplayName, projectExists, REQUIRED_API_LIST, serviceAccountExists, } from "../gcloud.js";
|
|
47
|
-
import {
|
|
48
|
+
import { GCP_STACK_ENV, schedulerServiceAccountEmail, upgraderServiceAccountEmail, } from "../gcp-names.js";
|
|
48
49
|
import { INFRA_CONTRACT_VERSION } from "../infra-contract.js";
|
|
49
50
|
import { INSTALL_JOB_NAME, INSTALL_JOB_ROLES } from "../install-job.js";
|
|
50
51
|
import { adoptStateBackend, ensureInstallDir, installRoot, installStagingHost, isStepDone, markStepDone, readLocalMetadata, readMetadata, readSecret, recordedImageDigests, recordImageDigests, recordInfraContractVersion, writeMetadata, writeSecret, } from "../install-state.js";
|
|
@@ -58,7 +59,8 @@ import { revokePublicRoleMemberships } from "../public-role-isolation.js";
|
|
|
58
59
|
import { decideRegion, detectCliRegion, installableRegions, suggestRegion } from "../regions.js";
|
|
59
60
|
import { confirmReleaseCandidate, isPrereleaseVersion, RELEASE_CANDIDATE_RETENTION_DAYS, } from "../release-candidate.js";
|
|
60
61
|
import { checkRemoteMcpIdentityEnv, ensureRemoteMcpEdge, findRemoteMcpTarget, resolveStackRemoteMcpIdentity, } from "../remote-mcp.js";
|
|
61
|
-
import {
|
|
62
|
+
import { REPORTING_JOB_CATALOG, reportingJobServiceAccounts, } from "../reporting-job-catalog.js";
|
|
63
|
+
import { ensureReportingJobKind } from "../reporting-job-setup.js";
|
|
62
64
|
import { ensureSchedulerTick } from "../scheduler-setup.js";
|
|
63
65
|
import { selfCommand } from "../self-command.js";
|
|
64
66
|
import { ABSENT_DEFAULT_FIREWALL_RULES, cloudSqlPrivateDnsName, parseSchedulerIntervalMinutes, sameRemoteMcpIdentity, } from "../stack-contract.js";
|
|
@@ -415,28 +417,18 @@ export async function runGcpConverge(opts) {
|
|
|
415
417
|
// === 11.3. The quality-audit job: parallel Lighthouse runs (#875) ===
|
|
416
418
|
// Before the upgrader, which gets actAs on the job's service account.
|
|
417
419
|
await stepAuditJob(projectId, region, provider);
|
|
418
|
-
// === 11.32. The
|
|
419
|
-
// After the
|
|
420
|
-
//
|
|
421
|
-
await
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
//
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
ready: "Site-import crawler ready",
|
|
431
|
-
ensure: ensureImportCrawlJob,
|
|
432
|
-
});
|
|
433
|
-
// === 11.34. The build carrier: holds the request a build nobody waits for runs in (#1574) ===
|
|
434
|
-
// Before the upgrader and operator access, for the same reasons.
|
|
435
|
-
await stepReportingJob(projectId, region, provider, ownerEmail, {
|
|
436
|
-
starting: "Setting up the build carrier (builds that outlast their request)...",
|
|
437
|
-
ready: "Build carrier ready",
|
|
438
|
-
ensure: ensureBuildCarrierJob,
|
|
439
|
-
});
|
|
420
|
+
// === 11.32. The collection stores + the search-query log exclusion (epic #1644) ===
|
|
421
|
+
// After the staging gateway (its account reads the staging store), before
|
|
422
|
+
// the collection index job (it writes there).
|
|
423
|
+
await stepCollectionStores(projectId, region, provider);
|
|
424
|
+
// === 11.33. Every reporting job of the catalog (#1359, #1360, #1574, epic #1644) ===
|
|
425
|
+
// In catalog order, each after what it needs: the quality-audit runner
|
|
426
|
+
// after the audit job (it starts its Lighthouse tasks), the collection
|
|
427
|
+
// index job after the stores. All before the upgrader (actAs on their
|
|
428
|
+
// accounts) and operator access (keeps them on IAP).
|
|
429
|
+
for (const entry of REPORTING_JOB_CATALOG) {
|
|
430
|
+
await stepReportingJob(projectId, region, provider, ownerEmail, entry);
|
|
431
|
+
}
|
|
440
432
|
// === 11.35. The capture job: server-side screenshots outside the admin (#1217) ===
|
|
441
433
|
// Before the upgrader as well, which gets actAs on its service account.
|
|
442
434
|
await stepCaptureJob(projectId, region, provider);
|
|
@@ -454,10 +446,8 @@ export async function runGcpConverge(opts) {
|
|
|
454
446
|
// === 11.5. Operator access: IAP follows the Caelo user list ===
|
|
455
447
|
await stepOperatorAccessSync(projectId, region, provider, ownerEmail, keepSigner ? [`serviceAccount:${upgraderServiceAccountEmail(projectId, GCP_STACK_ENV)}`] : [], [
|
|
456
448
|
...(keepScheduler ? [schedulerServiceAccountEmail(projectId, GCP_STACK_ENV)] : []),
|
|
457
|
-
//
|
|
458
|
-
|
|
459
|
-
importCrawlServiceAccountEmail(projectId, GCP_STACK_ENV),
|
|
460
|
-
buildCarrierServiceAccountEmail(projectId, GCP_STACK_ENV),
|
|
449
|
+
// Every reporting job: set up above (a failure stops the wizard there).
|
|
450
|
+
...reportingJobServiceAccounts(projectId, GCP_STACK_ENV),
|
|
461
451
|
]);
|
|
462
452
|
// === 11.6. Remote MCP (#806): LB rules (gcp) + a check of the identity env ===
|
|
463
453
|
// The env itself came with `pulumi up` (step 10.05, #1082).
|
|
@@ -1167,15 +1157,14 @@ async function stepAuditJob(projectId, region, provider) {
|
|
|
1167
1157
|
s.stop(green(`Quality-audit job ready (${r.done.length} steps)`));
|
|
1168
1158
|
}
|
|
1169
1159
|
/**
|
|
1170
|
-
* #1359
|
|
1171
|
-
* deployed admin's image
|
|
1172
|
-
* or the site-import crawler (a site import's crawl), each reporting back
|
|
1160
|
+
* #1359 — set up one reporting job of the catalog (reporting-job-catalog.ts,
|
|
1161
|
+
* reporting-job-setup.ts) on the deployed admin's image, reporting back
|
|
1173
1162
|
* through IAP. A failure stops the wizard: without it that work fails.
|
|
1174
1163
|
* Idempotent, so it runs on every wizard pass.
|
|
1175
1164
|
*/
|
|
1176
|
-
async function stepReportingJob(projectId, region, provider, ownerEmail,
|
|
1165
|
+
async function stepReportingJob(projectId, region, provider, ownerEmail, entry) {
|
|
1177
1166
|
const s = spinner();
|
|
1178
|
-
s.start(
|
|
1167
|
+
s.start(entry.wizard.starting);
|
|
1179
1168
|
const image = await resolveAdminImage({ projectId, region, env: GCP_STACK_ENV });
|
|
1180
1169
|
const resolved = image.ok
|
|
1181
1170
|
? await resolveOperatorAccessTarget({
|
|
@@ -1190,7 +1179,7 @@ async function stepReportingJob(projectId, region, provider, ownerEmail, job) {
|
|
|
1190
1179
|
? { ok: false, done: [], error: image.error }
|
|
1191
1180
|
: !resolved?.ok
|
|
1192
1181
|
? { ok: false, done: [], error: resolved?.error ?? "no IAP resource" }
|
|
1193
|
-
: await
|
|
1182
|
+
: await ensureReportingJobKind(entry, {
|
|
1194
1183
|
provider,
|
|
1195
1184
|
projectId,
|
|
1196
1185
|
region,
|
|
@@ -1204,7 +1193,28 @@ async function stepReportingJob(projectId, region, provider, ownerEmail, job) {
|
|
|
1204
1193
|
cancel("Aborted.");
|
|
1205
1194
|
process.exit(1);
|
|
1206
1195
|
}
|
|
1207
|
-
s.stop(green(`${
|
|
1196
|
+
s.stop(green(`${entry.wizard.ready} (${r.done.length} steps)`));
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Epic #1644 — the collection stores and who may read them, plus the log
|
|
1200
|
+
* exclusion for visitors' search queries (collections-setup.ts). A failure
|
|
1201
|
+
* stops the wizard: without the stores every Stage's plugin collections
|
|
1202
|
+
* fail. Idempotent, so it runs on every wizard pass. A staging gateway
|
|
1203
|
+
* whose setup failed above gets its read access from the next `upgrade`.
|
|
1204
|
+
*/
|
|
1205
|
+
async function stepCollectionStores(projectId, region, provider) {
|
|
1206
|
+
const s = spinner();
|
|
1207
|
+
s.start("Setting up the collection stores (plugin indexes such as site search)...");
|
|
1208
|
+
const r = await ensureCollectionStores({ provider, projectId, region, env: GCP_STACK_ENV });
|
|
1209
|
+
if (!r.ok) {
|
|
1210
|
+
s.stop(red(`Failed: ${r.error}`));
|
|
1211
|
+
log.error("Re-run the wizard once the cause is fixed (this step is idempotent).");
|
|
1212
|
+
cancel("Aborted.");
|
|
1213
|
+
process.exit(1);
|
|
1214
|
+
}
|
|
1215
|
+
s.stop(green(`Collection stores ready (${r.done.length} steps)`));
|
|
1216
|
+
for (const p of r.pending)
|
|
1217
|
+
log.warn(` ${p}`);
|
|
1208
1218
|
}
|
|
1209
1219
|
/**
|
|
1210
1220
|
* Set up the capture job (capture-job-setup.ts) on the deployed admin's
|