-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
Description
At the moment, anyone with a link to a loaner task and permission to read the loaner artifacts can connect. Users who create a loaner task probably expect that only they can login to the loaner, and might do things like put their SSH private key on it. let's make loaners specific to the user who created them.
Proposal: when creating a loaner, create a private key and stick it in the browser's LocalStorage, with the public key included in the task definition. Then, when connecting, use the private key to sign some piece of data and send it to the worker. If the signature checks out, the worker allows access. It shouldn't be too much work to make a nice copy-pastable string for this signature to share with command-line tools.