$ the-wire · showcase
Redact store signup JWTs from analytics and terminal output
By RepoJournal · Filed · About Shopify
Shopify CLI stopped printing and reporting store signup JWTs, aligning with a security finding that classifies them as never-to-be-printed server secrets.
The merge of redaction in the Stripe auth flow now aligns CLI reporting with the security finding (Vault 69736): the signup JWT passed to `shopify store stripe-auth --signup` is a bearer credential for the target store, and analytics payloads no longer include it [1]. Related changes reduce local exposure: `--signup` is now optional and reads the JWT from stdin when omitted, and the CLI opens a non-sensitive loopback handoff URL instead of printing the JWT-bearing OAuth URL to the terminal [2]. This follows the earlier fix that stopped the manual-authorization fallback from printing URLs marked sensitive, which could have exposed the signup JWT in shell history [3]. Separately, `cli-hydrogen` was bumped from 13.0.3 to 13.0.4, adding `--javascript-origin` to `hydrogen customer-account-push`, fixing local CLI discovery for that command, and recommending the Shopify AI Toolkit in new storefronts [4]. Also, gateway errors are no longer reported as CLI crashes [5].
Action items
- → Update Shopify CLI to include the JWT redaction fixes from the merged PRs Shopify/cli [immediate]
- → Consider bumping @shopify/cli-hydrogen to 13.0.4 in your Hydrogen projects Shopify/cli [plan]
References
- [1] Redact store signup JWTs from analytics payloads ↗ Shopify/cli
- [2] Read store signup JWT from stdin ↗ Shopify/cli
- [3] Avoid printing sensitive store auth URLs ↗ Shopify/cli
- [4] hydrogen/Bump cli-hydrogen to 13.0.4 (main) ↗ Shopify/cli
- [5] Merge pull request #8329 from Shopify/fix-500-reports ↗ Shopify/cli