{{name}}
+Relay Administration
+Admin Console
+You are signed in with NIP-98.
+ + +diff --git a/.changeset/cool-ways-brake.md b/.changeset/cool-ways-brake.md new file mode 100644 index 00000000..98ff1968 --- /dev/null +++ b/.changeset/cool-ways-brake.md @@ -0,0 +1,5 @@ +--- +"nostream": minor +--- + +Replace admin password login with NIP-98 HTTP auth kind-27235 `Authorization: Nostr` headers verified against an `admin.pubkeys` allowlist \ No newline at end of file diff --git a/README.md b/README.md index e15823cd..0387a41f 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ NIPs with a relay-specific implementation are listed here. - [x] NIP-45: Event Counts - [x] NIP-62: Request to Vanish - [x] NIP-65: Relay List Metadata +- [x] NIP-98: HTTP Auth (admin console login) ## Requirements diff --git a/package.json b/package.json index df8dac50..66aa80c5 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ 44, 45, 50, - 65 + 65, + 98 ], "supportedNipExtensions": [], "supportedMips": [ diff --git a/resources/admin-dashboard.html b/resources/admin-dashboard.html new file mode 100644 index 00000000..c13649d6 --- /dev/null +++ b/resources/admin-dashboard.html @@ -0,0 +1,74 @@ + + +
+ + +Relay Administration
+You are signed in with NIP-98.
+ + +Relay Administration
++ Sign in with your Nostr identity. Your signer extension or connected + wallet (NIP-07) will be asked to sign a NIP-98 authentication event. +
+ + + +