Skip to content

Commit

Permalink
Airflow basic_auth
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri committed Jun 28, 2024
1 parent 9a5a411 commit 38de69b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,7 @@ jobs:
--network=web \
--env AIRFLOW__DATABASE__SQL_ALCHEMY_CONN="${{ secrets.SQL_ALCHEMY_CONN }}" \
--env AIRFLOW__CORE__FERNET_KEY="${{ secrets.FERNET_KEY }}" \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_HEADERS="content-type, origin, authorization, accept" \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_METHODS="GET, POST, PATCH, OPTIONS, DELETE" \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_ORIGINS="https://api.test.profcomff.com" \
--env AIRFLOW__API__AUTH_BACKENDS="auth_lib.airflow.auth_api,airflow.api.auth.backend.session" \
--env AIRFLOW__WEBSERVER__ENABLE_PROXY_FIX="True" \
--env AIRFLOW__WEBSERVER__ENABLE_SWAGGER_UI="False" \
--env AIRFLOW__WEBSERVER__X_FRAME_ENABLED="True" \
--env AIRFLOW__WEBSERVER__WARN_DEPLOYMENT_EXPOSURE="False" \
--env AUTH_URL="https://api.test.profcomff.com/auth/" \
--env USERDATA_URL="https://api.test.profcomff.com/userdata/" \
--name ${{ env.CONTAINER_NAME }} \
Expand Down Expand Up @@ -130,14 +123,7 @@ jobs:
--network=web \
--env AIRFLOW__DATABASE__SQL_ALCHEMY_CONN="${{ secrets.SQL_ALCHEMY_CONN }}" \
--env AIRFLOW__CORE__FERNET_KEY="${{ secrets.FERNET_KEY }}" \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_HEADERS="content-type, origin, authorization, accept" \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_METHODS="GET, POST, PATCH, OPTIONS, DELETE" \
--env AIRFLOW__API__ACCESS_CONTROL_ALLOW_ORIGINS="https://api.profcomff.com" \
--env AIRFLOW__API__AUTH_BACKENDS="auth_lib.airflow.auth_api,airflow.api.auth.backend.session" \
--env AIRFLOW__WEBSERVER__ENABLE_PROXY_FIX="True" \
--env AIRFLOW__WEBSERVER__ENABLE_SWAGGER_UI="False" \
--env AIRFLOW__WEBSERVER__X_FRAME_ENABLED="True" \
--env AIRFLOW__WEBSERVER__WARN_DEPLOYMENT_EXPOSURE="False" \
--env AUTH_URL="https://api.profcomff.com/auth/" \
--env USERDATA_URL="https://api.profcomff.com/userdata/" \
--name ${{ env.CONTAINER_NAME }} \
Expand Down
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ ENV AIRFLOW__CORE__LOAD_EXAMPLES=false
ENV AIRFLOW__CORE__TEST_CONNECTION=Enabled
ENV AIRFLOW__DATABASE__LOAD_DEFAULT_CONNECTIONS=false
ENV AIRFLOW__WEBSERVER__WARN_DEPLOYMENT_EXPOSURE=false
ENV AIRFLOW__API__ACCESS_CONTROL_ALLOW_HEADERS=content-type,origin,authorization,accept
ENV AIRFLOW__API__ACCESS_CONTROL_ALLOW_METHODS=GET,POST,PATCH,OPTIONS,DELETE
ENV AIRFLOW__API__AUTH_BACKENDS=auth_lib.airflow.auth_api,airflow.api.auth.backend.basic_auth,airflow.api.auth.backend.session
ENV AIRFLOW__WEBSERVER__ENABLE_PROXY_FIX=true
ENV AIRFLOW__WEBSERVER__ENABLE_SWAGGER_UI=false
ENV AIRFLOW__WEBSERVER__X_FRAME_ENABLED=true

# Linux block
COPY requirements.txt .
Expand Down

0 comments on commit 38de69b

Please sign in to comment.