Ashish Dhamu
Ashish Dhamu

Reputation: 71

How to change or override smtp_password for Google Composer Airflow

I am trying to do a setup of smtp server in Google Composer Airflow, as per the google document smtp_password can not be overridden and default password should be used.

Is there any option to use smtp server with actual password in Google Cloud Composer.

Upvotes: 1

Views: 1320

Answers (1)

July
July

Reputation: 442

According to the documentation, some Airflow configurations are preconfigured for Cloud Composer and you cannot change them like smtp-smtp_password after the new environment is already created.

You can receive notifications by configuring SENDGRID_MAIL_FROM and SENDGRID_API_KEY environment variables to send email through the SendGrid email service using the SendGrid API key instead of smtp_password.

Additionally, you can configure third-party SMTP services but consider that Cloud Composer does not support configuring the smtp_password because the value is stored in plain text in airflow.cfg and considered unsecure.

Upvotes: 1

Related Questions