fix(imap): address code review feedback - named constants, error context in JS, security docs

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-08 13:08:31 +00:00
parent 43bcfe5653
commit 73727dc56a
4 changed files with 37 additions and 12 deletions
+3 -1
View File
@@ -402,7 +402,9 @@ class UserImapAccount(Base):
host = Column(String(255), nullable=False)
port = Column(Integer, nullable=False, default=993)
username = Column(String(255), nullable=False)
# Password stored in plain text — the admin is responsible for access control
# Password stored in plain text — the admin is responsible for access control.
# TODO: Encrypt at rest using cryptography.fernet before deploying in high-security
# environments. See SECURITY_AUDIT.md for full risk assessment and mitigation notes.
password = Column(String(1024), nullable=False)
use_ssl = Column(Boolean, nullable=False, default=True)