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

Stealth: Peerer Server Middleware #75

Open
2 of 4 tasks
cookiengineer opened this issue Aug 19, 2021 · 1 comment
Open
2 of 4 tasks

Stealth: Peerer Server Middleware #75

cookiengineer opened this issue Aug 19, 2021 · 1 comment

Comments

@cookiengineer
Copy link
Member

cookiengineer commented Aug 19, 2021

The Compeer implementation is now almost ready. What's missing is a dedicated Review for its featureset and the integration of peers to the Settings in the Browser Profile and the stealth.peers[] Array that contains active Peer connections.

  • Services: Implement a better Peer Settings structure.
  • Compeer: Implement this.services.peer API integration that creates a Peer (if it doesn't exist) or updates a Peer (if it exists) Setting.
  • Implement stealth/server/Compeer Review.
  • Fix/Update stealth/server/service/Peer Review.
let peer_setting = {
    domain: 'hostname' || 'username.tholian.local',
    peer: {
        connection: 'mobile', // internet.connection setting
        certificate: 'hash_value' || null, // hash of peer certificate for cert pinning. No certificate means no secure connection
        version: '2021:X0' // Stealth.VERSION to reflect API compatibility
    }
};
@cookiengineer
Copy link
Member Author

cookiengineer commented Sep 6, 2021

The Peerer should manage the task of local and global peer discovery, and add the responses accordingly to the this.stealth.settings.peers[] array (and settings.hosts[]).

In order to clean up the Peer Service, the proxy() method has been removed, and instead the SOCKS and HTTPS Proxy should now be used to achieve the same effect of relaying network traffic. However, the following use cases have not been solved yet:

  • receive() should save ServiceDiscoveryResponses into settings.peers[]
  • resolve() DNS requests to other domains via known local Peers on port 65432, use a Ronin mechanism to select peers at random, if unsuccessful repeat max 3 times.
  • resolve() local Peer domains (*.tholian.local) via settings.peers[] and settings.hosts[].

@cookiengineer cookiengineer changed the title Stealth: Compeer Server Middleware Stealth: Peerer Server Middleware Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant