This is an automated email from the ASF dual-hosted git repository.

ash pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new be6ed86  Fixed failing Kubernetes tests after deny_all for 
experimental API (#9647)
be6ed86 is described below

commit be6ed86ccd6e5921563be39877d93fb91713bbb9
Author: Jarek Potiuk <jarek.pot...@polidea.com>
AuthorDate: Fri Jul 3 22:28:43 2020 +0200

    Fixed failing Kubernetes tests after deny_all for experimental API (#9647)
    
    The tests were broken by #9611
---
 chart/templates/configmap.yaml | 3 +++
 chart/values.yaml              | 4 ++++
 scripts/ci/libraries/_kind.sh  | 3 ++-
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/chart/templates/configmap.yaml b/chart/templates/configmap.yaml
index 9a0c000..86affe8 100644
--- a/chart/templates/configmap.yaml
+++ b/chart/templates/configmap.yaml
@@ -42,6 +42,9 @@ data:
     remote_logging = True
 {{- end }}
 
+    [api]
+    auth_backend = {{ .Values.api.authBackend }}
+
     [logging]
     logging_level = DEBUG
     [webserver]
diff --git a/chart/values.yaml b/chart/values.yaml
index 1918419..dc13064 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -434,3 +434,7 @@ postgresql:
   enabled: true
   postgresqlPassword: postgres
   postgresqlUsername: postgres
+
+# Authentication backend used for the experimental API
+api:
+  authBackend: airflow.api.auth.backend.deny_all
diff --git a/scripts/ci/libraries/_kind.sh b/scripts/ci/libraries/_kind.sh
index 4f5ebe5..7b45b3a 100644
--- a/scripts/ci/libraries/_kind.sh
+++ b/scripts/ci/libraries/_kind.sh
@@ -294,7 +294,8 @@ function deploy_airflow_with_helm() {
         --set "defaultAirflowRepository=${DOCKERHUB_USER}/${DOCKERHUB_REPO}" \
         --set "images.airflow.repository=${DOCKERHUB_USER}/${DOCKERHUB_REPO}" \
         --set "images.airflow.tag=${AIRFLOW_PROD_BASE_TAG}" -v 1 \
-        --set "defaultAirflowTag=${AIRFLOW_PROD_BASE_TAG}" -v 1
+        --set "defaultAirflowTag=${AIRFLOW_PROD_BASE_TAG}" -v 1 \
+        --set "api.authBackend=airflow.api.auth.backend.default"
     echo
     popd || exit 1
 }

Reply via email to