Skip to content

Join us: clone the ДA&K accounts to your Ubuntu box - and get paid!

License

Notifications You must be signed in to change notification settings

didalik/dak.org.hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👷 WARNING: WORK IN PROGRESS 👷 Clone the ДA&K accounts to your Ubuntu box - and get paid!

Hi there, I'm Дід Alik. I have a hobby project called Stellar Help Exchange. Presently, it passes all the integration tests locally. In these tests, the project's website interacts with Stellar hX users - simulated locally - via Stellar testnet.

Before I move the website to production and connect it to Stellar public network, I want to setup a cloud-based environment to simulate Stellar HEX users globally. To join it, clone this repo to your Ubuntu 24.04 LTS server and set it up there. The Дід Alik & the Kids cloud-based organization welcomes you!

Your box can support QA testers only (a qahub), developers only (a devhub), or both (a tophub). During its setup, it connects to an existing top hub to clone the accounts you requested from our top hub to your hub.

How to set up a hub

To create an account on your server, you have to be a sudoer. A sudoer does not have to enter a password to execute a sudo command. For example, on my box I have account alik. To make alik a sudoer, I run:

echo "alik  ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/alik

Please make sure you are a sudoer, then run:

cd $HOME
#git clone [email protected]:didalik/dak.org.hub.git    # read and write
git clone https://github.com/didalik/dak.org.hub.git # read only
cd dak.org.hub
bin/setup qahub # OR devhub <access-token> OR tophub <access-token>

This creates the qahub and tester accounts on your hub. These are regular accounts, unable to run sudo. This also creates another, temporary, regular account called relay. This account effectively passes your IP address to one of our existing top hubs and gets deleted right after.

As soon as our top hub gets your IP address, it connects to qahub account on your box and completes the setup. The whole thing takes less than a minute to complete.

You are now hosting yet another QA hub for us. Get paid!

How to get paid

I shall pay you HEXA 1000 for hosting a QA hub for us. It doesn't have to be up 24/7, but when it is, I shall pay you HEXA 100 each time a tester uses your hub to interact with the project's website.

Getting paid for setting up a QA hub

Getting paid for QA hub usage

How to obtain and use an access token

Start with running bin/install-node. Then run

bin/sendauth request tophub | bin/sendauth approval | bin/setup tophub

to:

  • request approval for the tophub support; and
  • get and use your access token to setup the tophub account on your box.

The following sequence diagram has more:

+---------+                          +-------------------------------------------------+
| you@hub |                          | https://hx.didalik.workers.dev/sendauth/request |
+---------+                          +-------------------------------------------------+
     | request tophub - returns approval JWT                |
     |----------------------------------------------------->|
     |                                                          +----------------------+
     |                                                          | authorization server |
     |                                                          +----------------------+
     | send approval JWT - returns access JWT for tophub@tophub             |
     |--------------------------------------------------------------------->|
                                                                            |
+-----------+                              +--------------+                 |
| relay@hub |                              | relay@tophub |                 |
+-----------+                              +--------------+                 |
       | setup tophub using access JWT             |                        |
       |------------------------------------------>|                        |
                                                                            |
+------------+                             +--------------+                 |
| tophub@hub |                             | index@tophub |                 |
+------------+                             +--------------+                 |
       |                                           | verify access JWT      |
       |                                           |----------------------->|
       |                            complete setup |
       |<------------------------------------------|

Contributors

# Дід Alik, [email protected], SSH public key:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIQ3rb93nHY8SPz9K+sD7o6+KvBjzmxveraFMFbL5Ztg alik@th0host

About

Join us: clone the ДA&K accounts to your Ubuntu box - and get paid!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published