Step 1 Upload, phase 1
Server sees: That an upload is starting
Never sees: The file or note, and the password
- Who acts
- Your browser, then the server.Your terminal (
buzz), then the server. - What crosses the wire
- A request to
POST /upload/begin, signed in by your login session, with a CSRF token.A request toPOST /upload/begin, signed in by your API token inAuthorization: Bearer. The server answers with a freshfile_idand a random 32-byte key shareH. - What the server sees
- That your account is starting an upload. Nothing about the file or note yet.
- Why
- The file key needs
H, soHhas to exist before anything is encrypted. The server keeps it: this is the half of the key it will hand out exactly once. An upload begun and never finished is swept once it is over an hour old, at the next upload or restart.