From 5ff51b67bf7cee89583a058879de46ef97e378bc Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Wed, 31 Dec 2025 02:19:23 +0200 Subject: [PATCH] Try to fix google auth --- charts/invy-chart/templates/backend-deployment.yaml | 10 ++++++++++ charts/invy-chart/templates/secret.yaml | 2 ++ charts/invy-chart/values.yaml | 6 ++++++ manifests/invy/values.yaml | 7 +++++++ 4 files changed, 25 insertions(+) diff --git a/charts/invy-chart/templates/backend-deployment.yaml b/charts/invy-chart/templates/backend-deployment.yaml index 95066e4..273ddbb 100644 --- a/charts/invy-chart/templates/backend-deployment.yaml +++ b/charts/invy-chart/templates/backend-deployment.yaml @@ -48,6 +48,16 @@ spec: secretKeyRef: name: {{ include "invy.fullname" . }}-secrets key: database-url + - name: GOOGLE_CLIENT_ID + valueFrom: + secretKeyRef: + name: {{ include "invy.fullname" . }}-secrets + key: google-client-id + - name: GOOGLE_CLIENT_SECRET + valueFrom: + secretKeyRef: + name: {{ include "invy.fullname" . }}-secrets + key: google-client-secret {{- range $key, $value := .Values.backend.env }} - name: {{ $key }} value: {{ $value | quote }} diff --git a/charts/invy-chart/templates/secret.yaml b/charts/invy-chart/templates/secret.yaml index 89776ef..8ed8519 100644 --- a/charts/invy-chart/templates/secret.yaml +++ b/charts/invy-chart/templates/secret.yaml @@ -10,3 +10,5 @@ stringData: postgres-password: {{ .Values.postgres.password | quote }} postgres-database: {{ .Values.postgres.database | quote }} database-url: "postgresql://{{ .Values.postgres.user }}:{{ .Values.postgres.password }}@{{ include "invy.fullname" . }}-db:{{ .Values.postgres.port }}/{{ .Values.postgres.database }}" + google-client-id: {{ .Values.backend.googleClientId | quote }} + google-client-secret: {{ .Values.backend.googleClientSecret | quote }} diff --git a/charts/invy-chart/values.yaml b/charts/invy-chart/values.yaml index ce54c91..f131f95 100644 --- a/charts/invy-chart/values.yaml +++ b/charts/invy-chart/values.yaml @@ -26,6 +26,12 @@ backend: env: PYTHONUNBUFFERED: "1" + GOOGLE_REDIRECT_URI: "https://api-invy.dvirlabs.com/auth/google/callback" + FRONTEND_URL: "https://invy.dvirlabs.com" + + # Google OAuth credentials (set these values!) + googleClientId: "YOUR_GOOGLE_CLIENT_ID" + googleClientSecret: "YOUR_GOOGLE_CLIENT_SECRET" ingress: enabled: true diff --git a/manifests/invy/values.yaml b/manifests/invy/values.yaml index 4b2e032..db81529 100644 --- a/manifests/invy/values.yaml +++ b/manifests/invy/values.yaml @@ -22,6 +22,13 @@ backend: memory: 512Mi env: PYTHONUNBUFFERED: "1" + GOOGLE_REDIRECT_URI: "https://api-invy.dvirlabs.com/auth/google/callback" + FRONTEND_URL: "https://invy.dvirlabs.com" + + # Google OAuth credentials + googleClientId: "143092846986-v9s70im3ilpai78n89q38qpikernp2f8.apps.googleusercontent.com" + googleClientSecret: "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" + ingress: enabled: true className: "traefik"