Add support for Key module for SMTP Transport

Created on 16 June 2025, 18 days ago

Problem/Motivation

The Symfony Mailer Lite module currently stores SMTP passwords as plain text in configuration, a possible security risk. We should give users the option to use the Key module β†’ .

Proposed resolution

Implement optional integration with the Key module to provide secure password storage for SMTP transports:

  • Add optional Key module integration in SMTP transport configuration
  • Maintain backward compatibility with existing plain text storage
  • Provide a security warning when Key module is not installed

Remaining tasks

  • Add Key module integration to SMTP transport plugin

User interface changes

Enhanced SMTP transport configuration form with:

  • Checkbox to enable Key module for secure password storage
  • Key selection dropdown when Key module is enabled and available
  • Security warning message when Key module is not installed
  • Clear indication when passwords are stored as plain text

API changes

New configuration keys in SMTP transport plugin:

  • use_key_module - Boolean flag for Key module usage
  • pass_key - String containing Key entity ID for password storage

Data model changes

Configuration schema updated to support new security options. Existing plain text passwords remain functional. Key module integration is optional and backward compatible.

πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States zengenuity

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

Comments & Activities

Production build 0.71.5 2024