From 85be1867a690726b4556a58656597a0606ba09dc Mon Sep 17 00:00:00 2001 From: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com> Date: Fri, 7 Jun 2024 14:04:52 -0600 Subject: [PATCH] Add warning to deprecated api docs that access control isn't applied (#40129) --- airflow/config_templates/config.yml | 4 ++-- docs/apache-airflow/deprecated-rest-api-ref.rst | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/airflow/config_templates/config.yml b/airflow/config_templates/config.yml index 1ad8c1b4cbe0b..b1e2881907ce9 100644 --- a/airflow/config_templates/config.yml +++ b/airflow/config_templates/config.yml @@ -1293,8 +1293,8 @@ api: options: enable_experimental_api: description: | - Enables the deprecated experimental API. Please note that these APIs do not have access control. - The authenticated user has full access. + Enables the deprecated experimental API. Please note that these API endpoints do not have + access control. An authenticated user has full access. .. warning:: diff --git a/docs/apache-airflow/deprecated-rest-api-ref.rst b/docs/apache-airflow/deprecated-rest-api-ref.rst index 276175f97f0eb..cb13323885dd3 100644 --- a/docs/apache-airflow/deprecated-rest-api-ref.rst +++ b/docs/apache-airflow/deprecated-rest-api-ref.rst @@ -23,6 +23,11 @@ Deprecated REST API This REST API is deprecated since version 2.0. Please consider using the :doc:`stable REST API `. For more information on migration, see `UPDATING.md `_ +.. warning:: + + Please note that these API endpoints do not have access control. An authenticated user has full access. + + Before Airflow 2.0 this REST API was known as the "experimental" API, but now that the :doc:`stable REST API ` is available, it has been renamed. The endpoints for this API are available at ``/api/experimental/``.