FlowCrypt / flowcrypt-browser

FlowCrypt Browser extension for Chrome and Firefox
https://flowcrypt.com
Other
372 stars 48 forks source link

Attachments are not decrypted in Gmail offline mode #5766

Closed sosnovsky closed 5 days ago

sosnovsky commented 2 weeks ago

When using Gmail offline mode it's possible to decrypt encrypted messages, but encrypted attachments are downloaded encrypted. Gmail automatically downloads email attachments when offline mode is enabled, while FlowCrypt uses API calls for fetching attachments data. Need to check if it's possible to access offline attachments stored by Gmail and then use their data for decryption.

sosnovsky commented 2 weeks ago

@ioanmo226 please check this issue before continuing ESLint migration, thanks! It was a customer request, who're interested in such ability for offline mode.

ioanmo226 commented 2 weeks ago

Okay

sosnovsky commented 2 weeks ago

Hi @ioanmo226, did you have a chance to check if it's possible to implement attachments decryption in the offline mode?

ioanmo226 commented 2 weeks ago

Hi, I've looked into this thoroughly, and it appears that accessing offline saved attachment data isn't possible due to security reasons.

Here's Bard's answer (we can't trust it 100%, but it aligns with my findings).

I think we should brainstorm if we need to implement this functionality. Maybe we can let users download the attachment first and drag & drop it into the decrypt window? Not sure yet, though.

Thanks!

image

sosnovsky commented 2 weeks ago

Thanks for checking! Seems like adding separate tool for decrypting downloaded attachments will be the most reliable solution. I'll check with customer if it'll work for them. Will keep you updated!

ioanmo226 commented 2 weeks ago

Okay

sosnovsky commented 2 weeks ago

By the way, mentioned functionality is already implemented in the extension - it's available in Additional settings > Experimental > Manually decrypt encrypted files

sosnovsky commented 5 days ago

This solution was accepted by customer ✅