2022-01-14 08:34:14 +00:00
|
|
|
{{/* Define the configmap */}}
|
|
|
|
{{- define "guacamole-client.configmap" -}}
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: guacamole-client-env
|
|
|
|
data:
|
2022-02-13 10:50:45 +00:00
|
|
|
{{/* GENERAL */}}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.general.EXTENSION_PRIORITY }}
|
|
|
|
EXTENSION_PRIORITY: {{ . | quote }}
|
2022-01-24 09:54:50 +00:00
|
|
|
{{- end }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{/* API */}}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.api.API_SESSION_TIMEOUT }}
|
|
|
|
API_SESSION_TIMEOUT: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{/* TOTP */}}
|
2022-08-23 09:01:47 +00:00
|
|
|
{{- if .Values.totp.TOTP_ENABLED }}
|
|
|
|
TOTP_ENABLED: {{ .Values.totp.TOTP_ENABLED | quote }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.totp.TOTP_ISSUER }}
|
|
|
|
TOTP_ISSUER: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.totp.TOTP_DIGITS }}
|
|
|
|
TOTP_DIGITS: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.totp.TOTP_PERIOD }}
|
|
|
|
TOTP_PERIOD: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.totp.TOTP_MODE }}
|
|
|
|
TOTP_MODE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{/* HEADER */}}
|
2022-08-23 09:01:47 +00:00
|
|
|
{{- if .Values.header.HEADER_ENABLED }}
|
|
|
|
HEADER_ENABLED: {{ .Values.header.HEADER_ENABLED | quote }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.header.HTTP_AUTH_HEADER }}
|
|
|
|
HTTP_AUTH_HEADER: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{/* JSON */}}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.json.JSON_SECRET_KEY }}
|
|
|
|
JSON_SECRET_KEY: {{ . | quote }}
|
|
|
|
{{- with .Values.json.JSON_TRUSTED_NETWORKS }}
|
|
|
|
JSON_TRUSTED_NETWORKS: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{/* DUO */}}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- if and .Values.duo.DUO_API_HOSTNAME .Values.duo.DUO_INTEGRATION_KEY .Values.duo.DUO_SECRET_KEY .Values.duo.DUO_APPLICATION_KEY }}
|
|
|
|
DUO_API_HOSTNAME: {{ .Values.duo.DUO_API_HOSTNAME | quote }}
|
|
|
|
DUO_INTEGRATION_KEY: {{ .Values.duo.DUO_INTEGRATION_KEY | quote }}
|
|
|
|
DUO_SECRET_KEY: {{ .Values.duo.DUO_SECRET_KEY | quote }}
|
|
|
|
DUO_APPLICATION_KEY: {{ .Values.duo.DUO_APPLICATION_KEY | quote }}
|
|
|
|
{{- end }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{/* CAS */}}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- if and .Values.cas.CAS_AUTHORIZATION_ENDPOINT .Values.cas.CAS_REDIRECT_URI }}
|
|
|
|
CAS_AUTHORIZATION_ENDPOINT: {{ .Values.cas.CAS_AUTHORIZATION_ENDPOINT | quote }}
|
|
|
|
CAS_REDIRECT_URI: {{ .Values.cas.CAS_REDIRECT_URI | quote }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.cas.CAS_CLEARPASS_KEY }}
|
|
|
|
CAS_CLEARPASS_KEY: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.cas.CAS_GROUP_ATTRIBUTE }}
|
|
|
|
CAS_GROUP_ATTRIBUTE: {{ . | quote }}
|
|
|
|
{{- with .Values.cas.CAS_GROUP_FORMAT }}
|
|
|
|
CAS_GROUP_FORMAT: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- if eq .Values.cas.CAS_GROUP_FORMAT "ldap" }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.cas.CAS_GROUP_LDAP_BASE_DN }}
|
|
|
|
CAS_GROUP_LDAP_BASE_DN: {{ . | quote }}
|
|
|
|
{{- with .Values.cas.CAS_GROUP_LDAP_ATTRIBUTE }}
|
|
|
|
CAS_GROUP_LDAP_ATTRIBUTE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{/* OpenID */}}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- if and .Values.openid.OPENID_AUTHORIZATION_ENDPOINT .Values.openid.OPENID_JWKS_ENDPOINT .Values.openid.OPENID_ISSUER .Values.openid.OPENID_CLIENT_ID .Values.openid.OPENID_REDIRECT_URI }}
|
|
|
|
OPENID_AUTHORIZATION_ENDPOINT: {{ .Values.openid.OPENID_AUTHORIZATION_ENDPOINT | quote }}
|
|
|
|
OPENID_JWKS_ENDPOINT: {{ .Values.openid.OPENID_JWKS_ENDPOINT | quote }}
|
|
|
|
OPENID_ISSUER: {{ .Values.openid.OPENID_ISSUER | quote }}
|
|
|
|
OPENID_CLIENT_ID: {{ .Values.openid.OPENID_CLIENT_ID | quote }}
|
|
|
|
OPENID_REDIRECT_URI: {{ .Values.openid.OPENID_REDIRECT_URI | quote }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.openid.OPENID_USERNAME_CLAIM_TYPE }}
|
|
|
|
OPENID_USERNAME_CLAIM_TYPE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.openid.OPENID_GROUPS_CLAIM_TYPE }}
|
|
|
|
OPENID_GROUPS_CLAIM_TYPE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.openid.OPENID_MAX_TOKEN_VALIDITY }}
|
|
|
|
OPENID_MAX_TOKEN_VALIDITY: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{/* RADIUS */}}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- if and .Values.radius.RADIUS_SHARED_SECRET .Values.radius.RADIUS_AUTH_PROTOCOL }}
|
|
|
|
RADIUS_SHARED_SECRET: {{ .Values.radius.RADIUS_SHARED_SECRET | quote }}
|
|
|
|
RADIUS_AUTH_PROTOCOL: {{ .Values.radius.RADIUS_AUTH_PROTOCOL | quote }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.radius.RADIUS_HOSTNAME }}
|
|
|
|
RADIUS_HOSTNAME: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.radius.RADIUS_AUTH_PORT }}
|
|
|
|
RADIUS_AUTH_PORT: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.radius.RADIUS_KEY_FILE }}
|
|
|
|
RADIUS_KEY_FILE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.radius.RADIUS_KEY_TYPE }}
|
|
|
|
RADIUS_KEY_TYPE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.radius.RADIUS_KEY_PASSWORD }}
|
|
|
|
RADIUS_KEY_PASSWORD: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.radius.RADIUS_CA_FILE }}
|
|
|
|
RADIUS_CA_FILE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.radius.RADIUS_CA_TYPE }}
|
|
|
|
RADIUS_CA_TYPE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.radius.RADIUS_CA_PASSWORD }}
|
|
|
|
RADIUS_CA_PASSWORD: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-23 09:01:47 +00:00
|
|
|
{{- if .Values.radius.RADIUS_TRUST_ALL }}
|
|
|
|
RADIUS_TRUST_ALL: {{ .Values.radius.RADIUS_TRUST_ALL | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.radius.RADIUS_RETRIES }}
|
|
|
|
RADIUS_RETRIES: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.radius.RADIUS_TIMEOUT }}
|
|
|
|
RADIUS_TIMEOUT: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.radius.RADIUS_EAP_TTLS_INNER_PROTOCOL }}
|
|
|
|
RADIUS_EAP_TTLS_INNER_PROTOCOL: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{/* LDAP */}}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- if and .Values.ldap.LDAP_HOSTNAME .Values.ldap.LDAP_USER_BASE_DN }}
|
|
|
|
LDAP_HOSTNAME: {{ .Values.ldap.LDAP_HOSTNAME | quote }}
|
|
|
|
LDAP_USER_BASE_DN: {{ .Values.ldap.LDAP_USER_BASE_DN | quote }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_PORT }}
|
|
|
|
LDAP_PORT: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_ENCRYPTION_METHOD }}
|
|
|
|
LDAP_ENCRYPTION_METHOD: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_MAX_SEARCH_RESULTS }}
|
|
|
|
LDAP_MAX_SEARCH_RESULTS: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_SEARCH_BIND_DN }}
|
|
|
|
LDAP_SEARCH_BIND_DN: {{ .| quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_USER_ATTRIBUTES }}
|
|
|
|
LDAP_USER_ATTRIBUTES: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_SEARCH_BIND_PASSWORD }}
|
|
|
|
LDAP_SEARCH_BIND_PASSWORD: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_USERNAME_ATTRIBUTE }}
|
|
|
|
LDAP_USERNAME_ATTRIBUTE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_MEMBER_ATTRIBUTE }}
|
|
|
|
LDAP_MEMBER_ATTRIBUTE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_USER_SEARCH_FILTER }}
|
|
|
|
LDAP_USER_SEARCH_FILTER: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_CONFIG_BASE_DN }}
|
|
|
|
LDAP_CONFIG_BASE_DN: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_GROUP_BASE_DN }}
|
|
|
|
LDAP_GROUP_BASE_DN: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_GROUP_SEARCH_FILTER }}
|
|
|
|
LDAP_GROUP_SEARCH_FILTER: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_MEMBER_ATTRIBUTE_TYPE }}
|
|
|
|
LDAP_MEMBER_ATTRIBUTE_TYPE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_GROUP_NAME_ATTRIBUTE }}
|
|
|
|
LDAP_GROUP_NAME_ATTRIBUTE: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_DEREFERENCE_ALIASES }}
|
|
|
|
LDAP_DEREFERENCE_ALIASES: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
2022-08-23 09:01:47 +00:00
|
|
|
{{- if .Values.ldap.LDAP_FOLLOW_REFERRALS }}
|
|
|
|
LDAP_FOLLOW_REFERRALS: {{ .Values.ldap.LDAP_FOLLOW_REFERRALS | quote }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_MAX_REFERRAL_HOPS }}
|
|
|
|
LDAP_MAX_REFERRAL_HOPS: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.ldap.LDAP_OPERATION_TIMEOUT }}
|
|
|
|
LDAP_OPERATION_TIMEOUT: {{ . | quote }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{/* SAML */}}
|
|
|
|
{{- if or .Values.saml.SAML_IDP_METADATA_URL ( and ( .Values.saml.SAML_ENTITY_ID ) ( .Values.saml.SAML_CALLBACK_URL ) ) }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.saml.SAML_IDP_METADATA_URL }}
|
|
|
|
SAML_IDP_METADATA_URL: {{ . | quote }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.saml.SAML_ENTITY_ID }}
|
|
|
|
SAML_ENTITY_ID: {{ . | quote }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.saml.SAML_CALLBACK_URL }}
|
|
|
|
SAML_CALLBACK_URL: {{ . | quote }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.saml.SAML_IDP_URL }}
|
|
|
|
SAML_IDP_URL: {{ . | quote }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{- end }}
|
2022-08-23 09:01:47 +00:00
|
|
|
{{- if .Values.saml.SAML_STRICT }}
|
|
|
|
SAML_STRICT: {{ .Values.saml.SAML_STRICT | quote }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{- end }}
|
2022-08-23 09:01:47 +00:00
|
|
|
{{- if .Values.saml.SAML_DEBUG }}
|
|
|
|
SAML_DEBUG: {{ .Values.saml.SAML_DEBUG | quote }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{- end }}
|
2022-08-23 09:01:47 +00:00
|
|
|
{{- if .Values.saml.SAML_COMPRESS_REQUEST }}
|
|
|
|
SAML_COMPRESS_REQUEST: {{ .Values.saml.SAML_COMPRESS_REQUEST | quote }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{- end }}
|
2022-08-23 09:01:47 +00:00
|
|
|
{{- if .Values.saml.SAML_COMPRESS_RESPONSE }}
|
|
|
|
SAML_COMPRESS_RESPONSE: {{ .alues.saml.SAML_COMPRESS_RESPONSE | quote }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.saml.SAML_GROUP_ATTRIBUTE }}
|
|
|
|
SAML_GROUP_ATTRIBUTE: {{ . | quote }}
|
2022-02-13 10:50:45 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-07-28 13:05:29 +00:00
|
|
|
{{/* PROXY */}}
|
2022-08-23 09:01:47 +00:00
|
|
|
{{- if .Values.proxy.REMOTE_IP_VALVE_ENABLED }}
|
|
|
|
REMOTE_IP_VALVE_ENABLED: {{ .Values.proxy.REMOTE_IP_VALVE_ENABLED | quote }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.proxy.PROXY_BY_HEADER }}
|
|
|
|
PROXY_BY_HEADER: {{ . | quote }}
|
2022-07-28 13:05:29 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.proxy.PROXY_PROTOCOL_HEADER }}
|
|
|
|
PROXY_PROTOCOL_HEADER: {{ . | quote }}
|
2022-07-28 13:05:29 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.proxy.PROXY_PROTOCOL_HEADER }}
|
|
|
|
PROXY_PROTOCOL_HEADER: {{ . | quote }}
|
2022-07-28 13:05:29 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.proxy.PROXY_IP_HEADER }}
|
|
|
|
PROXY_IP_HEADER: {{ . | quote }}
|
2022-07-28 13:05:29 +00:00
|
|
|
{{- end }}
|
2022-08-22 18:07:02 +00:00
|
|
|
{{- with .Values.proxy.PROXY_ALLOWED_IPS_REGEX }}
|
|
|
|
PROXY_ALLOWED_IPS_REGEX: {{ . | quote }}
|
2022-07-28 13:05:29 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2022-01-14 08:34:14 +00:00
|
|
|
{{- end -}}
|