Skip to content

Enable creating private training sessions in DISCO - #1304

Draft
JulienVig wants to merge 10 commits into
mainfrom
private-session
Draft

JulienVig wants to merge 10 commits into
mainfrom
private-session

Conversation

@JulienVig

@JulienVig JulienVig commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

When a user creates a private task, the server answers with a private URL (https://discolab.ai/#random-task-id?token=<256-bit random token>) that can be shared with participants to join the session. The token is passed in the API requests to let the server authenticate them.

  • When creating a task in the UI, the user can tick a checkbox to make it private. If private, the UI displays the private URL after creation
  • Server now generates a task's ID, not a user input anymore
  • Enforce using TLS if not using localhost, to avoid sending the token in cleartext
  • GET requests to the list of tasks or models exclude private task. A private task is only accessible using the private URL.
  • Clients sending a ClientConnected message to the server for a private task requires to include a token, otherwise the connection is denied and the client is not included in the participants

Future work:
The server doesn't persist anything to disk currently so any new task created (public or private) is forgotten every time the server reboots (currently after a few minutes of inactivity). Therefore we need to implement filesystem persistence for new tasks and models in the google cloud instance.

Closes #1271, closes #878

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support private-access tasks use random Task ID

1 participant