Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit caf7d57

Browse files
SethGammonclaude
andcommitted
Strip CR from env before TEE deploy
The eigenx TEE wrapper sources the deployed env before the app starts; a stray CR in a secret value breaks that source step and the app exits (Failed) regardless of image/method/flags — which matches every code deploy failure. Strip \r when writing app.env; ENV_CODE also re-set from the verified-clean local .env.deploy. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 parent df191fb commit caf7d57

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/deploy-eigencompute.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ jobs:
7676
DEPLOY_IMAGE_REF: ${{ inputs.image }}-eigenx
7777
run: |
7878
trap 'rm -f app.env' EXIT
79-
printf '%s' "$APP_ENV_FILE" > app.env
79+
# Strip CR: a stray \r\n in the env secret survives into the values,
80+
# and the eigenx TEE wrapper sources the env before the app starts —
81+
# a CR in a value breaks that source step and the app exits (Failed),
82+
# regardless of image. tr -d '\r' guarantees clean LF-only values.
83+
printf '%s' "$APP_ENV_FILE" | tr -d '\r' > app.env
8084
while IFS='=' read -r name value; do
8185
case "$name" in ''|\#*) continue ;; esac
8286
if [ -n "$value" ]; then

0 commit comments

Comments
 (0)