Add OAuth env vars to API Server deployment (#1500)

* Add oauth vars to the kubernetes api server deployment

* Add example google oauth id and secret to kubernetes secrets
This commit is contained in:
Alexander L 2024-06-09 02:43:36 +02:00 committed by GitHub
parent e1d8b88318
commit 5f2737f9ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 2 deletions

View File

@ -41,6 +41,17 @@ spec:
- containerPort: 8080
# There are some extra values since this is shared between services
# There are no conflicts though, extra env variables are simply ignored
env:
- name: OAUTH_CLIENT_ID
valueFrom:
secretKeyRef:
name: danswer-secrets
key: google_oauth_client_id
- name: OAUTH_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: danswer-secrets
key: google_oauth_client_secret
envFrom:
- configMapRef:
name: env-configmap

View File

@ -7,5 +7,5 @@ type: Opaque
data:
postgres_user: cG9zdGdyZXM= # "postgres" base64 encoded
postgres_password: cGFzc3dvcmQ= # "password" base64 encoded
google_oauth_client_id: # You will need to provide this, use echo -n "your-client-id" | base64
google_oauth_client_secret: # You will need to provide this, use echo -n "your-client-id" | base64
google_oauth_client_id: ZXhhbXBsZS1jbGllbnQtaWQ= # "example-client-id" base64 encoded. You will need to provide this, use echo -n "your-client-id" | base64
google_oauth_client_secret: example_google_oauth_secret # "example-client-secret" base64 encoded. You will need to provide this, use echo -n "your-client-id" | base64