diodechain / diode_client

Diode client written in GO that runs the Blockquick™ algorithm and a socks server to transmit data through diode ztna network.
https://diode.io/download
Other
66 stars 23 forks source link

Introduce password protected http publishing command #57

Open dominicletz opened 3 years ago

dominicletz commented 3 years ago

The idea is to make using diode simpler in mixed web2/web3 environments and be able to publish a site with password protection.

Example:

diode http -password "secret" 8080

Would do the same as:

diode publish -public 8080:80

but add password protection to the site

Since password protection can only work for websites the command "http" is introduced that ensure it's about tunneling a website.

Another method would be to use metamask authentication such as in:

diode http -metamask 0x1234567890 8080

Which would require metamask login (https://www.toptal.com/ethereum/one-click-login-flows-a-metamask-tutorial) from the id 0x1234567890 to get access.