threefoldtech / web3gw

Proxy for the web3 world
Apache License 2.0
1 stars 1 forks source link

simplify network deployments #206

Closed ashraffouda closed 11 months ago

ashraffouda commented 11 months ago

network deployments requires the user to enter alot of data like

mut network := models.Znet{
        ip_range: '10.1.0.0/16'
        subnet: '10.1.1.0/24'
        wireguard_private_key: 'GDU+cjKrHNJS9fodzjFDzNFl5su3kJXTZ3ipPgUjOUE='
        wireguard_listen_port: wg_port
        peers: [
            models.Peer{
                subnet: '10.1.2.0/24'
                wireguard_public_key: '4KTvZS2KPWYfMr+GbiUUly0ANVg8jBC7xP9Bl79Z8zM='
                allowed_ips: ['10.1.2.0/24', '100.64.1.2/32']
            },
        ]
    }

it would be nice if the user provide just small data like name, nodes, wg_access and we do the other stuff for him, we already have this implemented in grid-client which we can call through cli to do this since it requires substrate and other stuff that is not implemented in v and make this high level layer up to the user to use this or use the low level one

ashraffouda commented 11 months ago

https://github.com/threefoldtech/3bot/pull/207