eWaterCycle / infra

Instructions for system administrators to deploy the eWaterCycle platform
Apache License 2.0
0 stars 0 forks source link

Ask workspace name + collaborative collaboration name for jupyterhub URL construction #115

Open sverhoeven opened 2 years ago

sverhoeven commented 2 years ago

At the moment the experiment launcher constructs the JupyterHub URL based on the origin header in the http request, see https://github.com/eWaterCycle/experiment-launcher/blob/dd003084b6ac79ca243018f391e636a5facb528a/ewatercycle_experiment_launcher/process.py#L15-L16

As SRC workspace domain names are now constructed as

[workspace].[co].src.surf-hosted.nl

We can set the JUPYTERHUB_URL env var for a more secure way of getting the URL.

The ansible tasks do not have access the workspace name or collaborative collaboration name form the ansible context. To configure the launcher in a ansible task the they should be added as application parameters when creating the workspace.