Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NIP05 BE] Require API users to give us metadata before they can use the API #9

Open
setch-l opened this issue Feb 13, 2024 · 2 comments
Assignees

Comments

@setch-l
Copy link

setch-l commented Feb 13, 2024

We need users of the NIP05 API to provide metadata about who they are so we can track when someone is abusing the API.

@setch-l setch-l transferred this issue from planetary-social/nos Feb 13, 2024
Copy link

rabble commented Feb 13, 2024

Don’t we require that requests to the nip05 api to have a signed Nostr event in the request as specified in nip-98?

https://github.com/nostr-protocol/nips/blob/master/98.md

This would let us know for sure that it comes from a specific nsec/npub. We could also embed a signature derived from a secret we embed in the nos app which provide pretty good security for now.

@dcadenas
Copy link
Contributor

Yes, the authentication only requires signing the auth request. The metadata collection isn’t for authentication purposes but rather for tracking activities, like IP addresses, user agent, to identify if someone is generating random npubs via a script. Just to help us manually address any possible abuse through direct database manipulation if we need to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants