RTC: Add new collaboration groups dynamically without restart the hub

Hello everyone,

I am very pleased that ‘Real-time collaboration’ has been available since JupyterHub 4.0.
My goal is to enable users to create their own collaboration groups. This is necessary for us because there is a lot of group work.
Before I could start with the implementation, I came across the following problem in the documentation.

Real-time collaboration without impersonation

If new collaboration groups are created (within configuration, via the admin page, or via the Authenticator), the hub will need to be restarted in order for it to load roles for those new groups.

This would mean that I would have to restart the hub every time a group is created or deleted. Unfortunately, this is not very practical if you have thousands of possible users.

As far as I can see, I can’t do this dynamically via the REST API either.

Do you have any ideas as to whether it could still be implemented somehow? It would be a real shame if I couldn’t offer RTC to the users.
Or should I rather create a GitHub issue for it?

Many thanks in advance

I think that paragraph was written before introduction of authenticator-managed roles. I think this should allow for your use case.

2 Likes

Thanks, I’ll have a look at it.
But my hub is running on 4.1.6 and unfortunately I can’t update it to 5.0 because there is no stable Helm chart version yet.

For what it’s worth we’ve been running the development versions without any issues for a couple of months now on multiple large deployments. But yes, I noticed that too yesterday and opened No stable releases for JupyterHub 5.0 and 5.1? · Issue #145 · jupyterhub/helm-chart · GitHub

Unfortunately, our policy is that only stable versions must be used.
Thanks for the issue, I’ll keep an eye on it.