Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX add option to use master mail server for scripts system #286

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hregis
Copy link
Contributor

@hregis hregis commented Feb 15, 2023

No description provided.

@@ -704,6 +704,8 @@ allowed_hosts=127.0.0.1,ipofmasterserver
[email protected]
# email supervision
[email protected]
# Option to use mail server of master server (for scripts system)
# usemastermailserver=1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we must just put a flag to say use master server. Because on master server, key (like smtp pass) is encrypted and only the master should be able to uncrypt so it is protected if database is stolen.
If you say to use the pass of the master, it also means you must store the decode key (so $dolibarr_main_instance_unique_id of the master) on the deployment server. This means the pass to encrypt master database fields become public.
I think we should instead store inside the .conf file, the data to use to send email (so the mode to send email, the smtp address and port, login/pass) so only smtp data are leaks on the deployment server instead of all encrypted data of the master.

@eldy eldy added the discussion Further information is requested label Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants