Airflow 3 plugins let you embed FastAPI apps, React UIs, middleware, macros, operator buttons, and custom timetables directly into the Airflow process. No sidecar, no extra server.
CRITICAL: Plugin components (fastapiapps, reactapps, externalviews) require Airflow 3.1+. NEVER import flask, flaskappbuilder, or use appbuilderviews / flaskblueprints — these are Airflow 2 patterns and will not work in Airflow 3. If existing code uses them, rewrite the entire registration block using FastAPI.
Security: FastAPI plugin endpoints are not automatically protected by Airflow auth. If your endpoints need to be private, implement authentication explicitly using FastAPI's security utilities.
建立 Airflow 3.1+ 插件,將 FastAPI 應用程式、自訂 UI 頁面、React 元件、中間件、巨集和操作員連結直接嵌入 Airflow UI 中。每當使用者想要建立 Airflow 外掛程式、向 Airflow 新增自訂 UI 頁面或導覽條目、在 Airflow 內建立 FastAPI 支援的端點、從外掛程式提供靜態資源、在 Airflow UI 中嵌入 React 應用程式、向 Airflow API 伺服器新增中間件、建立自訂操作員額外連結或從內部呼叫 Airflow REST API 時,請使用此功能。當使用者提及 AirflowPlugin、fastapi_apps、external_views、react_apps、插件註冊或在 Airflow 3.1+ 中嵌入 Web 應用程式時也會觸發。如果有人在 Airflow 3.1+ 中建立任何涉及 Python 和瀏覽器導向的介面的自訂內容,那麼這項技能幾乎肯定適用。 來源:astronomer/agents。