You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This exposes the /connect API endpoint, which is used for network connectivity when gvforwarder/vm is running in the guest, a /services endpoint providing port forwarding, DNS, DHCP, a /stat endpoint, ...
Since there are other ways to get network connectivity without using /connect (--listen-vfkit, --listen-bess, ...), it's desirable to be able to enable the service/stats/... endpoints without enabling /connect.
It's better to add a separate option(s) for this, as at this point, there could be users relying on gvproxy --listen current behaviour.
#78 is a distinct issue, the /services/forwarder API endpoint is unconditionally enabled in the guest, which might have security implications. Being able to disable it would be useful.
The text was updated successfully, but these errors were encountered:
The issue could actually be rephrased as "it should be possible to start gvproxy using --listen-qemu/--listen-vfkit/..., while still being able to use the /services endpoint from the host", which is not really possible at the moment, or not really convenient/obvious as --listen needs to be specified for that.
--listen
defines the sockets that will be used for gvproxy REST APIgvisor-tap-vsock/pkg/virtualnetwork/mux.go
Lines 19 to 31 in 72b102d
This exposes the
/connect
API endpoint, which is used for network connectivity whengvforwarder
/vm
is running in the guest, a/services
endpoint providing port forwarding, DNS, DHCP, a/stat
endpoint, ...Since there are other ways to get network connectivity without using
/connect
(--listen-vfkit
,--listen-bess
, ...), it's desirable to be able to enable the service/stats/... endpoints without enabling/connect
.It's better to add a separate option(s) for this, as at this point, there could be users relying on
gvproxy --listen
current behaviour.#78 is a distinct issue, the
/services/forwarder
API endpoint is unconditionally enabled in the guest, which might have security implications. Being able to disable it would be useful.The text was updated successfully, but these errors were encountered: