Skip to content

Commit

Permalink
chore(cleanup): recaptcha values (#1171)
Browse files Browse the repository at this point in the history
* cleanup value files & adjust local recaptcha secret names according to tf module
  • Loading branch information
deer-wmde authored Sep 19, 2023
1 parent 3fe56d7 commit f9f6332
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 18 deletions.
9 changes: 1 addition & 8 deletions k8s/helmfile/env/local/api.values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,13 @@ app:
smtpPasswordSecretKey: password
recaptcha:
minScore: 0.5
secretSecretName: recaptcha-v3-dev-secrets
secretSecretName: {{ .Values.external.recaptcha3.secretName }}
secretSecretKey: secret_key
# TODO is this needed for local?
gce:
serviceAccountSecret: null
stackdriver:
enabled: false
external:
letsencrypt:
email: [email protected]
recaptcha2:
secretName: recaptcha-v2-secrets
recaptcha3:
secretName: recaptcha-v3-secrets

replicaCount:
web: 1
Expand Down
4 changes: 2 additions & 2 deletions k8s/helmfile/env/local/mediawiki-139.values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ mw:
smtpUserSecretName: null
smtpPasswordSecretName: null
recaptcha:
sitekeySecretName: recaptcha-v2-dev-secrets
sitekeySecretName: {{ .Values.external.recaptcha2.secretName }}
sitekeySecretKey: site_key
secretkeySecretName: recaptcha-v2-dev-secrets
secretkeySecretName: {{ .Values.external.recaptcha2.secretName }}
secretkeySecretKey: secret_key

replicaCount:
Expand Down
2 changes: 1 addition & 1 deletion k8s/helmfile/env/local/ui.values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ image:
tag: sha-9a37f40

ui:
recaptchaSitekeySecretName: recaptcha-v3-dev-secrets
recaptchaSitekeySecretName: {{ .Values.external.recaptcha3.secretName }}
recaptchaSitekeySecretKey: site_key

ingress:
Expand Down
2 changes: 0 additions & 2 deletions k8s/helmfile/env/production/api.values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ app:
smtphost: smtp.eu.mailgun.org
smtpport: 587
recaptcha:
sitekeySecretName: {{ .Values.external.recaptcha3.secretName }}
sitekeySecretKey: site_key
secretSecretName: {{ .Values.external.recaptcha3.secretName }}
secretSecretKey: secret_key
badgehide: true
Expand Down
2 changes: 1 addition & 1 deletion k8s/helmfile/env/staging/api.values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ app:
smtpport: 587
recaptcha:
minScore: 0.5
secretSecretName: recaptcha-v3-secrets
secretSecretName: {{ .Values.external.recaptcha3.secretName }}
secretSecretKey: secret_key

trustedProxy:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "kubernetes_secret" "recaptcha-v3-dev-secrets" {
resource "kubernetes_secret" "recaptcha-v3-secrets" {
for_each = toset(["default", "api-jobs", "adhoc-jobs"])
metadata {
name = "recaptcha-v3-dev-secrets"
name = "recaptcha-v3-secrets"
# default as staging
namespace = each.value
}
Expand All @@ -17,10 +17,10 @@ moved {
to = kubernetes_secret.recaptcha-v3-dev-secrets["default"]
}

resource "kubernetes_secret" "recaptcha-v2-dev-secrets" {
resource "kubernetes_secret" "recaptcha-v2-secrets" {
for_each = toset(["default", "api-jobs", "adhoc-jobs"])
metadata {
name = "recaptcha-v2-dev-secrets"
name = "recaptcha-v2-secrets"
# default as staging
namespace = each.value
}
Expand Down

0 comments on commit f9f6332

Please sign in to comment.