'데이터 엔지니어'로 성장하기

정리하는 걸 좋아하고, 남이 읽으면 더 좋아함

Data/Airflow

Airflow) helm Api 설정 켜기_auth_backend

MightyTedKim 2021. 12. 17. 08:29
728x90
반응형

airflow Api 설정 켜기_helm

as is

[api]
auth_backend = airflow.api.auth.backend.deny_all

to be

[api]
auth_backend = airflow.api.auth.backend.basic_auth

(helm)에 수정

config:
  api:
    #auth_backend: airflow.api.auth.backend.deny_all
    auth_backend: airflow.api.auth.backend.basic_auth

테스트

curl --user "<ID>:<PWD>" -X 'POST' \
  'http://<IP>:<PORT>/api/v1/dags/sample_hello_world_dag/dagRuns' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "conf": {},
  "dag_run_id": "test-run",
  "execution_date": "2021-12-16T02:38:20.364Z"
}'

https://airflow.apache.org/docs/apache-airflow/stable/security/api.html

 

API — Airflow Documentation

 

airflow.apache.org

 

728x90
반응형