@stacksjs/ts-cloud 0.7.102 → 0.7.103
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/bin/cli.js +441 -441
- package/dist/bin/dashboard-server.js +211 -211
- package/dist/{chunk-qrgwwv82.js → chunk-dmzez5f8.js} +5 -3
- package/dist/{chunk-6cf498tw.js → chunk-vkd2y0fs.js} +1 -1
- package/dist/deploy/index.js +2 -2
- package/dist/drivers/index.js +1 -1
- package/dist/drivers/shared/vitess-provision.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/ui/access-denied.html +2 -2
- package/dist/ui/account/automation.html +4 -4
- package/dist/ui/account/security.html +2 -2
- package/dist/ui/applications/compose.html +4 -4
- package/dist/ui/applications/new.html +2 -2
- package/dist/ui/data/backups.html +4 -4
- package/dist/ui/data/services.html +4 -4
- package/dist/ui/data/volumes.html +4 -4
- package/dist/ui/index.html +3 -3
- package/dist/ui/operations/alerts.html +4 -4
- package/dist/ui/operations/configuration.html +4 -4
- package/dist/ui/operations/jobs.html +4 -4
- package/dist/ui/operations/maintenance.html +4 -4
- package/dist/ui/operations/observability.html +4 -4
- package/dist/ui/operations/previews.html +4 -4
- package/dist/ui/operations/queue.html +4 -4
- package/dist/ui/operations/regions.html +4 -4
- package/dist/ui/operations/releases.html +4 -4
- package/dist/ui/operations/workloads.html +4 -4
- package/dist/ui/server/actions.html +3 -3
- package/dist/ui/server/activity.html +2 -2
- package/dist/ui/server/capacity.html +4 -4
- package/dist/ui/server/database.html +4 -4
- package/dist/ui/server/deployments.html +3 -3
- package/dist/ui/server/diagnostics.html +2 -2
- package/dist/ui/server/firewall.html +4 -4
- package/dist/ui/server/fleet.html +4 -4
- package/dist/ui/server/logs.html +4 -4
- package/dist/ui/server/metrics.html +3 -3
- package/dist/ui/server/services.html +2 -2
- package/dist/ui/server/sites.html +4 -4
- package/dist/ui/server/ssh-keys.html +4 -4
- package/dist/ui/server/team.html +4 -4
- package/dist/ui/server/terminal.html +2 -2
- package/dist/ui/serverless/alarms.html +4 -4
- package/dist/ui/serverless/assets.html +2 -2
- package/dist/ui/serverless/cost.html +2 -2
- package/dist/ui/serverless/data.html +4 -4
- package/dist/ui/serverless/deployments.html +2 -2
- package/dist/ui/serverless/firewall.html +2 -2
- package/dist/ui/serverless/functions.html +4 -4
- package/dist/ui/serverless/logs.html +4 -4
- package/dist/ui/serverless/metrics.html +2 -2
- package/dist/ui/serverless/queues.html +4 -4
- package/dist/ui/serverless/secrets.html +4 -4
- package/dist/ui/serverless/traces.html +4 -4
- package/dist/ui/serverless.html +4 -4
- package/package.json +3 -3
|
@@ -346,6 +346,7 @@ function buildMysqlctldUnit(config) {
|
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
var VITESS_AUTH_FILE = "/etc/vitess/auth.json";
|
|
349
|
+
var VITESS_AUTH_APPLIED_FILE = "/var/lib/vitess/vtgate-auth.sha256";
|
|
349
350
|
function buildVitessAuthFileScript(config) {
|
|
350
351
|
const user = config.username ?? "vitess";
|
|
351
352
|
const password = config.password ?? "";
|
|
@@ -356,8 +357,9 @@ function buildVitessAuthFileScript(config) {
|
|
|
356
357
|
`cat > "$VTESS_AUTH_TMP" <<'TS_CLOUD_VITESS_AUTH_EOF'`,
|
|
357
358
|
auth,
|
|
358
359
|
"TS_CLOUD_VITESS_AUTH_EOF",
|
|
359
|
-
`
|
|
360
|
-
`
|
|
360
|
+
`VTESS_VTGATE_AUTH_SHA="$(sha256sum "$VTESS_AUTH_TMP" | awk '{print $1}')"`,
|
|
361
|
+
`VTESS_VTGATE_AUTH_CHANGED=1`,
|
|
362
|
+
`if [ -f ${VITESS_AUTH_APPLIED_FILE} ] && [ "$(cat ${VITESS_AUTH_APPLIED_FILE})" = "$VTESS_VTGATE_AUTH_SHA" ]; then VTESS_VTGATE_AUTH_CHANGED=0; fi`,
|
|
361
363
|
`install -o ${VITESS_USER} -g ${VITESS_USER} -m 0600 "$VTESS_AUTH_TMP" ${VITESS_AUTH_FILE}`,
|
|
362
364
|
'rm -f "$VTESS_AUTH_TMP"'
|
|
363
365
|
];
|
|
@@ -456,7 +458,7 @@ function buildVitessProvisionScript(value) {
|
|
|
456
458
|
out.push("systemctl daemon-reload");
|
|
457
459
|
for (const [name] of units)
|
|
458
460
|
out.push(`systemctl enable --now ${name}.service`);
|
|
459
|
-
out.push(
|
|
461
|
+
out.push(`if [ "$VTESS_VTGATE_AUTH_CHANGED" = 1 ]; then systemctl restart vitess-vtgate.service; printf '%s\\n' "$VTESS_VTGATE_AUTH_SHA" > ${VITESS_AUTH_APPLIED_FILE}; chown ${VITESS_USER}:${VITESS_USER} ${VITESS_AUTH_APPLIED_FILE}; chmod 0600 ${VITESS_AUTH_APPLIED_FILE}; fi`, ...buildVitessBootstrapScript(config), ...buildVitessHealthCheck(config));
|
|
460
462
|
return out;
|
|
461
463
|
}
|
|
462
464
|
|
package/dist/deploy/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
synchronizeDashboardUsers,
|
|
31
31
|
trackDashboardOperation,
|
|
32
32
|
verifyStaticApiOrigin
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-vkd2y0fs.js";
|
|
34
34
|
import {
|
|
35
35
|
deleteStaticSite,
|
|
36
36
|
deployStaticSite,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
siteInstallBase,
|
|
71
71
|
validateDeploymentConfig,
|
|
72
72
|
verifyAddressRecord
|
|
73
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-dmzez5f8.js";
|
|
74
74
|
import"../chunk-c6db5m63.js";
|
|
75
75
|
import"../chunk-7m60qnc8.js";
|
|
76
76
|
import"../chunk-4cjrg98a.js";
|
package/dist/drivers/index.js
CHANGED
|
@@ -95,6 +95,8 @@ export declare function buildVttabletUnit(config: VitessServiceConfig, keyspace:
|
|
|
95
95
|
export declare function buildMysqlctldUnit(config: VitessServiceConfig): string;
|
|
96
96
|
/** Where the generated vtgate credentials live. */
|
|
97
97
|
export declare const VITESS_AUTH_FILE = "/etc/vitess/auth.json";
|
|
98
|
+
/** Last credential document successfully loaded by vtgate. */
|
|
99
|
+
export declare const VITESS_AUTH_APPLIED_FILE = "/var/lib/vitess/vtgate-auth.sha256";
|
|
98
100
|
/**
|
|
99
101
|
* vtgate's static credentials file.
|
|
100
102
|
*
|
package/dist/index.js
CHANGED
|
@@ -283,7 +283,7 @@ import {
|
|
|
283
283
|
volumeCapabilities,
|
|
284
284
|
webhookEndpoint,
|
|
285
285
|
zeroCapacity
|
|
286
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-vkd2y0fs.js";
|
|
287
287
|
import {
|
|
288
288
|
deleteStaticSite,
|
|
289
289
|
deployStaticSite,
|
|
@@ -405,7 +405,7 @@ import {
|
|
|
405
405
|
waitForCloudInit,
|
|
406
406
|
waitForSsh,
|
|
407
407
|
wrapCloudInitUserData
|
|
408
|
-
} from "./chunk-
|
|
408
|
+
} from "./chunk-dmzez5f8.js";
|
|
409
409
|
import {
|
|
410
410
|
ABTestManager,
|
|
411
411
|
AI,
|