Skip to content

Commit

Permalink
Change auth_backend to auth_backends
Browse files Browse the repository at this point in the history
Following the change in Airflow apache/airflow#21472,
we update this as well
  • Loading branch information
ephraimbuddy committed Feb 17, 2022
1 parent 4b61605 commit fc2bf3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .circleci/bin/test-airflow-image.py
Original file line number Diff line number Diff line change
Expand Up @@ -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} | "
Expand Down
2 changes: 1 addition & 1 deletion main/bullseye/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fc2bf3e

Please sign in to comment.