From 68139187f0f1e46a11e8670b39243427f712d956 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Wed, 27 Aug 2025 22:39:01 +0200 Subject: [PATCH] fix: Add cookies options into FAB provider.yaml --- providers/fab/provider.yaml | 14 ++++++++++++++ .../src/airflow/providers/fab/get_provider_info.py | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/providers/fab/provider.yaml b/providers/fab/provider.yaml index 00d0e872acb77..8c58e26656ce8 100644 --- a/providers/fab/provider.yaml +++ b/providers/fab/provider.yaml @@ -69,6 +69,20 @@ config: fab: description: This section contains configs specific to FAB provider. options: + cookie_secure: + description: | + Cookie with the secure attribute is only sent to the server with an HTTPS connection. + version_added: 2.4.0 + type: boolean + example: ~ + default: "False" + cookie_samesite: + description: | + Whether the cookie is restricted to a first-party or same-site context. + version_added: 2.4.0 + type: string + example: ~ + default: "Lax" navbar_color: description: | Define the color of navigation bar diff --git a/providers/fab/src/airflow/providers/fab/get_provider_info.py b/providers/fab/src/airflow/providers/fab/get_provider_info.py index 2fa32538cd7e2..068111260c6ec 100644 --- a/providers/fab/src/airflow/providers/fab/get_provider_info.py +++ b/providers/fab/src/airflow/providers/fab/get_provider_info.py @@ -30,6 +30,20 @@ def get_provider_info(): "fab": { "description": "This section contains configs specific to FAB provider.", "options": { + "cookie_secure": { + "description": "Cookie with the secure attribute is only sent to the server with an HTTPS connection.\n", + "version_added": "2.4.0", + "type": "boolean", + "example": None, + "default": "False", + }, + "cookie_samesite": { + "description": "Whether the cookie is restricted to a first-party or same-site context.\n", + "version_added": "2.4.0", + "type": "string", + "example": None, + "default": "Lax", + }, "navbar_color": { "description": "Define the color of navigation bar\n", "version_added": "2.2.0",