From f1636824047c0d03ce0790ede54e3a12d63dd787 Mon Sep 17 00:00:00 2001 From: Milos Backonja <35807060+milosbackonja@users.noreply.github.com> Date: Tue, 12 Dec 2023 19:33:16 +0100 Subject: [PATCH] fix: Option to disable apisix key auth (#813) Signed-off-by: Milos Backonja --- infrastructure/charts/agent/templates/apisixroute.yaml | 2 +- infrastructure/charts/agent/values.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/infrastructure/charts/agent/templates/apisixroute.yaml b/infrastructure/charts/agent/templates/apisixroute.yaml index 8a389f4013..47f1f5a0b9 100644 --- a/infrastructure/charts/agent/templates/apisixroute.yaml +++ b/infrastructure/charts/agent/templates/apisixroute.yaml @@ -20,7 +20,7 @@ spec: - serviceName: agent-server-tapir-service servicePort: 8085 authentication: - enable: true + enable: {{ .Values.ingress.auth.enable }} type: keyAuth plugins: - name: proxy-rewrite diff --git a/infrastructure/charts/agent/values.yaml b/infrastructure/charts/agent/values.yaml index a32e7562f5..84638ad2b9 100644 --- a/infrastructure/charts/agent/values.yaml +++ b/infrastructure/charts/agent/values.yaml @@ -7,6 +7,8 @@ ingress: enabled: false allow_origins: "" consumers: [] + auth: + enable: true # External Consumers are ones where the secret keys/API tokens # are pulled in using External Secrets [and therefore aren't generated by helm] externalConsumerKeyPrefix: chart-base-key-prefix @@ -28,7 +30,8 @@ server: requests: cpu: 250m memory: 512Mi - additionalEnvVariables: [] + # Additional environment variables to be added to the server container + additionalEnvVariables: {} useVault: true keycloak: enabled: false