Skip to content

fix(web): restrict production CSP connect-src origins - #695

Open
ponmileleke54-dev wants to merge 1 commit into
Sub-Rosa-Issue:mainfrom
ponmileleke54-dev:fix/679-production-csp-connect-src
Open

ponmileleke54-dev wants to merge 1 commit into
Sub-Rosa-Issue:mainfrom
ponmileleke54-dev:fix/679-production-csp-connect-src

Conversation

@ponmileleke54-dev

Copy link
Copy Markdown

Summary

  • Generate the production connect-src CSP allowlist from public web configuration.
  • Add origin-only allowlisting for RPC, keeper, appraisal, Drand, and dashboard endpoints.
  • Reject wildcard hosts and invalid or credential-bearing endpoint URLs during production builds.
  • Document local development endpoints and add focused configuration tests.

Supply-chain review

  • No package scripts or dependencies changed.
  • No .vscode/, workflow, or other editor/config file changes.
  • No lockfile changes.
  • No binary or font asset changes.
  • I confirm no automatic task (such as preinstall/postinstall) was added.
  • I confirm no hidden executable payload was added.
  • No changed executable or binary was added.

Testing

  • Passed: focused web configuration suite (cd apps/web && corepack pnpm exec node --import tsx --test src/lib/config.test.ts, 26 tests).
  • Not runnable cleanly: web typecheck is blocked by pre-existing syntax errors in services/agent/src/bidder.ts.
  • Not runnable cleanly: web build is blocked by a pre-existing missing roundStatusFromTag export in apps/web/src/lib/round-phase.ts, imported by apps/web/src/lib/use-reveal-phase.ts.

Closes #679

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@drips-wave

drips-wave Bot commented Nov 25, 2026

Copy link
Copy Markdown

@ponmileleke54-dev Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

web(high/easy): restrict production CSP connect-src origins

2 participants