Skip to content

fix(wallet): remove bundled WalletConnect project ID — env-only (v0.17.2) - #41

Merged
clawnchdev merged 1 commit into
mainfrom
fix/walletconnect-env-only
Jun 3, 2026
Merged

fix(wallet): remove bundled WalletConnect project ID — env-only (v0.17.2)#41
clawnchdev merged 1 commit into
mainfrom
fix/walletconnect-env-only

Conversation

@clawnchdev

Copy link
Copy Markdown
Owner

Reverts the v0.17.1 bundled default. Baking a project id into an open-source client ships it publicly (repo + PyPI sdist), where anyone can extract it and burn the shared Reown relay quota — Reown's own guidance is "don't commit project keys; use env vars."

Changes

  • bridges/wc_client.py: drop the bundled default + _bridge_env; the WC bridge inherits WALLETCONNECT_PROJECT_ID from the environment (~/.hermes/.env). Unset → clear "set WALLETCONNECT_PROJECT_ID" error.
  • commands/doctor.py: WC project ID reports not-configured (with a setup hint) until set.

The 0.17.1 default id has been rotated out and disabled in Reown, so it's dead regardless. A safe shared default would need a server-side relay proxy (id never reaches clients) — future work.

Verification

  • 4575 passed, 8 skipped; 100% coverage (16,249 stmts, 0 missing); ruff clean; plugin.yaml byte-identical.

…7.2)

Reverts the v0.17.1 bundled default. A project id baked into an open-source
client ships publicly (repo + PyPI sdist) where anyone can extract it and burn
the shared Reown relay quota — degrading WalletConnect for all users. Reown's
own guidance: don't commit project keys; use env vars.

* bridges/wc_client.py: drop the bundled default + _bridge_env; the bridge
  inherits WALLETCONNECT_PROJECT_ID from the environment (e.g. ~/.hermes/.env).
* commands/doctor.py: WC project ID reports not-configured (with a setup hint)
  until the env var is set.

The 0.17.1 default id has been rotated out + disabled in Reown, so it's dead
regardless. A safe shared-default would require a server-side relay proxy (id
never reaches clients) — future work, not a bundled public key.

Verification: 4575 passed, 8 skipped; 100% coverage (16,249 stmts, 0 missing);
ruff check + format clean; plugin.yaml byte-identical.
@clawnchdev
clawnchdev merged commit cd7a078 into main Jun 3, 2026
4 checks passed
@clawnchdev
clawnchdev deleted the fix/walletconnect-env-only branch June 3, 2026 00:43
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