2

How to retrieve SMTP password by airflow using smtp_password_cmd value?

I have added all the environment variables in composer environment which intern overrides airflow configuration.

https://i.stack.imgur.com/n00HE.jpg (Refer this image)

Please give me a brief understanding of what command need to add in composer environment, so that it airflow uses this command to get the value of password?

1 Answers1

2

As stated in this SO post, it is better to use Secret Manager for this purpose. To use a secret stored in Secret Manager to retrieve an SMTP password, you can follow this documentation.

Posting this as a wikianswer for the benefit of the community as well.

Anjela B
  • 1,150
  • 1
  • 2
  • 7