From 064d3c5d049869f807283fa2770f5479fa92616e Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 12 Jun 2023 14:22:05 +0200 Subject: [PATCH] fup-reword --- components/hydra-sql/kustomization.yaml | 10 +++------- .../resources/hydra-sql-deployment.yaml | 17 ----------------- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/components/hydra-sql/kustomization.yaml b/components/hydra-sql/kustomization.yaml index 07ae19d..f97b42c 100644 --- a/components/hydra-sql/kustomization.yaml +++ b/components/hydra-sql/kustomization.yaml @@ -15,10 +15,6 @@ configMapGenerator: - HASH_ALGO_LEGACY="sha256, bcrypt" - SECURITY_PATTERN="password,salt,pepper" - DSN_REMOTE_DATABASE="pgsql:host='postgres';port=5432;dbname=lasql" - -secretGenerator: -- name: login-db - literals: - - DB_USER="" - - DB_PASSWORD="" - - PEPPER="" + - DB_USER="makeMeASecret" + - DB_PASSWORD="makeMeASecret" + - PEPPER="MakeMeABigSecret" diff --git a/components/hydra-sql/resources/hydra-sql-deployment.yaml b/components/hydra-sql/resources/hydra-sql-deployment.yaml index 558119c..5d4d356 100644 --- a/components/hydra-sql/resources/hydra-sql-deployment.yaml +++ b/components/hydra-sql/resources/hydra-sql-deployment.yaml @@ -22,23 +22,6 @@ spec: envFrom: - configMapRef: name: hydra-sql-env - - secret - env: - - name: DB_USER - valueFrom: - secretKeyRef: - name: login-db - key: DB_USER - - name: DB_PASSWORD - valueFrom: - secretKeyRef: - name: login-db - key: DB_PASSWORD - - name: PEPPER - valueFrom: - secretKeyRef: - name: login-db - key: PEPPER ports: - containerPort: 80 resources: {}