diff --git a/k8s/helm/commonly/templates/core/backend-deployment.yaml b/k8s/helm/commonly/templates/core/backend-deployment.yaml index cea28aaaf..92713d1c6 100644 --- a/k8s/helm/commonly/templates/core/backend-deployment.yaml +++ b/k8s/helm/commonly/templates/core/backend-deployment.yaml @@ -259,6 +259,12 @@ spec: name: api-keys key: discord-guild-id optional: true + - name: DISCORD_PUBLIC_KEY + valueFrom: + secretKeyRef: + name: api-keys + key: discord-public-key + optional: true # Social login (OAuth) providers — names match what # controllers/oauthController.ts reads. The old GITHUB_CLIENT_ID / diff --git a/k8s/helm/commonly/templates/secrets/api-keys.yaml b/k8s/helm/commonly/templates/secrets/api-keys.yaml index 11082b54c..2573fd670 100644 --- a/k8s/helm/commonly/templates/secrets/api-keys.yaml +++ b/k8s/helm/commonly/templates/secrets/api-keys.yaml @@ -91,6 +91,12 @@ spec: - secretKey: discord-guild-id remoteRef: key: commonly-dev-discord-guild-id + # Discord webhook verification (B2). Create this remote key in Secret + # Manager before deploying the fail-closed ingress; ESO rejects api-keys + # when a referenced remote key is missing. + - secretKey: discord-public-key + remoteRef: + key: commonly-dev-discord-public-key # OAuth Providers - secretKey: google-client-id