Skip to content

fix: envsubst and payload construction for staging deploy#165

Merged
akandic47 merged 1 commit intomainfrom
chore/migrate-staging-env-vars
Mar 27, 2026
Merged

fix: envsubst and payload construction for staging deploy#165
akandic47 merged 1 commit intomainfrom
chore/migrate-staging-env-vars

Conversation

@akandic47
Copy link
Copy Markdown

Summary

  • Restrict envsubst to only substitute workflow-defined variables, preventing expansion of container runtime variables like ${SYG_RELAYER_MPCCONFIG_KEYSHAREPATH}
  • Replace fragile echo-based JSON payload construction with jq --rawfile to safely handle special characters in KEYSHARE JSON values

Test plan

  • Verified locally that envsubst with explicit var list preserves $${SYG_RELAYER_MPCCONFIG_KEYSHAREPATH} in command section
  • Verified jq --rawfile produces valid JSON payload with embedded compose content

envsubst was expanding all ${} patterns including container runtime
variables like ${SYG_RELAYER_MPCCONFIG_KEYSHAREPATH}. Restrict to
only workflow-defined variables. Also replace fragile echo-based JSON
payload construction with jq --rawfile to handle special characters
in KEYSHARE JSON values.
@akandic47 akandic47 force-pushed the chore/migrate-staging-env-vars branch from d8da473 to f62459b Compare March 27, 2026 15:45
@akandic47 akandic47 merged commit 7f4b77c into main Mar 27, 2026
7 of 8 checks passed
@akandic47 akandic47 deleted the chore/migrate-staging-env-vars branch March 27, 2026 15:50
@github-actions
Copy link
Copy Markdown

Go Test coverage is 53.1 %\ ✨ ✨ ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants