@stacksjs/ts-cloud 0.7.64 → 0.7.66
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 +256 -256
- package/dist/{chunk-3c6pp063.js → chunk-tzqng3ae.js} +7 -3
- package/dist/{chunk-0z7ry8fm.js → chunk-xawdhj7z.js} +13 -10
- package/dist/deploy/index.js +2 -2
- package/dist/deploy/management-dashboard.d.ts +0 -5
- package/dist/drivers/index.js +1 -1
- package/dist/index.js +2 -2
- package/dist/security/pre-deploy-scanner.test.d.ts +1 -0
- package/dist/ui/access-denied.html +2 -2
- package/dist/ui/account/automation.html +3 -3
- 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 +4 -4
- package/dist/ui/integrations.html +2 -2
- 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 +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/ui/server/security.html +2 -2
- package/dist/ui/server/services.html +2 -2
- package/dist/ui/server/sites.html +3 -3
- 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/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
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
resolveSiteKind,
|
|
46
46
|
resolveUiSource,
|
|
47
47
|
siteInstallBase
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-xawdhj7z.js";
|
|
49
49
|
import {
|
|
50
50
|
artifactKey,
|
|
51
51
|
buildCloudFormationTemplate,
|
|
@@ -36946,7 +36946,7 @@ var SECRET_PATTERNS = [
|
|
|
36946
36946
|
},
|
|
36947
36947
|
{
|
|
36948
36948
|
name: "AWS Secret Access Key",
|
|
36949
|
-
pattern: /(?:aws_secret_access_key|aws_secret_key|secret_access_key|secretAccessKey)
|
|
36949
|
+
pattern: /(?:aws_secret_access_key|aws_secret_key|secret_access_key|secretAccessKey)['"]?\s*[=:]\s*['"]?([A-Za-z0-9/+=]{40})['"]?/gi,
|
|
36950
36950
|
severity: "critical",
|
|
36951
36951
|
description: "AWS Secret Access Key detected"
|
|
36952
36952
|
},
|
|
@@ -37289,7 +37289,11 @@ class PreDeployScanner {
|
|
|
37289
37289
|
if (this.isLikelyPlaceholder(match[0], contextLine)) {
|
|
37290
37290
|
continue;
|
|
37291
37291
|
}
|
|
37292
|
-
|
|
37292
|
+
const candidate2 = match[1] || match[0];
|
|
37293
|
+
if (pattern.name === "AWS Secret Key (Generic)" && /^[a-f0-9]{40}$/i.test(candidate2)) {
|
|
37294
|
+
continue;
|
|
37295
|
+
}
|
|
37296
|
+
if (this.isLowEntropy(candidate2)) {
|
|
37293
37297
|
continue;
|
|
37294
37298
|
}
|
|
37295
37299
|
findings.push({
|
|
@@ -4925,10 +4925,7 @@ function truthy(v) {
|
|
|
4925
4925
|
function liveStageDir() {
|
|
4926
4926
|
return statePath("dashboard-release");
|
|
4927
4927
|
}
|
|
4928
|
-
function
|
|
4929
|
-
const explicit = process.env.TS_CLOUD_UI_VERSION?.trim();
|
|
4930
|
-
if (explicit)
|
|
4931
|
-
return explicit;
|
|
4928
|
+
function resolvePackagedDashboardVersion() {
|
|
4932
4929
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
4933
4930
|
for (const candidate of [join5(here, "..", "..", "package.json"), join5(here, "..", "package.json")]) {
|
|
4934
4931
|
try {
|
|
@@ -4939,6 +4936,10 @@ function resolveDashboardVersion() {
|
|
|
4939
4936
|
}
|
|
4940
4937
|
return "latest";
|
|
4941
4938
|
}
|
|
4939
|
+
function resolveDashboardVersion() {
|
|
4940
|
+
const explicit = process.env.TS_CLOUD_UI_VERSION?.trim();
|
|
4941
|
+
return explicit || resolvePackagedDashboardVersion();
|
|
4942
|
+
}
|
|
4942
4943
|
function stageLiveDashboardRoot(config, cwd, logger) {
|
|
4943
4944
|
if (!config?.project?.slug) {
|
|
4944
4945
|
logger.warn("Management dashboard: the cloud config has no project slug — skipping the live dashboard.");
|
|
@@ -4953,13 +4954,15 @@ function stageLiveDashboardRoot(config, cwd, logger) {
|
|
|
4953
4954
|
const requested = dependency.slice("file:".length);
|
|
4954
4955
|
const source = isAbsolute(requested) ? requested : resolve(cwd, requested);
|
|
4955
4956
|
if (!existsSync2(source) || !statSync(source).isFile()) {
|
|
4956
|
-
|
|
4957
|
+
dependency = resolvePackagedDashboardVersion();
|
|
4958
|
+
logger.warn(`Management dashboard: TS_CLOUD_UI_VERSION points to a missing package file (${source}); using the deploying ts-cloud version ${dependency} instead.`);
|
|
4959
|
+
} else {
|
|
4960
|
+
const name = basename(source);
|
|
4961
|
+
const destination = join5(stage, name);
|
|
4962
|
+
if (source !== destination)
|
|
4963
|
+
copyFileSync(source, destination);
|
|
4964
|
+
dependency = `file:./${name}`;
|
|
4957
4965
|
}
|
|
4958
|
-
const name = basename(source);
|
|
4959
|
-
const destination = join5(stage, name);
|
|
4960
|
-
if (source !== destination)
|
|
4961
|
-
copyFileSync(source, destination);
|
|
4962
|
-
dependency = `file:./${name}`;
|
|
4963
4966
|
}
|
|
4964
4967
|
const pkg = {
|
|
4965
4968
|
name: "ts-cloud-dashboard",
|
package/dist/deploy/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
synchronizeDashboardUsers,
|
|
33
33
|
trackDashboardOperation,
|
|
34
34
|
verifyStaticApiOrigin
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-tzqng3ae.js";
|
|
36
36
|
import {
|
|
37
37
|
deleteStaticSite,
|
|
38
38
|
deployStaticSite,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
shipsARelease,
|
|
66
66
|
siteInstallBase,
|
|
67
67
|
validateDeploymentConfig
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-xawdhj7z.js";
|
|
69
69
|
import"../chunk-ecsyc3p0.js";
|
|
70
70
|
import"../chunk-703nkybg.js";
|
|
71
71
|
import"../chunk-4cjrg98a.js";
|
|
@@ -65,11 +65,6 @@ export interface EnsureDashboardLogger {
|
|
|
65
65
|
}
|
|
66
66
|
/** Where the live dashboard's release is staged, inside the project checkout. */
|
|
67
67
|
export declare function liveStageDir(): string;
|
|
68
|
-
/**
|
|
69
|
-
* The ts-cloud version the box should install. Reads this package's own version
|
|
70
|
-
* so a box runs a dashboard matching the CLI that deployed it, rather than
|
|
71
|
-
* drifting to whatever `latest` happens to be mid-deploy.
|
|
72
|
-
*/
|
|
73
68
|
export declare function resolveDashboardVersion(): string;
|
|
74
69
|
/**
|
|
75
70
|
* Stage the live dashboard's release: the RESOLVED cloud config inlined as a
|
package/dist/drivers/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -285,7 +285,7 @@ import {
|
|
|
285
285
|
volumeCapabilities,
|
|
286
286
|
webhookEndpoint,
|
|
287
287
|
zeroCapacity
|
|
288
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-tzqng3ae.js";
|
|
289
289
|
import {
|
|
290
290
|
deleteStaticSite,
|
|
291
291
|
deployStaticSite,
|
|
@@ -398,7 +398,7 @@ import {
|
|
|
398
398
|
waitForCloudInit,
|
|
399
399
|
waitForSsh,
|
|
400
400
|
wrapCloudInitUserData
|
|
401
|
-
} from "./chunk-
|
|
401
|
+
} from "./chunk-xawdhj7z.js";
|
|
402
402
|
import {
|
|
403
403
|
ABTestManager,
|
|
404
404
|
AI,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|