Avoid exposing the SMTP password in the database by getting it from $config in settings.php

Created on 16 October 2024, about 1 month ago

Problem/Motivation

I can't expose the SMTP password in database. Load it from environment variable is a good solution.

Steps to reproduce

Proposed resolution

Give to the user the option to load the smtp passw from settings.php. In my case, I need to load it from enviroment variable:
/**
* Symfony mailer SMTP Settings
*/
$config['symfony_mailer.mailer_transport.swiftmailer']['configuration']['pass'] = getenv('SMTP_PASSWORD');

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.4

Component

Code

Created by

🇪🇸Spain semapo82 Barcelona

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024