@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.
Files changed (57) hide show
  1. package/dist/bin/cli.js +256 -256
  2. package/dist/{chunk-3c6pp063.js → chunk-tzqng3ae.js} +7 -3
  3. package/dist/{chunk-0z7ry8fm.js → chunk-xawdhj7z.js} +13 -10
  4. package/dist/deploy/index.js +2 -2
  5. package/dist/deploy/management-dashboard.d.ts +0 -5
  6. package/dist/drivers/index.js +1 -1
  7. package/dist/index.js +2 -2
  8. package/dist/security/pre-deploy-scanner.test.d.ts +1 -0
  9. package/dist/ui/access-denied.html +2 -2
  10. package/dist/ui/account/automation.html +3 -3
  11. package/dist/ui/account/security.html +2 -2
  12. package/dist/ui/applications/compose.html +4 -4
  13. package/dist/ui/applications/new.html +2 -2
  14. package/dist/ui/data/backups.html +4 -4
  15. package/dist/ui/data/services.html +4 -4
  16. package/dist/ui/data/volumes.html +4 -4
  17. package/dist/ui/index.html +4 -4
  18. package/dist/ui/integrations.html +2 -2
  19. package/dist/ui/operations/alerts.html +4 -4
  20. package/dist/ui/operations/configuration.html +4 -4
  21. package/dist/ui/operations/jobs.html +4 -4
  22. package/dist/ui/operations/maintenance.html +4 -4
  23. package/dist/ui/operations/observability.html +4 -4
  24. package/dist/ui/operations/previews.html +4 -4
  25. package/dist/ui/operations/queue.html +4 -4
  26. package/dist/ui/operations/regions.html +4 -4
  27. package/dist/ui/operations/releases.html +4 -4
  28. package/dist/ui/operations/workloads.html +4 -4
  29. package/dist/ui/server/actions.html +4 -4
  30. package/dist/ui/server/activity.html +2 -2
  31. package/dist/ui/server/capacity.html +4 -4
  32. package/dist/ui/server/database.html +4 -4
  33. package/dist/ui/server/deployments.html +4 -4
  34. package/dist/ui/server/diagnostics.html +2 -2
  35. package/dist/ui/server/firewall.html +4 -4
  36. package/dist/ui/server/fleet.html +4 -4
  37. package/dist/ui/server/logs.html +4 -4
  38. package/dist/ui/server/metrics.html +4 -4
  39. package/dist/ui/server/security.html +2 -2
  40. package/dist/ui/server/services.html +2 -2
  41. package/dist/ui/server/sites.html +3 -3
  42. package/dist/ui/server/ssh-keys.html +4 -4
  43. package/dist/ui/server/team.html +4 -4
  44. package/dist/ui/server/terminal.html +2 -2
  45. package/dist/ui/serverless/alarms.html +4 -4
  46. package/dist/ui/serverless/assets.html +2 -2
  47. package/dist/ui/serverless/cost.html +2 -2
  48. package/dist/ui/serverless/data.html +4 -4
  49. package/dist/ui/serverless/firewall.html +2 -2
  50. package/dist/ui/serverless/functions.html +4 -4
  51. package/dist/ui/serverless/logs.html +4 -4
  52. package/dist/ui/serverless/metrics.html +2 -2
  53. package/dist/ui/serverless/queues.html +4 -4
  54. package/dist/ui/serverless/secrets.html +4 -4
  55. package/dist/ui/serverless/traces.html +4 -4
  56. package/dist/ui/serverless.html +4 -4
  57. package/package.json +3 -3
@@ -45,7 +45,7 @@ import {
45
45
  resolveSiteKind,
46
46
  resolveUiSource,
47
47
  siteInstallBase
48
- } from "./chunk-0z7ry8fm.js";
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)\s*[=:]\s*['"]?([A-Za-z0-9/+=]{40})['"]?/gi,
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
- if (this.isLowEntropy(match[1] || match[0])) {
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 resolveDashboardVersion() {
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
- throw new Error(`TS_CLOUD_UI_VERSION points to a missing package file: ${source}`);
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",
@@ -32,7 +32,7 @@ import {
32
32
  synchronizeDashboardUsers,
33
33
  trackDashboardOperation,
34
34
  verifyStaticApiOrigin
35
- } from "../chunk-3c6pp063.js";
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-0z7ry8fm.js";
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
@@ -68,7 +68,7 @@ import {
68
68
  waitForSsh,
69
69
  wrapCloudInitUserData,
70
70
  writeResizeCheckpoint
71
- } from "../chunk-0z7ry8fm.js";
71
+ } from "../chunk-xawdhj7z.js";
72
72
  import"../chunk-ecsyc3p0.js";
73
73
  import"../chunk-703nkybg.js";
74
74
  import"../chunk-4cjrg98a.js";
package/dist/index.js CHANGED
@@ -285,7 +285,7 @@ import {
285
285
  volumeCapabilities,
286
286
  webhookEndpoint,
287
287
  zeroCapacity
288
- } from "./chunk-3c6pp063.js";
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-0z7ry8fm.js";
401
+ } from "./chunk-xawdhj7z.js";
402
402
  import {
403
403
  ABTestManager,
404
404
  AI,
@@ -0,0 +1 @@
1
+ export {};