Optionally use a key for the smtp_password instead of a config

Created on 12 June 2024, 5 months ago
Updated 15 August 2024, 3 months ago

Problem/Motivation

Currently the smtp_password is stored in plain text in config yml

We'd like to use the key module to store the smtp_password.

There are several key provider options with the key module.

  1. Environment variable
  2. Filesystem
  3. Configuration
  4. Contrib module key provider such as azure_key_vault and others

I am starting this out with a very simple patch. Perhaps it could be made better by adding this as an optional storage. So the phpmailer_smtp form would have to have a checkbox option for use "key" storage for smtp_password. If this is checked, there should be conditional use of this. By default I suggest this be disabled.

For now, I'm providing a patch that enables this by default and doesn't make it optional. The only thing that is optional with the very first version of this patch is the key provider and key name of course, there's a link to manage the key.

Steps to reproduce

Install phpmailer_smtp
Install the key module
Apply the patch

Proposed resolution

TBD

Remaining tasks

  • Review the ideas and patch(s) presented here

User interface changes

See issue summary

API changes

See issue summary

Data model changes

Key storage option

Feature request
Status

Needs work

Version

2.2

Component

Code

Created by

🇨🇦Canada joseph.olstad

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024