jupyter / tmpnb

Creates temporary Jupyter Notebook servers using Docker containers. [DEPRECATED - See BinderHub project]
https://github.com/jupyterhub/binderhub
BSD 3-Clause "New" or "Revised" License
528 stars 122 forks source link

Make /user/:id length configurable, secure #205

Closed parente closed 8 years ago

parente commented 8 years ago

Compliments #204. If you specify an API_AUTH_TOKEN on tmpnb start, only clients that know the token can request access to a container via /api/spawn. The spawn response contains the /user/:id path of a selected container. If you specify a reasonably long user_length on tmpnb start, guessing the path to a spawned container becomes very difficult. In essence, the path segment winds up acting like an API key to the container.

Not rock solid security, but, hey, not bad reusing what already exists.

rgbkrk commented 8 years ago

Looks good to me.