@layr-labs/ecloud-sdk 1.0.0-devep6 → 1.0.0-devep7

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-devep6
2
- commit=c4598644993dd4f7eac47847d2ffb1f699240dbc
1
+ version=1.0.0-devep7
2
+ commit=77f99bf086444d26b080c7e076c1dfcc470f36f7
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-devep6" : "0.0.0";
752
+ const version = true ? "1.0.0-devep7" : "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-devep6" : "0.0.0";
641
+ const version = true ? "1.0.0-devep7" : "0.0.0";
642
642
  return `ecloud-sdk/v${version}`;
643
643
  }
644
644
  var UserApiClient = class {
package/dist/compute.cjs CHANGED
@@ -750,9 +750,34 @@ setup_tls() {
750
750
  return 0
751
751
  fi
752
752
 
753
- # Validate Caddyfile before starting
753
+ # Caddy's validate step checks that every \`tls <cert> <key>\` file
754
+ # exists, even on site blocks bound to dormant placeholder
755
+ # hostnames. The default Caddyfile declares both a platform site
756
+ # and a user-domain site; when only one is configured, the other
757
+ # block's cert paths are never populated and validate fails with
758
+ # "Invalid Caddyfile". Point the unused block at the issued
759
+ # block's cert files so validate passes \u2014 the dormant block can't
760
+ # receive real traffic (its hostname falls back to
761
+ # localhost.{platform,user}.invalid, which Caddy routes by SNI and
762
+ # never matches public traffic), so the symlink is never actually
763
+ # presented. Skipped when a user-supplied Caddyfile is in use,
764
+ # since we don't know what cert paths it references.
765
+ if [ -d /run/tls/platform ] && [ ! -e /run/tls/domain/fullchain.pem ]; then
766
+ mkdir -p /run/tls/domain
767
+ ln -sf /run/tls/platform/fullchain.pem /run/tls/domain/fullchain.pem
768
+ ln -sf /run/tls/platform/privkey.pem /run/tls/domain/privkey.pem
769
+ elif [ -d /run/tls/domain ] && [ ! -e /run/tls/platform/fullchain.pem ]; then
770
+ mkdir -p /run/tls/platform
771
+ ln -sf /run/tls/domain/fullchain.pem /run/tls/platform/fullchain.pem
772
+ ln -sf /run/tls/domain/privkey.pem /run/tls/platform/privkey.pem
773
+ fi
774
+
775
+ # Validate Caddyfile before starting. Don't redirect stderr \u2014 when
776
+ # validate fails, Caddy's diagnostic is the only signal that lands
777
+ # in ReadinessError.SerialTail, so silencing it leaves operators
778
+ # staring at a bare "tls_invalid_caddyfile" with no detail.
754
779
  if [ -f /etc/caddy/Caddyfile ]; then
755
- if ! /usr/local/bin/caddy validate --config /etc/caddy/Caddyfile --adapter caddyfile 2>/dev/null; then
780
+ if ! /usr/local/bin/caddy validate --config /etc/caddy/Caddyfile --adapter caddyfile; then
756
781
  echo "compute-source-env.sh: ERROR - Invalid Caddyfile"
757
782
  echo "ECLOUD_FAIL tls_invalid_caddyfile"
758
783
  exit 1
@@ -5194,7 +5219,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
5194
5219
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
5195
5220
  var CanUpdateAppProfilePermission = "0x036fef61";
5196
5221
  function getDefaultClientId() {
5197
- const version = true ? "1.0.0-devep6" : "0.0.0";
5222
+ const version = true ? "1.0.0-devep7" : "0.0.0";
5198
5223
  return `ecloud-sdk/v${version}`;
5199
5224
  }
5200
5225
  var UserApiClient = class {