Is there or will there be a way for nostr relays to whitelist/blacklist read access? Relays can restrict write access but what about read access? Thinking about making subscription ids signed by a private key and then the nostr relay checks against whitelisted public keys and rejects unverified subscriptions. Could also use auth server. #AskNostr
@Raymon @ManiMe @Sebastix @rabble @ryan
What is the most efficient way to manage read access permissions on a relay? @fiatjaf
AFAIK, this is done by sending a NIP-42 ephemeral event. Regular HTTP auth DOES NOT WORK over nostr, because there is no server side to verify credentials. NIP-42 is how relays can dynamically authenticate client access. https://github.com/nostr-protocol/nips/blob/master/42.md
Thanks! I took a look and it and definitely in line with what I’m looking to do. Probably have to make a relay specific implementation to distinguish permissions amongst pubkeys.
https://github.com/nostr-protocol/nips/pull/1325
Bye bye Rep-ley-Gu-y bitch!
https://khatru.nostr.technology/
Hey fiatjaf, I’m digging through khatru, cool stuff. I’m confused how botj read only and read/write permissions can be set with NIP-86 Authed pubkeys for a relay if the API only has one Allowed Pubkeys list? Any help would be appreciated, thanks.