threefoldtech / tfgrid-sdk-ts

Apache License 2.0
4 stars 8 forks source link

Expose solution #3178

Open AhmedHanafy725 opened 1 month ago

AhmedHanafy725 commented 1 month ago

Which package/s are you suggesting this feature for?

Dashboard

Is your feature request related to a problem? Please describe

a user might have a server running on a local machine or vm on the grid and this machine has Mycelium IP or Yggdrasil and would like to expose this server to the public network.

Describe the solution you'd like

The user can use the grid gateways to expose his server on a domain by using his machine IP or the vm IP (can be Mycelium IP, Yggdrasil IP, or public IP (v4 or v6))

The solution should ask for the gateway node, a subdomain, the IP, and the port.

maayarosama commented 1 month ago

@ehab-hassan Please provide an icon for this solution

maayarosama commented 1 month ago

Issue Update Format

  1. Work Completed: Added the expose solution to the dashboard
  2. Work in Progress (WIP):
    • waiting on expose icon
    • adding docs to the manual
    • adding validation to the ip field
ehab-hassan commented 1 month ago

@ehab-hassan Please provide an icon for this solution

expose1 expose2

I like option2

maayarosama commented 1 month ago
  1. Work Completed:
maayarosama commented 1 month ago

Issue Update Format

Screenshot from 2024-08-12 22-06-07

AhmedHanafy725 commented 1 month ago

Screenshot from 2024-08-12 22-06-07

This means that you are trying to deploy a gateway workload and using a network's name doesn't exist (you didn't deploy it and you don't need it). This network field on the gateway workload is only used for wireguard network

maayarosama commented 3 weeks ago
maayarosama commented 3 weeks ago

Work Completed:

A-Harby commented 1 week ago

Devnet, 99b5130.

It worked on all networks except for IPv6, it gives me an error not found.

image

image

its missing the http://, could be the error.

A-Harby commented 1 week ago

Also, using wireguard is not supported; its deployment is different than the other networks.

image

A-Harby commented 1 week ago

Last thing what does the health mean? image

Because it shows ok in either way the domain is up or down.

maayarosama commented 1 week ago

Also, using wireguard is not supported; its deployment is different than the other networks.

image

Wiregaurd is indeed not supported

maayarosama commented 1 week ago

Devnet, 99b5130.

It worked on all networks except for IPv6, it gives me an error not found.

image

image

its missing the http://, could be the error.

I think the ipv6 you provided isn't a valid ip, Please try it again because I tried and ipv6 works just fine Screenshot from 2024-09-03 14-02-31 Screenshot from 2024-09-03 14-03-05

A-Harby commented 1 week ago

I think the ipv6 you provided isn't a valid ip, Please try it again because I tried and ipv6 works just fine Screenshot from 2024-09-03 14-02-31 Screenshot from 2024-09-03 14-03-05

True, it wasn't with the IPv6 but rather with the tls passthrough option; if you turn it on, the domain will not work.

image

Also chip should be green and red, and in some deployment table is called status. image

maayarosama commented 5 days ago

I think the ipv6 you provided isn't a valid ip, Please try it again because I tried and ipv6 works just fine Screenshot from 2024-09-03 14-02-31 Screenshot from 2024-09-03 14-03-05

True, it wasn't with the IPv6 but rather with the tls passthrough option; if you turn it on, the domain will not work.

image

Also chip should be green and red, and in some deployment table is called status.

image

If the server doesn't have a certificate and you enable the tls passthrough it will never work

A-Harby commented 2 days ago

Verified, Devnet a948bfa.

The domain is now working fine with all network interfaces except for Wiregurad and with the TLS option on/off.

image image

And health chip is fixed. image

Test case: TC2827 - Deploy Domain