diff --git a/.circleci/bin/test-airflow-image.py b/.circleci/bin/test-airflow-image.py index 8ccb2570..ac1b5361 100644 --- a/.circleci/bin/test-airflow-image.py +++ b/.circleci/bin/test-airflow-image.py @@ -287,9 +287,9 @@ def test_airflow_configs(scheduler, docker_client): assert scheduler.check_output( f"cat {config_file_path} | " - "grep '^auth_backend' | awk '{print $3}'" + "grep '^auth_backends' | awk '{print $3}'" ) == "astronomer.flask_appbuilder.current_user_backend", \ - "[api] auth_backend needs to be set to 'astronomer.flask_appbuilder.current_user_backend' for Platform" + "[api] auth_backends needs to be set to 'astronomer.flask_appbuilder.current_user_backend' for Platform" assert scheduler.check_output( f"cat {config_file_path} | " diff --git a/main/bullseye/Dockerfile b/main/bullseye/Dockerfile index 2f825631..68886729 100644 --- a/main/bullseye/Dockerfile +++ b/main/bullseye/Dockerfile @@ -166,7 +166,7 @@ RUN sed -i \ # We sync permissions in the entrypoint so do not need to run in the Webserver again -e 's/^update_fab_perms =.*/update_fab_perms = False/g' \ # Use Auth Backend defined in Astronomer FAB Security Manager - -e 's/^auth_backend =.*/auth_backend = astronomer.flask_appbuilder.current_user_backend/g' \ + -e 's/^auth_backends =.*/auth_backends = astronomer.flask_appbuilder.current_user_backend/g' \ # The number of seconds to wait before timing out send_task_to_executor or fetch_celery_task_state operations. -e 's/^operation_timeout =.*/operation_timeout = 10.0/g' \ /usr/local/lib/python${PYTHON_MAJOR_MINOR_VERSION}/site-packages/airflow/config_templates/default_airflow.cfg