From a1a6231c50858c341cb2b29a3bd6476ab3ac51cc Mon Sep 17 00:00:00 2001 From: tczekajlo Date: Wed, 18 Nov 2020 11:51:08 +0100 Subject: [PATCH 1/2] Disallow indexing - nginx-ingress --- charts/rasa-x/Chart.yaml | 2 +- charts/rasa-x/templates/rasa-x-ingress.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/rasa-x/Chart.yaml b/charts/rasa-x/Chart.yaml index 1c439a05..47e78509 100644 --- a/charts/rasa-x/Chart.yaml +++ b/charts/rasa-x/Chart.yaml @@ -1,7 +1,7 @@ --- apiVersion: v2 -version: "1.7.7" +version: "1.7.8" appVersion: "0.33.0" name: rasa-x diff --git a/charts/rasa-x/templates/rasa-x-ingress.yaml b/charts/rasa-x/templates/rasa-x-ingress.yaml index 7a011385..bb6261d0 100644 --- a/charts/rasa-x/templates/rasa-x-ingress.yaml +++ b/charts/rasa-x/templates/rasa-x-ingress.yaml @@ -25,6 +25,11 @@ metadata: if ($arg_environment = "production") { rewrite ^/api/chat$ /core/webhooks/rasa/webhook last; } + if ($request_uri ~ ^/robots.txt$) { + return 200 "User-agent: *\nDisallow: /\n"; + } + nginx.ingress.kubernetes.io/server-snippet: | + add_header X-Robots-Tag none; {{- with .Values.ingress.annotations }} {{- toYaml . | nindent 4 }} {{- end }} From eba126dcc930504eadf50e52bd103d970cce88f6 Mon Sep 17 00:00:00 2001 From: tczekajlo Date: Wed, 18 Nov 2020 11:53:58 +0100 Subject: [PATCH 2/2] Remove the set-env command --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed227961..f195726d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: run: | curl -sfL https://get.k3s.io | sh - sudo chmod 744 /etc/rancher/k3s/k3s.yaml - echo "::set-env name=KUBECONFIG::/etc/rancher/k3s/k3s.yaml" + echo "KUBECONFIG=/etc/rancher/k3s/k3s.yaml" >> $GITHUB_ENV - name: Install Helm run: | @@ -59,7 +59,7 @@ jobs: - name: Generate credentials run: | USER_PASSWORD=$(openssl rand -base64 32) - echo "::set-env name=INITIAL_USER_PASSWORD::${USER_PASSWORD}" + echo "INITIAL_USER_PASSWORD=${USER_PASSWORD}" >> $GITHUB_ENV - name: Free disk space # tries to make sure we do not run out of disk space, see