dask-gke icon indicating copy to clipboard operation
dask-gke copied to clipboard

Disable public IP access by default

Open ogrisel opened this issue 7 years ago • 3 comments

For security reasons, I think that the default configuration should not map the jupyter / scheduler services on a public IP address (even if jupyter notebook asks for a password, passing a password over HTTP without TLS is unsafe).

It would be better to advertise the use of:

kubectl port-forward name-of-service localport:serviceport

We could even have some dask-kubernetes helper commands to do that automatically and open the notebook and other HTTP status pages on http://localhost:localport instead.

ogrisel avatar Jan 18 '18 14:01 ogrisel

More details on port forwarding in:

https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/

ogrisel avatar Jan 18 '18 14:01 ogrisel

A pretty common use case has been for sharing to share the scheduler or notebook - which would not work well with port forwarding/proxy. (proxying is already used for the dashboard command) It would be relatively easy to make the service creation optional and provide forward/proxy options - it would take a little effort, and complicate the CLI, perhaps.

Are you aware of the more recent and parallel daskernetes effort, and general chartification conversations?

martindurant avatar Jan 18 '18 16:01 martindurant

@mrocklin just told me about daskernetes. I will have a look at it in the coming days.

ogrisel avatar Jan 18 '18 17:01 ogrisel