Skip to content

[5.0] Backport app client secret fix (shop/world#2441506, #2457769) - #9145

Draft
dmerand wants to merge 2 commits into
stable/5.0from
dmerand/5.0-app-client-secret
Draft

dmerand wants to merge 2 commits into
stable/5.0from
dmerand/5.0-app-client-secret

Conversation

@dmerand

@dmerand dmerand commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Backports the app client secret fix from World main to stable/5.0, for release 5.0.2.

App Management will stop returning app client secrets to restricted automation tokens (https://delta.shopify.io/shop/world/pull/2441828, behind a flag that is still off). With this change, app lookups (deploy, release, versions) no longer request the secret. Commands that need it explain clearly when they don't get it.

Please merge without squashing. Each commit maps to one World PR.

WHAT is this pull request doing?

Each commit is a copy of a World diff with the areas/platforms/shopify-cli/ prefix removed (git diff <base> <commit> --relative=areas/platforms/shopify-cli, then git apply -3). cherry-pick -x can't cross the zone prefix.

World PR World commit Backport commit
https://delta.shopify.io/shop/world/pull/2441506 Fetch the app client secret only in commands that use it cdadff8120 (merge) d2e7d71
https://delta.shopify.io/shop/world/pull/2457769 Align missing-secret messages with current terms 6e56e2decd (draft, not merged yet) d99b283
  • Both commits applied without conflicts. A reviewer checked that each one has the same diff as its World source, ignoring index lines.
  • The changeset from 2441506 is already patch, so no stable-only changeset commit is needed.
  • SHOPIFY_CLI_APP_CLIENT_SECRET (https://delta.shopify.io/shop/world/pull/2457770) is not included. It ships only in the next minor.

Known CI failures (not from this change)

  • Type-diff and [PR] CLA fail with Resource not accessible by integration. The repository's default workflow token is now read-only. main got per-workflow permissions in a1d9b74, and the stable branches don't have that commit yet. The type diff itself passes; only its PR comment step fails. Craig owns the backport of a1d9b74.
  • Check graphql-codegen has been run fails only on business-platform-organizations/generated/types.d.ts, which this PR doesn't touch (schema drift since the last stable run).
  • E2E tests fail because app dev now needs the write_app_proxy scope for the e2e apps (a server-side change). The same failure shows on both stable lines.

How to manually test your changes?

  1. With SHOPIFY_CLI_PARTNERS_TOKEN set, run pnpm shopify app deploy --verbose. No request selects clientCredentials.
  2. With the same token, run pnpm shopify app execute --query '{ shop { name } }'. It sends AppClientCredentials and succeeds while the server flag is off.
  3. Log in without a token and run pnpm shopify app env show. The secret is shown.

Post-release steps

Release order: publish 4.9.6 (the stable/4.9 backport) first, then 5.0.2 right after. The stable/4.9 release publishes with the npm latest tag, so 5.0.2 must follow to move latest back to 5.x.

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing — patch changeset included from the original PR

@github-actions github-actions Bot added the Area: @shopify/cli @shopify/cli package issues label Nov 16, 2026
Backport of https://delta.shopify.io/shop/world/pull/2441506
World merge commit: cdadff8120019d47669d34c1ea1663bac8714c08
Copied with `git diff cdadff81^1 cdadff81 --relative=areas/platforms/shopify-cli`
and `git apply -3`, because the World commit has the zone path prefix.
It applied without conflicts.
@dmerand
dmerand force-pushed the dmerand/5.0-app-client-secret branch 2 times, most recently from 6a88dfc to 6d1b5b2 Compare November 16, 2026 20:09
Backport of https://delta.shopify.io/shop/world/pull/2457769
World commit: 6e56e2decdd1f65410dc6bbe6665da5b6ddab94b
@dmerand
dmerand force-pushed the dmerand/5.0-app-client-secret branch from 6d1b5b2 to d99b283 Compare November 16, 2026 20:28

This branch has not been deployed

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

Labels

Area: @shopify/cli @shopify/cli package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant