Repository navigation
fix: drop the project's own relay from shipped defaults - #34
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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.Relay probe results
Each replacement relay was probed before adoption with a throwaway NIP-59 kind:1059 gift wrap carrying a NIP-40
expirationtag an hour ahead, from a fresh random key, then read back with a#pfilter: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_RELAYdefault 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.flockAndroid package id /assetlinks.json, and historical ROADMAP/plan docs.Test plan
npm run typechecknpm test(402 passed, 1 skipped)npm run lintnpm 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