Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions airflow-core/src/airflow/cli/commands/config_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ def message(self) -> str | None:
),
ConfigChange(
config=ConfigParameter("webserver", "cookie_samesite"),
renamed_to=ConfigParameter("fab", "cookie_samesite"),
breaking=True,
),
ConfigChange(
config=ConfigParameter("webserver", "audit_view_included_events"),
Expand Down Expand Up @@ -570,6 +572,8 @@ def message(self) -> str | None:
),
ConfigChange(
config=ConfigParameter("webserver", "cookie_secure"),
renamed_to=ConfigParameter("fab", "cookie_secure"),
breaking=True,
was_deprecated=False,
),
ConfigChange(
Expand Down
6 changes: 6 additions & 0 deletions providers/fab/src/airflow/providers/fab/www/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ def create_app(enable_plugins: bool):
flask_app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
flask_app.config["PERMANENT_SESSION_LIFETIME"] = timedelta(minutes=get_session_lifetime_config())

flask_app.config["SESSION_COOKIE_HTTPONLY"] = True
if conf.has_option("fab", "COOKIE_SECURE"):
flask_app.config["SESSION_COOKIE_SECURE"] = conf.getboolean("fab", "COOKIE_SECURE")
if conf.has_option("fab", "COOKIE_SAMESITE"):
flask_app.config["SESSION_COOKIE_SAMESITE"] = conf.get("fab", "COOKIE_SAMESITE")

webserver_config = conf.get_mandatory_value("fab", "config_file")
# Enable customizations in webserver_config.py to be applied via Flask.current_app.
with flask_app.app_context():
Expand Down
2 changes: 1 addition & 1 deletion providers/fab/www-hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1ba327c123e0aa04d01fdcc7259e72b7cd0ff2df607fe95d8aeb524247a2a62e
7c75393001a5280d25bca03d39c13ec8072a12a3628628398379473fa85da21e