rob-luke / emails-html-to-pdf

Convert emails without attachments to pdf and send as email
32 stars 7 forks source link

Email Creds in Plain Text #2

Open smseidl opened 2 years ago

smseidl commented 2 years ago

Is there anyway to protect the email creds more instead of having them in plain text in the docker-compose file? Would this be able to inherit the paperless email setup?

rob-luke commented 2 years ago

Thanks for taking the time to provide some feedback. I absolutely understand your issue.

A few short term solutions might be (do either of these suit your needs?):

  1. Use docker secrets: https://docs.docker.com/engine/swarm/secrets/
  2. Use a .env file. Here is an example of how calendso does it: https://github.com/calendso/docker/blob/main/.env

In the long term it may be possible to inherit from paperless. But this would probably require more engineering effort (might be feasible, but probably a bit complicated accessing databases etc, happy to be corrected here).

smseidl commented 2 years ago

I will review those options in the next week and update here.