szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.66k stars 167 forks source link

Can't create encrypted bin with only client side encryption #205

Open ekamil opened 1 year ago

ekamil commented 1 year ago

Describe the bug Can't create encrypted bin with only client side encryption

To Reproduce

  1. go to the bin page
  2. add content
  3. add password
  4. (optional) change the Privacy
  5. try to click "save"

Changing Privacy type doesn't change the outcome. Unencrypted bins work.

Expected behavior A new bin is created

Screenshots

Desktop (please complete the following information):

Deployment using docker via ansible with the following env vars:

MICROBIN_EDITABLE: "true"
MICROBIN_NO_LISTING: "true"
MICROBIN_PRIVATE: "true"
MICROBIN_DATA_DIR: "microbin_data"
MICROBIN_PUBLIC_PATH: "https://{{ microbin_subdomain }}"
MICROBIN_READONLY: "false"
MICROBIN_SHOW_READ_STATS: "true"
MICROBIN_GC_DAYS: "45"
MICROBIN_ENABLE_BURN_AFTER: "true"
MICROBIN_DEFAULT_BURN_AFTER: "0"
MICROBIN_QR: "false"
MICROBIN_ENABLE_READONLY: "false"
MICROBIN_DEFAULT_EXPIRY: "24hour"
MICROBIN_NO_FILE_UPLOAD: "false"
MICROBIN_ENCRYPTION_CLIENT_SIDE: "true"
MICROBIN_ENCRYPTION_SERVER_SIDE: "false"
MICROBIN_MAX_FILE_SIZE_ENCRYPTED_MB: "10"
MICROBIN_MAX_FILE_SIZE_UNENCRYPTED_MB: "5"
MICROBIN_DISABLE_TELEMETRY: "true"
MICROBIN_LIST_SERVER: "false"