There is no way to conduct tallying for encrypted elections via the web interface currently. The process demands the admin to enter the decryption key into the command line after logging on to the server. The server generates a tally and produces it back on the command line.
A major reason for encrypting votes is so that results can't be looked up while the voting is ongoing. It also prevents disclosure of how users voted. More details: https://wikitech.wikimedia.org/wiki/SecurePoll#Encryption
We want to simplify this process for the election admins and allow them to conduct tallies for encrypted elections via the web interface.
See investigation task: T269029: Investigate issues with Tally function in SecurePoll [8Hr]
This task is for allowing the key to be entered via a form field on TallyPage, so that election admins can tally an election without first putting the key on the server.
- The field for entering the decryption key should only appear for encrypted elections.
- Once the decryption key is submitted, start the process for tallying the election on the server
- A progress bar (possible?) should be displayed to the user while the results are being computed
- Display the election results back on the tally page, once complete
This task is not for removing the key from the server. Whether we can stop storing the key on the server once this is done will need to be discussed among election admins.