Skip to content

Commit

Permalink
fix: handle ssl case with cert maanger. Force ssl pull from domain only
Browse files Browse the repository at this point in the history
  • Loading branch information
moabu committed Oct 20, 2023
1 parent 5c03353 commit 7ce457a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ data:
GLUU_SQL_PASSWORD_FILE: {{ .Values.configmap.cnSqlPasswordFile }}
GLUU_CONFIG_ADAPTER: {{ .Values.global.configAdapterName }}
GLUU_SECRET_ADAPTER: {{ .Values.global.configSecretAdapter }}
GLUU_SSL_CERT_FROM_DOMAIN: {{ .Values.global.sslCertFromDomain | quote }}
# [google_envs] Envs related to using Google
GOOGLE_APPLICATION_CREDENTIALS: {{ .Values.global.cnGoogleApplicationCredentials | quote }}
GOOGLE_PROJECT_ID: {{ .Values.configmap.cnGoogleProjectId | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ spec:
{{ toYaml . | indent 8 }}
{{- end }}
# handle edge case with ALB in a non FQDN setup .Values.global.alb.ingress.enabled
{{- if and (eq .Values.global.isDomainRegistered "false") (.Values.global.alb.ingress.enabled) }}
# removed: if and (eq .Values.global.isDomainRegistered "false") (.Values.global.alb.ingress.enabled)
{{- if eq .Values.global.isDomainRegistered "false"}}
hostAliases:
- ip: {{ .Values.global.lbIp }}
hostnames:
Expand Down Expand Up @@ -104,7 +105,9 @@ spec:
{{- else }}
/app/scripts/entrypoint.sh load
{{- end }}
{{- if eq .Values.global.sslCertFromDomain "true"}}
/usr/bin/python3 /scripts/tls_generator.py
{{- end }}
{{- if .Values.global.istio.enabled }}
curl -X POST http://localhost:15020/quitquitquit
{{- end }}
Expand Down
4 changes: 3 additions & 1 deletion pygluu/kubernetes/templates/helm/gluu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ global:
configAdapterName: kubernetes
# -- The config backend adapter that will hold Gluu secret layer. google|kubernetes
configSecretAdapter: kubernetes
# -- Validate certificate is downloaded from given domain. If set to true (default to false), raise an error if cert is not downloaded. Note that the flag is ignored if mounted SSL cert and key files exist
sslCertFromDomain: false
# -- Base64 encoded service account. The sa must have roles/secretmanager.admin to use Google secrets and roles/spanner.databaseUser to use Spanner.
cnGoogleApplicationCredentials: /etc/gluu/conf/google-credentials.json
oxauth:
Expand Down Expand Up @@ -489,7 +491,7 @@ config:
# -- Image to use for deploying.
repository: gluufederation/config-init
# -- Image tag to use for deploying.
tag: 4.4.2-5
tag: 4.4.2-6
# -- Image Pull Secrets
pullSecrets: [ ]
# -- Configure any additional volumes that need to be attached to the pod
Expand Down

0 comments on commit 7ce457a

Please sign in to comment.