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

RFC: Interface for managing asb instance #202

Open
binarybaron opened this issue Nov 21, 2024 · 1 comment
Open

RFC: Interface for managing asb instance #202

binarybaron opened this issue Nov 21, 2024 · 1 comment
Labels
asb Related to the ASB (maker side) enhancement New feature or request GUI Related to the Tauri GUI meta High level issue

Comments

@binarybaron
Copy link

binarybaron commented Nov 21, 2024

We want to make running an asb as accessible as possible.

Currently this is cumbersome. In practice managing an asb instance involves:

  1. Reading log files by hand
  2. Managing wallets (repleneshing Monero funds, transfering the received Bitcoin to other wallets)
  3. Managing infrastructure (keeping daemon in sync, often using docker-compose)

Common issues are:

  • The Bitcoin wallet cannot be accessed while the asb is running. Instead of using the balance and withdraw-btc commands, most opt to export the internal wallet and manage it using external wallet software
  • Ports needs to be opened for libp2p to accept connections. If you want a /dnsaddr/*** / /dns4/**** multi address you also need to register a domain and set the correct dns entries.
  • If you want to monitor the uptime of your instance, you either need to contineually monitor the logs or check if it is still present in the public registry

Proposed solution

  1. We use arti to listen on an /onion3/**** multi address. This allows users to run the asb behind a firewall, without exposing their IP and without needing DNS entries. We'll slowly migrate towards this being the default for all sellers.
  2. We introduce a control API (similiar to the tor control). This should allow users to modify settings (like the spread) and execute commands (meaning things like withdraw-btc) programatically. The API needs to be secured using a security token. We should listen locally on a port and listen on an onion service for connections (a different one from the one we use for libp2p)
  3. We add a new tab to the GUI (Market Maker) to allow
    3.1 Running and managing an asb instance on the same device
    3.2 Running an asb on an external server and allow users to manage the asb by connecting to the onion address of the control API and authenticating using the security token
@binarybaron binarybaron added enhancement New feature or request GUI Related to the Tauri GUI asb Related to the ASB (maker side) meta High level issue labels Nov 21, 2024
@binarybaron binarybaron pinned this issue Nov 21, 2024
@darkness-su
Copy link

#211

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asb Related to the ASB (maker side) enhancement New feature or request GUI Related to the Tauri GUI meta High level issue
Projects
None yet
Development

No branches or pull requests

2 participants