Providing SMTP user and password from airflow.cfg or environment variables #45114
Closed
1 of 2 tasks
Labels
area:core
invalid
kind:bug
This is a clearly a bug
needs-triage
label for new issues that we didn't triage yet
Apache Airflow version
2.10.4
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Currently airflow smtp email.py utils is not taking
user, password
values from airflow.cfg/env variables, rather it getsuser, password
values from smtp connection https://github.com/apache/airflow/blob/main/airflow/utils/email.py#L245-L246What you think should happen instead?
In production its not realistic to manually supply smtp user password in connection, thus it would be ideal to consider to get
user and password
from airflow.cfg in case they are suppliedAIRFLOW__SMTP__SMTP_USER: "user@domain" AIRFLOW__SMTP__SMTP_PASSWORD: 'pwd'
.How to reproduce
na
Operating System
na
Versions of Apache Airflow Providers
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
Please suggest if there is a work around to provide smtp password securely.
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: