Skip to content

revert: roll back client transitive-resolutions (#7557 + #7560) — broke prod client (CSP)#7561

Merged
santicomp2014 merged 1 commit into
mainfrom
revert/client-transitive-resolutions
Jul 1, 2026
Merged

revert: roll back client transitive-resolutions (#7557 + #7560) — broke prod client (CSP)#7561
santicomp2014 merged 1 commit into
mainfrom
revert/client-transitive-resolutions

Conversation

@santicomp2014

Copy link
Copy Markdown
Contributor

🚑 Production rollback. The client is broken in prod with a CSP violation:

Executing inline script violates the ... 'script-src' ... a hash ('sha256-mLaBK/GKt9/lpQzXAjJmRj4AVdmgS9Zjim/IhAbTor0=') ... is required. The action has been blocked.

Root cause: #7557's resolutions bumped build tooling (notably serialize-javascript v6→v7) which changed the bytes of the generated inline bootstrap script. Its sha256 no longer matches the CSP script-src hash allowlist the backend serves, so the browser blocks it. Deploy + PR CI passed because neither runs the app under the real CSP.

This restores package.json + yarn.lock to 63075201 (pre-#7557) — byte-identical to the last-known-good state, so the build output (and its CSP hash) return to normal. Verified locally.

Follow-up: re-apply the security pins carefully, excluding any that change build output / the CSP hash (the shipped-bundle-affecting ones), and add a CSP-hash check to catch this class before it ships.

🤖 Generated with Claude Code

Reverts the resolutions block to restore the last-known-good build output.
#7557's build-tool pins (serialize-javascript v6->v7 etc.) changed the
generated inline bootstrap script's bytes, so its sha256 no longer matched
the CSP script-src hash allowlist the backend serves -> browser blocked the
inline script -> broken client in production (CSP violation).

Restores package.json + yarn.lock to 6307520 (pre-#7557). Security pins will
be re-applied carefully, excluding the ones that alter build output / CSP hash.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@santicomp2014 santicomp2014 merged commit 9d28950 into main Jul 1, 2026
2 checks passed
@santicomp2014 santicomp2014 deleted the revert/client-transitive-resolutions branch July 1, 2026 17:30
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.62%. Comparing base (ca32603) to head (b25e119).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7561   +/-   ##
=======================================
  Coverage   99.62%   99.62%           
=======================================
  Files         285      285           
  Lines       11971    11971           
  Branches     2920     2920           
=======================================
  Hits        11926    11926           
  Misses         45       45           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant