@layr-labs/ecloud-sdk 1.0.0-devep3 → 1.0.0-devep4

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/VERSION CHANGED
@@ -1,2 +1,2 @@
1
- version=1.0.0-devep3
2
- commit=ae7213bb77bd5448778a2774d92c43d3d9a7cb67
1
+ version=1.0.0-devep4
2
+ commit=d34097bc2cac7cd1e0d74c3ae107481d47fbded9
package/dist/browser.cjs CHANGED
@@ -749,7 +749,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
749
749
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
750
750
  var CanUpdateAppProfilePermission = "0x036fef61";
751
751
  function getDefaultClientId() {
752
- const version = true ? "1.0.0-devep3" : "0.0.0";
752
+ const version = true ? "1.0.0-devep4" : "0.0.0";
753
753
  return `ecloud-sdk/v${version}`;
754
754
  }
755
755
  var UserApiClient = class {
package/dist/browser.js CHANGED
@@ -638,7 +638,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
638
638
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
639
639
  var CanUpdateAppProfilePermission = "0x036fef61";
640
640
  function getDefaultClientId() {
641
- const version = true ? "1.0.0-devep3" : "0.0.0";
641
+ const version = true ? "1.0.0-devep4" : "0.0.0";
642
642
  return `ecloud-sdk/v${version}`;
643
643
  }
644
644
  var UserApiClient = class {
package/dist/compute.cjs CHANGED
@@ -457,7 +457,102 @@ var PushPermissionError = class extends Error {
457
457
  var import_handlebars = __toESM(require("handlebars"), 1);
458
458
 
459
459
  // src/client/common/templates/Dockerfile.layered.tmpl
460
- var Dockerfile_layered_default = '{{#if includeTLS}}\n# Get Caddy from official image\nFROM caddy:2.10.2-alpine AS caddy\n{{/if}}\n\nFROM {{baseImage}}\n\n{{#if originalUser}}\n# Switch to root to perform setup (base image has non-root USER: {{originalUser}})\nUSER root\n{{/if}}\n\n# Copy core TEE components\nCOPY compute-source-env.sh /usr/local/bin/\nCOPY kms-client /usr/local/bin/\nCOPY kms-signing-public-key.pem /usr/local/bin/\n{{#if includeDrainWatcher}}\nCOPY ecloud-drain-watcher /usr/local/bin/\n{{/if}}\n\n{{#if includeTLS}}\n# Copy Caddy from official image\nCOPY --from=caddy /usr/bin/caddy /usr/local/bin/caddy\n\n# Copy TLS components\nCOPY tls-keygen /usr/local/bin/\nCOPY Caddyfile /etc/caddy/\n{{/if}}\n\n{{#if originalUser}}\n# Make binaries executable (755 for executables, 644 for keys)\nRUN chmod 755 /usr/local/bin/compute-source-env.sh \\\n && chmod 755 /usr/local/bin/kms-client{{#if includeDrainWatcher}} \\\n && chmod 755 /usr/local/bin/ecloud-drain-watcher{{/if}}{{#if includeTLS}} \\\n && chmod 755 /usr/local/bin/tls-keygen \\\n && chmod 755 /usr/local/bin/caddy{{/if}} \\\n && chmod 644 /usr/local/bin/kms-signing-public-key.pem\n\n# Store original user - entrypoint will drop privileges to this user after TEE setup\nENV __ECLOUD_ORIGINAL_USER={{originalUser}}\n{{else}}\n# Make binaries executable (preserve existing permissions, just add execute)\nRUN chmod +x /usr/local/bin/compute-source-env.sh \\\n && chmod +x /usr/local/bin/kms-client{{#if includeDrainWatcher}} \\\n && chmod +x /usr/local/bin/ecloud-drain-watcher{{/if}}{{#if includeTLS}} \\\n && chmod +x /usr/local/bin/tls-keygen{{/if}}\n{{/if}}\n\n{{#if logRedirect}}\n\nLABEL tee.launch_policy.log_redirect={{logRedirect}}\n{{/if}}\n{{#if resourceUsageAllow}}\n\nLABEL tee.launch_policy.monitoring_memory_allow={{resourceUsageAllow}}\n{{/if}}\n\n# Allow-list the envvars the ecloud-platform sets via GCE `tee-env-*`\n# metadata. Without this label, Confidential Space\'s launcher rejects\n# any `tee-env-*` override at container-start with\n# "env var {...} is not allowed to be overridden on this image" and\n# exits with code 1 \u2014 which terminates the VM before the entrypoint\n# ever runs. ECLOUD_PD_EXPECTED is set on PD-backed apps so the\n# entrypoint (compute-source-env.sh) knows to wait for the persistent\n# disk before exec\'ing the user workload. User-supplied env vars\n# flow through KMS (not tee-env-*) and don\'t need to be listed here.\nLABEL tee.launch_policy.allow_env_override=ECLOUD_PD_EXPECTED\n\nLABEL eigenx_cli_version={{ecloudCLIVersion}}\nLABEL eigenx_vm_image=eigen\nLABEL eigenx_container_contract=v1\n\n{{#if includeTLS}}\n# Expose both HTTP and HTTPS ports for Caddy\nEXPOSE 80 443\n{{/if}}\n\nENTRYPOINT ["/usr/local/bin/compute-source-env.sh"]\nCMD {{{originalCmd}}}\n';
460
+ var Dockerfile_layered_default = `{{#if includeTLS}}
461
+ # Get Caddy from official image
462
+ FROM caddy:2.10.2-alpine AS caddy
463
+ {{/if}}
464
+
465
+ FROM {{baseImage}}
466
+
467
+ {{#if originalUser}}
468
+ # Switch to root to perform setup (base image has non-root USER: {{originalUser}})
469
+ USER root
470
+ {{/if}}
471
+
472
+ # Copy core TEE components
473
+ COPY compute-source-env.sh /usr/local/bin/
474
+ COPY kms-client /usr/local/bin/
475
+ COPY kms-signing-public-key.pem /usr/local/bin/
476
+ {{#if includeDrainWatcher}}
477
+ COPY ecloud-drain-watcher /usr/local/bin/
478
+ {{/if}}
479
+
480
+ {{#if includeTLS}}
481
+ # Copy Caddy from official image
482
+ COPY --from=caddy /usr/bin/caddy /usr/local/bin/caddy
483
+
484
+ # Copy TLS components
485
+ COPY tls-keygen /usr/local/bin/
486
+ COPY Caddyfile /etc/caddy/
487
+ {{/if}}
488
+
489
+ {{#if originalUser}}
490
+ # Make binaries executable (755 for executables, 644 for keys)
491
+ RUN chmod 755 /usr/local/bin/compute-source-env.sh \\
492
+ && chmod 755 /usr/local/bin/kms-client{{#if includeDrainWatcher}} \\
493
+ && chmod 755 /usr/local/bin/ecloud-drain-watcher{{/if}}{{#if includeTLS}} \\
494
+ && chmod 755 /usr/local/bin/tls-keygen \\
495
+ && chmod 755 /usr/local/bin/caddy{{/if}} \\
496
+ && chmod 644 /usr/local/bin/kms-signing-public-key.pem
497
+
498
+ # Store original user - entrypoint will drop privileges to this user after TEE setup
499
+ ENV __ECLOUD_ORIGINAL_USER={{originalUser}}
500
+ {{else}}
501
+ # Make binaries executable (preserve existing permissions, just add execute)
502
+ RUN chmod +x /usr/local/bin/compute-source-env.sh \\
503
+ && chmod +x /usr/local/bin/kms-client{{#if includeDrainWatcher}} \\
504
+ && chmod +x /usr/local/bin/ecloud-drain-watcher{{/if}}{{#if includeTLS}} \\
505
+ && chmod +x /usr/local/bin/tls-keygen{{/if}}
506
+ {{/if}}
507
+
508
+ {{#if logRedirect}}
509
+
510
+ LABEL tee.launch_policy.log_redirect={{logRedirect}}
511
+ {{/if}}
512
+ {{#if resourceUsageAllow}}
513
+
514
+ LABEL tee.launch_policy.monitoring_memory_allow={{resourceUsageAllow}}
515
+ {{/if}}
516
+
517
+ # Allow-list the envvars the ecloud-platform sets via GCE \`tee-env-*\`
518
+ # metadata. Without this label, Confidential Space's launcher rejects
519
+ # any \`tee-env-*\` override at container-start with
520
+ # "env var {...} is not allowed to be overridden on this image" and
521
+ # exits with code 1 \u2014 which terminates the VM before the entrypoint
522
+ # ever runs. User-supplied env vars flow through KMS (not tee-env-*)
523
+ # and don't need to be listed here.
524
+ #
525
+ # Entries:
526
+ # - ECLOUD_PD_EXPECTED set on PD-backed apps so the entrypoint
527
+ # (compute-source-env.sh) knows to wait for
528
+ # the persistent disk before exec'ing the
529
+ # user workload.
530
+ # - ECLOUD_PLATFORM_HOST the platform-routed hostname
531
+ # (<addr>.<env>.eigencloud.xyz) so the
532
+ # entrypoint's setup_tls can issue an ACME
533
+ # cert for it. Injected by the CLI into
534
+ # publicEnv at deploy/upgrade time and
535
+ # propagated by ecloud-platform's
536
+ # compute.go as a tee-env-* metadata key.
537
+ #
538
+ # The CS launcher parses this label as a comma-separated list
539
+ # (go-tpm-tools/launcher/spec/launch_policy.go:185 \u2014 strings.Split
540
+ # on ","). Quotes are not required; keep the value bare for
541
+ # consistency with compute-tee's and eigenx-kms's existing labels.
542
+ LABEL tee.launch_policy.allow_env_override=ECLOUD_PD_EXPECTED,ECLOUD_PLATFORM_HOST
543
+
544
+ LABEL eigenx_cli_version={{ecloudCLIVersion}}
545
+ LABEL eigenx_vm_image=eigen
546
+ LABEL eigenx_container_contract=v1
547
+
548
+ {{#if includeTLS}}
549
+ # Expose both HTTP and HTTPS ports for Caddy
550
+ EXPOSE 80 443
551
+ {{/if}}
552
+
553
+ ENTRYPOINT ["/usr/local/bin/compute-source-env.sh"]
554
+ CMD {{{originalCmd}}}
555
+ `;
461
556
 
462
557
  // src/client/common/templates/dockerfileTemplate.ts
463
558
  function processDockerfileTemplate(data) {
@@ -5270,7 +5365,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
5270
5365
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
5271
5366
  var CanUpdateAppProfilePermission = "0x036fef61";
5272
5367
  function getDefaultClientId() {
5273
- const version = true ? "1.0.0-devep3" : "0.0.0";
5368
+ const version = true ? "1.0.0-devep4" : "0.0.0";
5274
5369
  return `ecloud-sdk/v${version}`;
5275
5370
  }
5276
5371
  var UserApiClient = class {