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

support 'open peers' listings #12

Open
ansuz opened this issue Nov 18, 2015 · 5 comments
Open

support 'open peers' listings #12

ansuz opened this issue Nov 18, 2015 · 5 comments

Comments

@ansuz
Copy link
Member

ansuz commented Nov 18, 2015

Where 'open peers' are defined as an endpoint supporting a programmatic way to request and receive valid cjdns peering credentials with a unique password, as opposed to many peers sharing one published password.

@Kubuxu
Copy link
Contributor

Kubuxu commented Nov 18, 2015

I was thinking about simple POST HTTP request with possible additional data like ie. username, contact.

Response code would be either 200 with valid peering info (that could be copy-pasted, possibly including expires metadata), 503 if open peer reached its capacity, 403 if user was blocked and (some code) for "I don't want you" for some reason (I could require you to have valid nodeinfo).

Request and response format should be somewhat standardised as json(MIME application/json), in case of refusal reason field with string would be nice.

Exchange should happen over cjdns or if clearnet is to be used: https.

We have to yet specify (some code), I was thinking about 418 (I am teapot)

@ansuz
Copy link
Member Author

ansuz commented Nov 18, 2015

👍

@Kubuxu
Copy link
Contributor

Kubuxu commented Nov 18, 2015

With @NateBrune we've come to an agreement.

Open peers will be accessible as http pages with GET endpoint hosting what ever user interface you want and POST providing dumb request/registration JSON interface. This way open peers pages can be used in browser to get peering info and in CLI/programs.

@kyrias
Copy link
Contributor

kyrias commented Jun 10, 2016

I'd sort of want something half-open, where it would try to send a verification code to the contact address that's needed to actually get the credentials, because I'd want to get a somewhat reliable way to contact my peers.

@kpcyrd
Copy link
Member

kpcyrd commented Jun 11, 2016

Might want to look into promisc for inspiration.

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

No branches or pull requests

5 participants