Commit new App releases for TrueCharts

Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
TrueCharts-Bot 2022-01-14 08:39:46 +00:00
parent 644e37c9e4
commit 40cf954bbf
16 changed files with 4171 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# Changelog<br>
<a name="guacamole-client-0.0.1"></a>
### guacamole-client-0.0.1 (2022-01-14)
#### Feat
* Add guacamole-client ([#1696](https://github.com/truecharts/apps/issues/1696))

View File

@ -0,0 +1,8 @@
# Configuration Options
##### Connecting to other apps
If you need to connect this App to other Apps on TrueNAS SCALE, please refer to our "Linking Apps Internally" quick-start guide:
https://truecharts.org/manual/Quick-Start%20Guides/14-linking-apps/
##### Available config options
In the future this page is going to contain an automated list of options available in the installation/edit UI.

View File

@ -0,0 +1,9 @@
dependencies:
- name: common
repository: https://truecharts.org
version: 8.13.0
- name: postgresql
repository: https://truecharts.org/
version: 6.0.49
digest: sha256:24fc5f3fc25204765db5bb393a58d69caac9c342f538a0586a8f8b5b0a4bc60c
generated: "2022-01-14T08:35:51.317472737Z"

View File

@ -0,0 +1,33 @@
apiVersion: v2
appVersion: "1.4.0"
dependencies:
- name: common
repository: https://truecharts.org
version: 8.13.0
- condition: postgresql.enabled
name: postgresql
repository: https://truecharts.org/
version: 6.0.49
description: Apache Guacamole is a clientless remote desktop gateway.
home: https://github.com/truecharts/apps/tree/master/charts/stable/guacamole-client
icon: https://truecharts.org/_static/img/appicons/guacamole-client-icon.png
keywords:
- guacamole
- remote
kubeVersion: '>=1.16.0-0'
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: guacamole-client
sources:
- https://github.com/apache/guacamole-client
- https://hub.docker.com/r/guacamole/guacamole
- http://guacamole.incubator.apache.org/doc/gug/introduction.html
type: application
version: 0.0.1
annotations:
truecharts.org/catagories: |
- utilities
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U

View File

@ -0,0 +1,40 @@
# Introduction
Apache Guacamole is a clientless remote desktop gateway.
TrueCharts are designed to be installed as TrueNAS SCALE app only. We can not guarantee this charts works as a stand-alone helm installation.
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/apps/issues/new/choose)**
## Source Code
* <https://github.com/apache/guacamole-client>
* <https://hub.docker.com/r/guacamole/guacamole>
* <http://guacamole.incubator.apache.org/doc/gug/introduction.html>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://truecharts.org/ | postgresql | 6.0.49 |
| https://truecharts.org | common | 8.13.0 |
## Installing the Chart
To install this App on TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/manual/Quick-Start%20Guides/03-Installing-an-App/).
## Uninstalling the Chart
To remove this App from TrueNAS SCALE check our [Quick-Start Guide](https://truecharts.org/manual/Quick-Start%20Guides/07-Deleting-an-App/).
## Support
- Please check our [quick-start guides](https://truecharts.org/manual/Quick-Start%20Guides/01-Open-Apps/) first.
- See the [Wiki](https://truecharts.org)
- Check our [Discord](https://discord.gg/tVsPTHWTtr)
- Open a [issue](https://github.com/truecharts/apps/issues/new/choose)
---
All Rights Reserved - The TrueCharts Project

View File

@ -0,0 +1,3 @@
Apache Guacamole is a clientless remote desktop gateway.
This App is supplied by TrueCharts, for more information please visit https://truecharts.org

View File

@ -0,0 +1,96 @@
# Default Helm-Values
TrueCharts is primarily build to supply TrueNAS SCALE Apps.
However, we also supply all Apps as standard Helm-Charts. In this document we aim to document the default values in our values.yaml file.
Most of our Apps also consume our "common" Helm Chart.
If this is the case, this means that all values.yaml values are set to the common chart values.yaml by default. This values.yaml file will only contain values that deviate from the common chart.
You will, however, be able to use all values referenced in the common chart here, besides the values listed in this document.
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| api | object | `{}` | |
| cas | object | `{}` | |
| duo | object | `{}` | |
| env.GUACD_HOSTNAME | string | `"localhost"` | |
| env.GUACD_PORT | int | `4822` | |
| env.POSTGRES_DATABASE | string | `"{{ .Values.postgresql.postgresqlDatabase }}"` | |
| env.POSTGRES_PORT | int | `5432` | |
| env.POSTGRES_USER | string | `"{{ .Values.postgresql.postgresqlUsername }}"` | |
| envValueFrom.POSTGRES_HOSTNAME.secretKeyRef.key | string | `"plainhost"` | |
| envValueFrom.POSTGRES_HOSTNAME.secretKeyRef.name | string | `"dbcreds"` | |
| envValueFrom.POSTGRES_PASSWORD.secretKeyRef.key | string | `"postgresql-password"` | |
| envValueFrom.POSTGRES_PASSWORD.secretKeyRef.name | string | `"dbcreds"` | |
| header.HEADER_ENABLED | bool | `false` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"tccr.io/truecharts/guacamole-client"` | |
| image.tag | string | `"v1.4.0@sha256:43f7b0575173f509b5215a89170dfea80ea07f0b2bfed405882a4bc7ec9dfa52"` | |
| initContainers.1-creat-initdb-file.args[0] | string | `"echo \"Creating initdb.sql file...\"; /opt/guacamole/bin/initdb.sh --postgres > /initdbdata/initdb.sql; if [ -e /initdbdata/initdb.sql ]; then\n echo \"Init file created successfully!\";\n exit 0;\nelse\n echo \"Init file failed to create.\";\n exit 1;\nfi;\n"` | |
| initContainers.1-creat-initdb-file.command[0] | string | `"/bin/sh"` | |
| initContainers.1-creat-initdb-file.command[1] | string | `"-c"` | |
| initContainers.1-creat-initdb-file.image | string | `"{{ .Values.image.repository }}:{{ .Values.image.tag }}"` | |
| initContainers.1-creat-initdb-file.volumeMounts[0].mountPath | string | `"/initdbdata"` | |
| initContainers.1-creat-initdb-file.volumeMounts[0].name | string | `"initdbdata"` | |
| initContainers.2-initdb.args[0] | string | `"echo \"Waiting for DB to be ready...\"; DBREADY=0; for i in {1..10}; do pg_isready -t 5 -h $POSTGRES_HOSTNAME -d $POSTGRES_DATABASE -U $POSTGRES_USER -p $POSTGRES_PORT;\n if [ $? -eq 0 ];\n then echo \"DB is ready!\";\n DBREADY=1;\n break;\n else echo \"DB not ready yet.\";\n fi;\n echo \"Waiting...\";\n sleep 5;\ndone; if [ $DBREADY -eq 1 ]; then echo \"Initializing DB's schema...\";\n psql -h $POSTGRES_HOSTNAME -d $POSTGRES_DATABASE -U $POSTGRES_USER -p $POSTGRES_PORT -a -w -f /initdbdata/initdb.sql;\n if [ $? -eq 0 ];\n then echo \"DB's schema initialized successfully!\";\n exit 0;\n else echo \"DB's schema failed to initialize.\";\n exit 1;\n fi;\nelse echo \"DB failed to start.\"; fi;\n"` | |
| initContainers.2-initdb.command[0] | string | `"/bin/sh"` | |
| initContainers.2-initdb.command[1] | string | `"-c"` | |
| initContainers.2-initdb.env[0].name | string | `"POSTGRES_DATABASE"` | |
| initContainers.2-initdb.env[0].value | string | `"{{ .Values.postgresql.postgresqlDatabase }}"` | |
| initContainers.2-initdb.env[1].name | string | `"POSTGRES_USER"` | |
| initContainers.2-initdb.env[1].value | string | `"{{ .Values.postgresql.postgresqlUsername }}"` | |
| initContainers.2-initdb.env[2].name | string | `"POSTGRES_PORT"` | |
| initContainers.2-initdb.env[2].value | string | `"5432"` | |
| initContainers.2-initdb.env[3].name | string | `"POSTGRES_HOSTNAME"` | |
| initContainers.2-initdb.env[3].valueFrom.secretKeyRef.key | string | `"plainhost"` | |
| initContainers.2-initdb.env[3].valueFrom.secretKeyRef.name | string | `"dbcreds"` | |
| initContainers.2-initdb.env[4].name | string | `"PGPASSWORD"` | |
| initContainers.2-initdb.env[4].valueFrom.secretKeyRef.key | string | `"postgresql-password"` | |
| initContainers.2-initdb.env[4].valueFrom.secretKeyRef.name | string | `"dbcreds"` | |
| initContainers.2-initdb.image | string | `"{{ .Values.postgresqlImage.repository }}:{{ .Values.postgresqlImage.tag }}"` | |
| initContainers.2-initdb.volumeMounts[0].mountPath | string | `"/initdbdata"` | |
| initContainers.2-initdb.volumeMounts[0].name | string | `"initdbdata"` | |
| initContainers.3-temp-hack.args[0] | string | `"echo \"Checing postgresql driver version...\"; if [ -e /opt/guacamole/postgresql/postgresql-42.2.24.jre7.jar ];\n then echo \"Version found is correct.\";\n exit 0;\n else echo \"Old version found. Will try to download a known-to-work version.\";\n echo \"Downloading (postgresql-42.2.24.jre7.jar)...\";\n curl -L \"https://jdbc.postgresql.org/download/postgresql-42.2.24.jre7.jar\" > \"/opt/guacamole/postgresql-hack/postgresql-42.2.24.jre7.jar\";\n if [ -e /opt/guacamole/postgresql-hack/postgresql-42.2.24.jre7.jar ];\n then echo \"Downloaded successfully!\";\n cp -r /opt/guacamole/postgresql/* /opt/guacamole/postgresql-hack/;\n if [ -e /opt/guacamole/postgresql-hack/postgresql-9.4-1201.jdbc41.jar ];\n then echo \"Removing old version... (postgresql-9.4-1201.jdbc41.jar)\";\n rm \"/opt/guacamole/postgresql-hack/postgresql-9.4-1201.jdbc41.jar\";\n if [ $? -eq 0 ];\n then echo \"Removed successfully!\";\n else \"Failed to remove.\";\n exit 1;\n fi;\n fi;\n else echo \"Failed to download.\";\n exit 1;\n fi;\nfi;\n"` | |
| initContainers.3-temp-hack.command[0] | string | `"/bin/sh"` | |
| initContainers.3-temp-hack.command[1] | string | `"-c"` | |
| initContainers.3-temp-hack.image | string | `"{{ .Values.image.repository }}:{{ .Values.image.tag }}"` | |
| initContainers.3-temp-hack.securityContext.runAsGroup | int | `1001` | |
| initContainers.3-temp-hack.securityContext.runAsUser | int | `1001` | |
| initContainers.3-temp-hack.volumeMounts[0].mountPath | string | `"/opt/guacamole/postgresql-hack"` | |
| initContainers.3-temp-hack.volumeMounts[0].name | string | `"temphack"` | |
| initContainers.4-temp-hack.args[0] | string | `"echo \"Copying postgres driver into the final destination.\"; cp -r /opt/guacamole/postgresql-hack/* /opt/guacamole/postgresql/; if [ -e /opt/guacamole/postgresql/postgresql-42.2.24.jre7.jar ];\n then echo \"Driver copied successfully!\";\n else echo \"Failed to copy the driver\";\nfi;\n"` | |
| initContainers.4-temp-hack.command[0] | string | `"/bin/sh"` | |
| initContainers.4-temp-hack.command[1] | string | `"-c"` | |
| initContainers.4-temp-hack.image | string | `"{{ .Values.image.repository }}:{{ .Values.image.tag }}"` | |
| initContainers.4-temp-hack.securityContext.runAsGroup | int | `1001` | |
| initContainers.4-temp-hack.securityContext.runAsUser | int | `1001` | |
| initContainers.4-temp-hack.volumeMounts[0].mountPath | string | `"/opt/guacamole/postgresql-hack"` | |
| initContainers.4-temp-hack.volumeMounts[0].name | string | `"temphack"` | |
| initContainers.4-temp-hack.volumeMounts[1].mountPath | string | `"/opt/guacamole/postgresql"` | |
| initContainers.4-temp-hack.volumeMounts[1].name | string | `"temphackalso"` | |
| json | object | `{}` | |
| ldap | object | `{}` | |
| openid | object | `{}` | |
| persistence.initdbdata.enabled | bool | `true` | |
| persistence.initdbdata.mountPath | string | `"/initdbdata"` | |
| persistence.temphack.enabled | bool | `true` | |
| persistence.temphack.mountPath | string | `"/opt/guacamole/postgresql-hack"` | |
| persistence.temphackalso.enabled | bool | `true` | |
| persistence.temphackalso.mountPath | string | `"/opt/guacamole/postgresql"` | |
| podSecurityContext.runAsGroup | int | `1001` | |
| podSecurityContext.runAsUser | int | `1001` | |
| postgresql.enabled | bool | `true` | |
| postgresql.existingSecret | string | `"dbcreds"` | |
| postgresql.postgresqlDatabase | string | `"guacamole"` | |
| postgresql.postgresqlUsername | string | `"guacamole"` | |
| probes.liveness.path | string | `"/guacamole"` | |
| probes.readiness.path | string | `"/guacamole"` | |
| probes.startup.path | string | `"/guacamole"` | |
| radius | object | `{}` | |
| securityContext.readOnlyRootFilesystem | bool | `false` | |
| service.main.ports.main.port | int | `10080` | |
| service.main.ports.main.targetPort | int | `8080` | |
| totp.TOTP_ENABLED | bool | `false` | |
All Rights Reserved - The TrueCharts Project

View File

@ -0,0 +1,269 @@
image:
repository: tccr.io/truecharts/guacamole-client
pullPolicy: IfNotPresent
tag: v1.4.0@sha256:43f7b0575173f509b5215a89170dfea80ea07f0b2bfed405882a4bc7ec9dfa52
podSecurityContext:
runAsUser: 1001
runAsGroup: 1001
securityContext:
readOnlyRootFilesystem: false
service:
main:
ports:
main:
port: 10080
targetPort: 8080
env:
POSTGRES_DATABASE: "{{ .Values.postgresql.postgresqlDatabase }}"
POSTGRES_USER: "{{ .Values.postgresql.postgresqlUsername }}"
POSTGRES_PORT: 5432
GUACD_HOSTNAME: "localhost"
GUACD_PORT: 4822
totp:
TOTP_ENABLED: false
# TOTP_ISSUER: "Apache Guacamole"
# TOTP_DIGITS: "6"
# TOTP_PERIOD: "30"
# TOTP_MODE: "sha1"
header:
HEADER_ENABLED: false
# HTTP_AUTH_HEADER: "REMOTE_USER"
api: {}
# API_SESSION_TIMEOUT: "60"
json: {}
# JSON_SECRET_KEY: "random32charkey"
# JSON_TRUSTED_NETWORKS: "127.0.0.0/8, 10.0.0.0/8"
duo: {}
# DUO_API_HOSTNAME: "api-XXXXXXXX.duosecurity.com"
# DUO_INTEGRATION_KEY: "exactly20charkey"
# DUO_SECRET_KEY: "exactly40charkey"
# DUO_APPLICATION_KEY: "atleast40charkey"
cas: {}
# CAS_AUTHORIZATION_ENDPOINT: ""
# CAS_REDIRECT_URI: ""
# CAS_CLEARPASS_KEY: ""
# CAS_GROUP_ATTRIBUTE: ""
# CAS_GROUP_FORMAT: "plain"
# CAS_GROUP_LDAP_BASE_DN: ""
# CAS_GROUP_LDAP_ATTRIBUTE: ""
openid: {}
# OPENID_AUTHORIZATION_ENDPOINT: ""
# OPENID_JWKS_ENDPOINT: ""
# OPENID_ISSUER: ""
# OPENID_CLIENT_ID: ""
# OPENID_REDIRECT_URI: ""
# OPENID_USERNAME_CLAIM_TYPE: "email"
# OPENID_GROUPS_CLAIM_TYPE: "groups"
# OPENID_MAX_TOKEN_VALIDITY: "300"
radius: {}
# RADIUS_HOSTNAME: "localhost"
# RADIUS_AUTH_PORT: "1812"
# RADIUS_SHARED_SECRET: ""
# RADIUS_AUTH_PROTOCOL: "eap-tls"
# RADIUS_KEY_FILE: ""
# RADIUS_KEY_TYPE: "pkcs12"
# RADIUS_KEY_PASSWORD: ""
# RADIUS_CA_FILE: ""
# RADIUS_CA_TYPE: "pem"
# RADIUS_CA_PASSWORD: ""
# RADIUS_TRUST_ALL: "false"
# RADIUS_RETRIES: "5"
# RADIUS_TIMEOUT: "60"
# RADIUS_EAP_TTLS_INNER_PROTOCOL: "eap-tls"
ldap: {}
# LDAP_HOSTNAME: "localhost"
# LDAP_USER_BASE_DN: ""
# LDAP_PORT: "389"
# LDAP_ENCRYPTION_METHOD: "none"
# LDAP_MAX_SEARCH_RESULTS: "1000"
# LDAP_SEARCH_BIND_DN: ""
# LDAP_USER_ATTRIBUTES: ""
# LDAP_SEARCH_BIND_PASSWORD: ""
# LDAP_USERNAME_ATTRIBUTE: ""
# LDAP_MEMBER_ATTRIBUTE: ""
# LDAP_USER_SEARCH_FILTER: "(objectClass=*)"
# LDAP_CONFIG_BASE_DN: ""
# LDAP_GROUP_BASE_DN: ""
# LDAP_GROUP_SEARCH_FILTER: "(objectClass=*)"
# LDAP_MEMBER_ATTRIBUTE_TYPE: "dn"
# LDAP_GROUP_NAME_ATTRIBUTE: "cn"
# LDAP_DEREFERENCE_ALIASES: "never"
# LDAP_FOLLOW_REFERRALS: "false"
# LDAP_MAX_REFERRAL_HOPS: "5"
# LDAP_OPERATION_TIMEOUT: "30"
postgresql:
enabled: true
existingSecret: "dbcreds"
postgresqlUsername: guacamole
postgresqlDatabase: guacamole
envValueFrom:
POSTGRES_HOSTNAME:
secretKeyRef:
name: dbcreds
key: plainhost
POSTGRES_PASSWORD:
secretKeyRef:
name: dbcreds
key: postgresql-password
probes:
liveness:
path: "/guacamole"
readiness:
path: "/guacamole"
startup:
path: "/guacamole"
persistence:
initdbdata:
enabled: true
mountPath: "/initdbdata"
# Both temphack and temphackalso will be removed on the next image release
temphack:
enabled: true
mountPath: "/opt/guacamole/postgresql-hack"
temphackalso:
enabled: true
mountPath: "/opt/guacamole/postgresql"
initContainers:
1-creat-initdb-file:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
volumeMounts:
- name: initdbdata
mountPath: "/initdbdata"
command: ["/bin/sh", "-c"]
args:
- >
echo "Creating initdb.sql file...";
/opt/guacamole/bin/initdb.sh --postgres > /initdbdata/initdb.sql;
if [ -e /initdbdata/initdb.sql ];
then
echo "Init file created successfully!";
exit 0;
else
echo "Init file failed to create.";
exit 1;
fi;
2-initdb:
image: "{{ .Values.postgresqlImage.repository }}:{{ .Values.postgresqlImage.tag }}"
env:
- name: POSTGRES_DATABASE
value: "{{ .Values.postgresql.postgresqlDatabase }}"
- name: POSTGRES_USER
value: "{{ .Values.postgresql.postgresqlUsername }}"
- name: POSTGRES_PORT
value: "5432"
- name: POSTGRES_HOSTNAME
valueFrom:
secretKeyRef:
name: dbcreds
key: plainhost
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: dbcreds
key: postgresql-password
volumeMounts:
- name: initdbdata
mountPath: "/initdbdata"
command: ["/bin/sh", "-c"]
args:
- >
echo "Waiting for DB to be ready...";
DBREADY=0;
for i in {1..10};
do pg_isready -t 5 -h $POSTGRES_HOSTNAME -d $POSTGRES_DATABASE -U $POSTGRES_USER -p $POSTGRES_PORT;
if [ $? -eq 0 ];
then echo "DB is ready!";
DBREADY=1;
break;
else echo "DB not ready yet.";
fi;
echo "Waiting...";
sleep 5;
done;
if [ $DBREADY -eq 1 ];
then echo "Initializing DB's schema...";
psql -h $POSTGRES_HOSTNAME -d $POSTGRES_DATABASE -U $POSTGRES_USER -p $POSTGRES_PORT -a -w -f /initdbdata/initdb.sql;
if [ $? -eq 0 ];
then echo "DB's schema initialized successfully!";
exit 0;
else echo "DB's schema failed to initialize.";
exit 1;
fi;
else echo "DB failed to start.";
fi;
# Until they release an image with the updated driver, we need to manually replace it.
# https://issues.apache.org/jira/browse/GUACAMOLE-1433
# https://github.com/apache/guacamole-client/pull/655
# Both 3-temp-hach and 4-temp-hack will be removed on the next image release
3-temp-hack:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
securityContext:
runAsUser: 1001
runAsGroup: 1001
volumeMounts:
- name: temphack
mountPath: "/opt/guacamole/postgresql-hack"
command: ["/bin/sh", "-c"]
args:
- >
echo "Checing postgresql driver version...";
if [ -e /opt/guacamole/postgresql/postgresql-42.2.24.jre7.jar ];
then echo "Version found is correct.";
exit 0;
else echo "Old version found. Will try to download a known-to-work version.";
echo "Downloading (postgresql-42.2.24.jre7.jar)...";
curl -L "https://jdbc.postgresql.org/download/postgresql-42.2.24.jre7.jar" > "/opt/guacamole/postgresql-hack/postgresql-42.2.24.jre7.jar";
if [ -e /opt/guacamole/postgresql-hack/postgresql-42.2.24.jre7.jar ];
then echo "Downloaded successfully!";
cp -r /opt/guacamole/postgresql/* /opt/guacamole/postgresql-hack/;
if [ -e /opt/guacamole/postgresql-hack/postgresql-9.4-1201.jdbc41.jar ];
then echo "Removing old version... (postgresql-9.4-1201.jdbc41.jar)";
rm "/opt/guacamole/postgresql-hack/postgresql-9.4-1201.jdbc41.jar";
if [ $? -eq 0 ];
then echo "Removed successfully!";
else "Failed to remove.";
exit 1;
fi;
fi;
else echo "Failed to download.";
exit 1;
fi;
fi;
4-temp-hack:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
securityContext:
runAsUser: 1001
runAsGroup: 1001
volumeMounts:
- name: temphack
mountPath: "/opt/guacamole/postgresql-hack"
- name: temphackalso
mountPath: "/opt/guacamole/postgresql"
command: ["/bin/sh", "-c"]
args:
- >
echo "Copying postgres driver into the final destination.";
cp -r /opt/guacamole/postgresql-hack/* /opt/guacamole/postgresql/;
if [ -e /opt/guacamole/postgresql/postgresql-42.2.24.jre7.jar ];
then echo "Driver copied successfully!";
else echo "Failed to copy the driver";
fi;

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,189 @@
{{/* Define the configmap */}}
{{- define "guacamole-client.configmap" -}}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: guacamole-client-env
data:
{{/* API */}}
{{- if .Values.api.API_SESSION_TIMEOUT }}
API_SESSION_TIMEOUT: {{ .Values.api.API_SESSION_TIMEOUT | quote }}
{{- end }}
{{/* TOTP */}}
{{- if eq .Values.totp.TOTP_ENABLED true }}
TOTP_ENABLED: {{ .Values.totp.TOTP_ENABLED | quote }}
{{- if .Values.totp.TOTP_ISSUER }}
TOTP_ISSUER: {{ .Values.totp.TOTP_ISSUER | quote }}
{{- end }}
{{- if .Values.totp.TOTP_DIGITS }}
TOTP_DIGITS: {{ .Values.totp.TOTP_DIGITS | quote }}
{{- end }}
{{- if .Values.totp.TOTP_PERIOD }}
TOTP_PERIOD: {{ .Values.totp.TOTP_PERIOD | quote }}
{{- end }}
{{- if .Values.totp.TOTP_MODE }}
TOTP_MODE: {{ .Values.totp.TOTP_MODE | quote }}
{{- end }}
{{- end }}
{{/* HEADER */}}
{{- if eq .Values.header.HEADER_ENABLED true }}
HEADER_ENABLED: {{ .Values.header.HEADER_ENABLED | quote }}
{{- if .Values.header.HTTP_AUTH_HEADER }}
HTTP_AUTH_HEADER: {{ .Values.header.HTTP_AUTH_HEADER | quote }}
{{- end }}
{{- end }}
{{/* JSON */}}
{{- if .Values.json.JSON_SECRET_KEY }}
JSON_SECRET_KEY: {{ .Values.json.JSON_SECRET_KEY | quote }}
{{- if .Values.json.JSON_TRUSTED_NETWORKS }}
JSON_TRUSTED_NETWORKS: {{ .Values.json.JSON_TRUSTED_NETWORKS | quote }}
{{- end }}
{{- end }}
{{/* DUO */}}
{{- 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 }}
{{/* CAS */}}
{{- 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 }}
{{- if .Values.cas.CAS_CLEARPASS_KEY }}
CAS_CLEARPASS_KEY: {{ .Values.cas.CAS_CLEARPASS_KEY | quote }}
{{- end }}
{{- if .Values.cas.CAS_GROUP_ATTRIBUTE }}
CAS_GROUP_ATTRIBUTE: {{ .Values.cas.CAS_GROUP_ATTRIBUTE | quote }}
{{- if .Values.cas.CAS_GROUP_FORMAT }}
CAS_GROUP_FORMAT: {{ .Values.cas.CAS_GROUP_FORMAT | quote }}
{{- if eq .Values.cas.CAS_GROUP_FORMAT "ldap" }}
{{- if .Values.cas.CAS_GROUP_LDAP_BASE_DN }}
CAS_GROUP_LDAP_BASE_DN: {{ .Values.cas.CAS_GROUP_LDAP_BASE_DN | quote }}
{{- if .Values.cas.CAS_GROUP_LDAP_ATTRIBUTE }}
CAS_GROUP_LDAP_ATTRIBUTE: {{ .Values.cas.CAS_GROUP_LDAP_ATTRIBUTE | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{/* OpenID */}}
{{- 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 }}
{{- if .Values.openid.OPENID_USERNAME_CLAIM_TYPE }}
OPENID_USERNAME_CLAIM_TYPE: {{ .Values.openid.OPENID_USERNAME_CLAIM_TYPE | quote }}
{{- end }}
{{- if .Values.openid.OPENID_GROUPS_CLAIM_TYPE }}
OPENID_GROUPS_CLAIM_TYPE: {{ .Values.openid.OPENID_GROUPS_CLAIM_TYPE | quote }}
{{- end }}
{{- if .Values.openid.OPENID_MAX_TOKEN_VALIDITY }}
OPENID_MAX_TOKEN_VALIDITY: {{ .Values.openid.OPENID_MAX_TOKEN_VALIDITY | quote }}
{{- end }}
{{- end }}
{{/* RADIUS */}}
{{- 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 }}
{{- if .Values.radius.RADIUS_HOSTNAME }}
RADIUS_HOSTNAME: {{ .Values.radius.RADIUS_HOSTNAME | quote }}
{{- end }}
{{- if .Values.radius.RADIUS_AUTH_PORT }}
RADIUS_AUTH_PORT: {{ .Values.radius.RADIUS_AUTH_PORT | quote }}
{{- end }}
{{- if .Values.radius.RADIUS_KEY_FILE }}
RADIUS_KEY_FILE: {{ .Values.radius.RADIUS_KEY_FILE | quote }}
{{- end }}
{{- if .Values.radius.RADIUS_KEY_TYPE }}
RADIUS_KEY_TYPE: {{ .Values.radius.RADIUS_KEY_TYPE | quote }}
{{- end }}
{{- if .Values.radius.RADIUS_KEY_PASSWORD }}
RADIUS_KEY_PASSWORD: {{ .Values.radius.RADIUS_KEY_PASSWORD | quote }}
{{- end }}
{{- if .Values.radius.RADIUS_CA_FILE }}
RADIUS_CA_FILE: {{ .Values.radius.RADIUS_CA_FILE | quote }}
{{- end }}
{{- if .Values.radius.RADIUS_CA_TYPE }}
RADIUS_CA_TYPE: {{ .Values.radius.RADIUS_CA_TYPE | quote }}
{{- end }}
{{- if .Values.radius.RADIUS_CA_PASSWORD }}
RADIUS_CA_PASSWORD: {{ .Values.radius.RADIUS_CA_PASSWORD | quote }}
{{- end }}
{{- if .Values.radius.RADIUS_TRUST_ALL }}
RADIUS_TRUST_ALL: {{ .Values.radius.RADIUS_TRUST_ALL | quote }}
{{- end }}
{{- if .Values.radius.RADIUS_RETRIES }}
RADIUS_RETRIES: {{ .Values.radius.RADIUS_RETRIES | quote }}
{{- end }}
{{- if .Values.radius.RADIUS_TIMEOUT }}
RADIUS_TIMEOUT: {{ .Values.radius.RADIUS_TIMEOUT | quote }}
{{- end }}
{{- if .Values.radius.RADIUS_EAP_TTLS_INNER_PROTOCOL }}
RADIUS_EAP_TTLS_INNER_PROTOCOL: {{ .Values.radius.RADIUS_EAP_TTLS_INNER_PROTOCOL | quote }}
{{- end }}
{{- end }}
{{/* LDAP */}}
{{- 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 }}
{{- if .Values.ldap.LDAP_PORT }}
LDAP_PORT: {{ .Values.ldap.LDAP_PORT | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_ENCRYPTION_METHOD }}
LDAP_ENCRYPTION_METHOD: {{ .Values.ldap.LDAP_ENCRYPTION_METHOD | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_MAX_SEARCH_RESULTS }}
LDAP_MAX_SEARCH_RESULTS: {{ .Values.ldap.LDAP_MAX_SEARCH_RESULTS | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_SEARCH_BIND_DN }}
LDAP_SEARCH_BIND_DN: {{ .Values.ldap.LDAP_SEARCH_BIND_DN | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_USER_ATTRIBUTES }}
LDAP_USER_ATTRIBUTES: {{ .Values.ldap.LDAP_USER_ATTRIBUTES | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_SEARCH_BIND_PASSWORD }}
LDAP_SEARCH_BIND_PASSWORD: {{ .Values.ldap.LDAP_SEARCH_BIND_PASSWORD | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_USERNAME_ATTRIBUTE }}
LDAP_USERNAME_ATTRIBUTE: {{ .Values.ldap.LDAP_USERNAME_ATTRIBUTE | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_MEMBER_ATTRIBUTE }}
LDAP_MEMBER_ATTRIBUTE: {{ .Values.ldap.LDAP_MEMBER_ATTRIBUTE | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_USER_SEARCH_FILTER }}
LDAP_USER_SEARCH_FILTER: {{ .Values.ldap.LDAP_USER_SEARCH_FILTER | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_CONFIG_BASE_DN }}
LDAP_CONFIG_BASE_DN: {{ .Values.ldap.LDAP_CONFIG_BASE_DN | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_GROUP_BASE_DN }}
LDAP_GROUP_BASE_DN: {{ .Values.ldap.LDAP_GROUP_BASE_DN | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_GROUP_SEARCH_FILTER }}
LDAP_GROUP_SEARCH_FILTER: {{ .Values.ldap.LDAP_GROUP_SEARCH_FILTER | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_MEMBER_ATTRIBUTE_TYPE }}
LDAP_MEMBER_ATTRIBUTE_TYPE: {{ .Values.ldap.LDAP_MEMBER_ATTRIBUTE_TYPE | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_GROUP_NAME_ATTRIBUTE }}
LDAP_GROUP_NAME_ATTRIBUTE: {{ .Values.ldap.LDAP_GROUP_NAME_ATTRIBUTE | quote }}
{{- end }}
{{- if .Values.ldap.LDAP_DEREFERENCE_ALIASES }}
LDAP_DEREFERENCE_ALIASES: {{ .Values.ldap.LDAP_DEREFERENCE_ALIASES | quote }}
{{- end }}
{{- if eq .Values.ldap.LDAP_FOLLOW_REFERRALS "true"}}
LDAP_FOLLOW_REFERRALS: {{ .Values.ldap.LDAP_FOLLOW_REFERRALS | quote }}
{{- if .Values.ldap.LDAP_MAX_REFERRAL_HOPS }}
LDAP_MAX_REFERRAL_HOPS: {{ .Values.ldap.LDAP_MAX_REFERRAL_HOPS | quote }}
{{- end }}
{{- end }}
{{- if .Values.ldap.LDAP_OPERATION_TIMEOUT }}
LDAP_OPERATION_TIMEOUT: {{ .Values.ldap.LDAP_OPERATION_TIMEOUT | quote }}
{{- end }}
{{- end }}
{{- end -}}

View File

@ -0,0 +1,8 @@
{{/* Make sure all variables are set properly */}}
{{ include "common.setup" . }}
{{/* Render configmap for vaultwarden */}}
{{- include "guacamole-client.configmap" . }}
{{/* Render the templates */}}
{{ include "common.postSetup" . }}

View File

@ -0,0 +1,4 @@
icon_url: https://truecharts.org/_static/img/appicons/guacamole-client-icon.png
categories:
- utilities