본문 바로가기
  • 👩🏻‍💻 🌮 💬
👩🏻‍💻/airflow

[Airflow] RemovedInAirflow3Warning: Fetching SMTP credentials from configuration variables will be deprecated in a future release. Please set credentials using a connection instead.

by 바쿄리 2024. 5. 29.

 

개요

airflow 옮기는 작업 중에 error 발생

RemovedInAirflow3Warning: Fetching SMTP credentials from configuration variables will be deprecated in a future release. Please set credentials using a connection instead.

 

확인

 

airflow 진행 사항을 이메일로 받는데, 그 이메일 인증 관련해서 생긴 문제

## docker-compose.yaml

# For SMTP
AIRFLOW__SMTP__SMTP_HOST: smtp.gmail.com
AIRFLOW__SMTP__SMTP_PORT: 587
AIRFLOW__SMTP__SMTP_RETRY_LIMIT: 5
AIRFLOW__SMTP__SMTP_STARTTLS: 'true'
AIRFLOW__SMTP__SMTP_SSL: 'false'
AIRFLOW__SMTP__SMTP_TIMEOUT: 30
AIRFLOW__SMTP__SMTP_USER: 'user01@email.com'
AIRFLOW__SMTP__SMTP_MAIL_FROM: 'user02@email.com'
AIRFLOW__SMTP__SMTP_PASSWORD: ****************

 

docker-compose.yaml 파일에서 SMTP 관련 설정을 찾았다.

사용하던 AIRFLOW__SMTP__SMTP_PASSWORD 를 재설정 해야한다.

 

진행

smtp password 받으려면

 

1️⃣ Google 계정 관리에 들어감

 

2️⃣ 보안에 들어감

 

3️⃣ 2단계 인증 추가하기

 

4️⃣ 앱 비밀번호 접근

 

5️⃣ 앱 만들기 진행하면

 

 

✅ 아래와 같이 16자리 알파켓으로 구성된 비밀번호 생성됨

 

그럼 생성된 앱 비밀번호를 docker-compse.yaml 에서 수정해주면

 

✅ 잘 진행됨 확인