Skip to content

fix: drop the project's own relay from shipped defaults - #34

Merged
TheCryptoDonkey merged 1 commit into
mainfrom
fix/drop-operator-relay-default
Sep 25, 2026
Merged

TheCryptoDonkey merged 1 commit into
mainfrom
fix/drop-operator-relay-default

Conversation

@TheCryptoDonkey

Copy link
Copy Markdown
Member

Summary

  • The operator is stepping back from running a relay for other people's traffic (UK Online Safety Act exposure). The project's own relay is no longer a default relay anywhere in the shipped app.
  • New defaults: wss://nos.lol, wss://relay.primal.net, wss://nostr.mom (the same set another of our apps just moved to), applied to the private relay set and the public profile set. There is no default onion relay any more — the Tor toggle already fails loud when none is configured, so this is a safe removal, not a behaviour change to that path.
  • Users may still add any relay, including their own onion one, themselves in Settings.

Relay probe results

Each replacement relay was probed before adoption with a throwaway NIP-59 kind:1059 gift wrap carrying a NIP-40 expiration tag an hour ahead, from a fresh random key, then read back with a #p filter:

Relay Connect Publish OK Read back
wss://nos.lol yes yes yes
wss://relay.primal.net yes yes yes
wss://nostr.mom yes yes yes

All three passed; none were dropped.

Changes

  • app/src/relays.ts: default private relay set, public profile set, and onion twin default (now empty — code path for a user-configured onion relay is unchanged).
  • playwright.config.ts: local e2e default relay.
  • docs/DEPLOY.md: VITE_DEFAULT_RELAY default and the e2e note.
  • app/src/relays.test.ts: new tests pinning the exact default relay sets (private, profile, onion), plus fixed an existing case that coincidentally now overlaps a new default.
  • app/src/backup.test.ts, decoy.test.ts, signin.test.ts, store.rest.test.ts: swapped the old relay out of unrelated fixture data for a generic example URL.
  • docs/ROADMAP.md: dated entry under "Resolved inputs" recording the decision.

Left alone per scope: the cc.trotters.flock Android package id / assetlinks.json, and historical ROADMAP/plan docs.

Test plan

  • npm run typecheck
  • npm test (402 passed, 1 skipped)
  • npm run lint
  • npm run build (bundle budgets pass)
  • npm run test:e2e — not run (long-running, would hit live relays; out of scope for this change per instructions)

🤖 Generated with Claude Code

https://claude.ai/code/session_01UWW9PEksquXC4VqbSN5SBH

The operator is stepping back from running a relay for other people's
traffic (UK Online Safety Act exposure). The default private relay set,
the public profile set, and the onion twin no longer point at the
project's own relay anywhere in the shipped app; users may still add
any relay, including their own onion one, themselves in Settings.

Replacement defaults (wss://nos.lol, wss://relay.primal.net,
wss://nostr.mom) were each probed before adoption: a throwaway NIP-59
kind:1059 gift wrap with a NIP-40 expiration tag an hour ahead
published and read back cleanly via a #p filter on all three.

Updates the local e2e default relay, the deploy docs' default env
value, tests that pinned the old relay list (plus new tests pinning
the exact default relay sets), and records the decision in the
roadmap's resolved inputs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UWW9PEksquXC4VqbSN5SBH
@TheCryptoDonkey
TheCryptoDonkey merged commit 36c2267 into main Sep 25, 2026
3 checks passed
@TheCryptoDonkey
TheCryptoDonkey deleted the fix/drop-operator-relay-default branch September 25, 2026 12:44
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