在Docker-Compose上运行的气流中显示管理员配置

发布于 2025-02-10 00:56:27 字数 99 浏览 2 评论 0原文

有人知道如何在用Docker-Compose运行的气流UI中解除管理admin>的配置吗? 当我尝试打开它时,它将显示“#您的气流管理员选择不暴露配置,这很可能是出于安全原因。”

Does anybody know how to unblock admin>configuration in UI of airflow which is running with docker-compose?
When I try to open it it shows '# Your Airflow administrator chose not to expose the configuration, most likely for security reasons.'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风追烟花雨 2025-02-17 00:56:27

设置环境变量airflow__weberver__expose_config = true

Set an environment variable AIRFLOW__WEBSERVER__EXPOSE_CONFIG=True.

戈亓 2025-02-17 00:56:27

在AirFlow 2.4.3中,在[WebServer] airflow.cfg的部分中,从默认的false更改属性expose_config expose_config /code> <代码> true 或非敏感 - 仅,具体取决于您想向UI用户暴露的内容:

# Expose the configuration file in the web server. Set to "non-sensitive- only" to show all values
# except those that have security implications. "True" shows all values. "False" hides the
# configuration completely.
expose_config = False

In Airflow 2.4.3, in the [webserver] section of airflow.cfg, change the property expose_config from the default False to True or non-sensitive- only, depending on what you want to expose to the UI users:

# Expose the configuration file in the web server. Set to "non-sensitive- only" to show all values
# except those that have security implications. "True" shows all values. "False" hides the
# configuration completely.
expose_config = False
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文