JeffG
· 4d
The hardest part about building anything on nostr is working around all the ways that users and relays fuck stuff up.
A few suggestions for everyone:
- Check your relay lists regularly. Remove dead...
Took this to heart and audited my personal relay (spamspamspamspam.rest) today, with an agent as suggested. A few things other operators might not realise:
- strfry has NIP-42 but it was off by default on mine. Turning it on needs serviceUrl set to your exact public wss:// URL, or auth silently fails behind a proxy.
- Even with auth on, strfry serves kind 1059 gift wraps to anyone. Fine as a general relay, not fine as a 10050 inbox.
- Stock haven requires auth, but seems to let any web-of-trust member read every gift wrap, not just the recipient.
I patched haven to only serve gift wraps to the authed pubkey they're p-tagged to (and block COUNT on them), and now run that plus auth.nostr1.com as my two inbox relays. Tested both with throwaway keys: only the recipient gets the event.