NabismoPrime on Nostr: I've been experimenting with relay administration using notes sent from a GUI client, ...
I've been experimenting with relay administration using notes sent from a GUI client, specifically leveraging my own kind 42021 note (note spec to follow). I’ve developed a basic proof of concept that allows Nostr relay operators (or other implementations if they eventually support this kind) to:
- Ban or allow pubkeys and kinds from posting to your relay.
- Delete stored events from a specific pubkey.
-View the allow list for pubkeys and kinds.
All of this can be done without the need to SSH into the server or store private keys on your relay or computer. This is just a test case—there are already operators managing relays through notes, but there isn’t a standard relay admin API yet. There’s also ongoing discussion about whether this approach is the right one or if relay operators should instead use a web client for management.
I welcome any feedback or criticism of this approach and greatly appreciate anyone willing to test it out!
https://github.com/UTXOnly/nostpy-gui#grownostr #relay
Published at
2024-08-11 15:21:30Event JSON
{
"id": "86da7fc6132dc510dc19ac3b39e4cea07c2d425640527751baa79ed0c18d4587",
"pubkey": "4503baa127bdfd0b054384dc5ba82cb0e2a8367cbdb0629179f00db1a34caacc",
"created_at": 1723389690,
"kind": 1,
"tags": [
[
"imeta",
"url https://i.nostr.build/Pw6YSXazcUJPIEQ4.gif",
"blurhash e04_thj?9Foh.7-=axIUog%MM|WUt6ogRjIVWUxuogM{MzWUoeogf5",
"dim 1920x1080"
],
[
"r",
"https://github.com/UTXOnly/nostpy-gui"
],
[
"t",
"grownostr"
],
[
"t",
"relay"
],
[
"r",
"https://i.nostr.build/Pw6YSXazcUJPIEQ4.gif"
]
],
"content": "I've been experimenting with relay administration using notes sent from a GUI client, specifically leveraging my own kind 42021 note (note spec to follow). I’ve developed a basic proof of concept that allows Nostr relay operators (or other implementations if they eventually support this kind) to:\n\n- Ban or allow pubkeys and kinds from posting to your relay.\n- Delete stored events from a specific pubkey.\n-View the allow list for pubkeys and kinds.\n\nAll of this can be done without the need to SSH into the server or store private keys on your relay or computer. This is just a test case—there are already operators managing relays through notes, but there isn’t a standard relay admin API yet. There’s also ongoing discussion about whether this approach is the right one or if relay operators should instead use a web client for management.\n\nI welcome any feedback or criticism of this approach and greatly appreciate anyone willing to test it out!\n\n\n\nhttps://github.com/UTXOnly/nostpy-gui\n\n\n#grownostr #relay https://i.nostr.build/Pw6YSXazcUJPIEQ4.gif ",
"sig": "ac9a02f54c54df7713342ff86c70d1db949dcc1141daef002e12c0a442ab71d7995ebe5e4d6b0f8d2a0ab9059863252bfac7e4e275358e8bcf1ebafd6a694102"
}