【发布时间】:2021-06-08 09:14:50
【问题描述】:
我正在运行一个 AWS MWAA Airflow v2.0.2 实例。
我想访问Airflow API。这是目前支持的东西吗?计划在未来发布? AWS 文档中没有提到这一点。
看起来可以在 AWS MWAA Airflow v1.10.12 中启用实验性 API,但是当我尝试在 AWS UI 中添加 api.auth_backend = airflow.api.auth.backend.default 时,我收到以下错误消息:
Some of the provided configurations belong to the blocklist and can not be applied: api.auth_backend
【问题讨论】:
-
是的,但这可以访问 Airflow CLI,而不是 Airflow API。实际上在功能上有很大的不同!
-
有两个选项:a) MWAA 不支持 Airflow API b) 尝试使用
auth_backend = airflow.api.auth.backend.basic_auth,因为默认选项可以是deny_all,如airflow.apache.org/docs/apache-airflow/stable/security/api.html 中所述(我不记得何时我们更改了默认值)另外 - 考虑迁移到 2.0,因为 1.10.X 版本将在今年 6 月 17 日达到 EOL。 -
我已经在运行 v2.0.2。如帖子中所述,此
api.auth_backend已被 AWS 列入黑名单。
标签: amazon-web-services airflow mwaa