Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Latest commit

 

History

History
44 lines (33 loc) · 1.44 KB

protecting_downloads.md

File metadata and controls

44 lines (33 loc) · 1.44 KB

Protecting downloads with passwords

To 'nudge' researchers to be carefull with respondent data, it is possible to set a data-password. This will change researcher downloads from .json or .csv files to zipped versions of these files protected with the specified password.

Things to note:

  1. The zipfiles use AES encryption, which is stronger, but not supported by default on many operating systems. Use OS specific software that suppports this encryption, for example:
  1. Long passwords help create better protected files, but never consider password protected zipfiles to be 'unbreakable'. They protect only to layman users, not motivated attackers.

  2. You can use a secret-manager to avoid putting the password direcly into CLI arguments or environment variables.

How to enable password protected downloads:

  1. Using environment variables:
# enable access to the researcher interface by 
# setting basic authentication
export OSD2F_BASIC_AUTH="admin;testpassword" 

# set the password
export OSD2F_DATA_PASSWORD=<your password>

# start the server
osd2f -m Development -vvv
  1. Using a CLI command
# enable access to the researcher interface by 
# setting basic authentication
export OSD2F_BASIC_AUTH="admin;testpassword" 

osd2f --download-password <your-password> -m Development