From 0bca2c7e607d30fd757a2a23fb7d07b3ff96d540 Mon Sep 17 00:00:00 2001 From: Thomas Krampl <85170275+thokra-nav@users.noreply.github.com> Date: Wed, 20 Sep 2023 15:00:14 +0200 Subject: [PATCH] The Frontend Pre Shared Key is still used by console-backend (#157) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Roger Bjørnstad --- charts/hookd/Feature.yaml | 5 +++++ charts/hookd/templates/secret.yaml | 1 + charts/hookd/values.yaml | 2 ++ 3 files changed, 8 insertions(+) diff --git a/charts/hookd/Feature.yaml b/charts/hookd/Feature.yaml index 518e0acc..b2bb4f30 100644 --- a/charts/hookd/Feature.yaml +++ b/charts/hookd/Feature.yaml @@ -66,3 +66,8 @@ values: displayName: Ingress URL computed: template: '"{{ subdomain . "deploy" }}"' + frontendPreSharedKey: + displayName: "console-backend pre-shared key" + computed: + template: "{{.Management.hookd_frontend_pre_shared_key | quote}}" + description: "The pre-shared key used to authenticate the console-backend" diff --git a/charts/hookd/templates/secret.yaml b/charts/hookd/templates/secret.yaml index 0376f4fe..dea20ff5 100644 --- a/charts/hookd/templates/secret.yaml +++ b/charts/hookd/templates/secret.yaml @@ -26,3 +26,4 @@ stringData: HOOKD_CONSOLE_URL: "http://teams-backend/query" HOOKD_PROVISION_KEY: "{{ .Values.provisionKey }}" HOOKD_DATABASE_URL: "postgres://{{ .Values.database.user }}@127.0.0.1:5432/{{ .Values.database.name }}?sslmode=disable" + HOOKD_FRONTEND_KEYS: "{{ .Values.frontendPreSharedKey }}" diff --git a/charts/hookd/values.yaml b/charts/hookd/values.yaml index 0ca4fd44..b0c8951c 100644 --- a/charts/hookd/values.yaml +++ b/charts/hookd/values.yaml @@ -42,4 +42,6 @@ image: pullPolicy: IfNotPresent tag: latest +frontendPreSharedKey: # mapped by fasit + imagePullSecrets: []