|
| 1 | +apiVersion: v1 |
| 2 | +kind: Secret |
| 3 | +metadata: |
| 4 | + name: {{ template "codimd.fullname" . }}-auth-env |
| 5 | +stringData: |
| 6 | + CMD_EMAIL: {{ .Values.codimd.authentication.local.enabled | toString | quote }} |
| 7 | + CMD_ALLOW_EMAIL_REGISTER: {{ .Values.codimd.authentication.local.allowRegister | toString | quote }} |
| 8 | + |
| 9 | + {{/* Authentication - Bitbucket */}} |
| 10 | + {{ if .Values.codimd.authentication.bitbucket.enabled }} |
| 11 | + CMD_BITBUCKET_CLIENTID: {{ .Values.codimd.authentication.bitbucket.key | toString | quote }} |
| 12 | + CMD_BITBUCKET_CLIENTSECRET: {{ .Values.codimd.authentication.bitbucket.secret | toString | quote }} |
| 13 | + {{ end }} |
| 14 | + |
| 15 | + {{/* Authentication - Dropbox */}} |
| 16 | + {{ if .Values.codimd.authentication.dropbox.enabled }} |
| 17 | + CMD_DROPBOX_CLIENTID: {{ .Values.codimd.authentication.dropbox.appKey | toString | quote }} |
| 18 | + CMD_DROPBOX_CLIENTSECRET: {{ .Values.codimd.authentication.dropbox.appSecret | toString | quote }} |
| 19 | + {{ end }} |
| 20 | + |
| 21 | + {{/* Authentication - Facebook */}} |
| 22 | + {{ if .Values.codimd.authentication.facebook.enabled }} |
| 23 | + CMD_FACEBOOK_CLIENTID: {{ .Values.codimd.authentication.facebook.clientId | toString | quote }} |
| 24 | + CMD_FACEBOOK_CLIENTSECRET: {{ .Values.codimd.authentication.facebook.secret | toString | quote }} |
| 25 | + {{ end }} |
| 26 | + |
| 27 | + {{/* Authentication - GitHub */}} |
| 28 | + {{ if .Values.codimd.authentication.github.enabled }} |
| 29 | + {{ if .Values.codimd.authentication.github.enterpriseUrl }} |
| 30 | + CMD_GITHUB_ENTERPRISE_URL: {{ .Values.codimd.authentication.github.enterpriseUrl | trim | toString | quote }} |
| 31 | + {{ end }} |
| 32 | + CMD_GITHUB_CLIENTID: {{ .Values.codimd.authentication.github.clientId | toString | quote }} |
| 33 | + CMD_GITHUB_CLIENTSECRET: {{ .Values.codimd.authentication.github.secret | toString | quote }} |
| 34 | + {{ end }} |
| 35 | + |
| 36 | + {{/* Authentication - GitLab */}} |
| 37 | + {{ if .Values.codimd.authentication.gitlab.enabled }} |
| 38 | + {{ if .Values.codimd.authentication.gitlab.domain}} |
| 39 | + CMD_GITLAB_BASEURL: {{ .Values.codimd.authentication.gitlab.domain | toString | quote }} |
| 40 | + {{ end }} |
| 41 | + {{ if .Values.codimd.authentication.gitlab.scope }} |
| 42 | + CMD_GITLAB_SCOPE: {{ .Values.codimd.authentication.gitlab.scope | toString | quote }} |
| 43 | + {{ end }} |
| 44 | + CMD_GITLAB_CLIENTID: {{ .Values.codimd.authentication.gitlab.applicationId | toString | quote }} |
| 45 | + CMD_GITLAB_CLIENTSECRET: {{ .Values.codimd.authentication.gitlab.secret | toString | quote }} |
| 46 | + {{ end }} |
| 47 | + |
| 48 | + {{/* Authentication - Google */}} |
| 49 | + {{ if .Values.codimd.authentication.google.enabled }} |
| 50 | + CMD_GOOGLE_CLIENTID: {{ .Values.codimd.authentication.google.clientId | toString | quote }} |
| 51 | + CMD_GOOGLE_CLIENTSECRET: {{ .Values.codimd.authentication.google.secret | toString | quote }} |
| 52 | + {{ if .Values.codimd.authentication.google.hostedDomain }} |
| 53 | + CMD_GOOGLE_HOSTEDDOMAIN: {{ .Values.codimd.authentication.google.hostedDomain | toString | quote }} |
| 54 | + {{ end }} |
| 55 | + {{ end }} |
| 56 | + |
| 57 | + {{/* Authentication - LDAP */}} |
| 58 | + {{ if .Values.codimd.authentication.ldap.enabled }} |
| 59 | + CMD_LDAP_PROVIDERNAME: {{ .Values.codimd.authentication.ldap.providerName | toString | quote }} |
| 60 | + CMD_LDAP_URL: {{ .Values.codimd.authentication.ldap.url | toString | quote }} |
| 61 | + {{ if .Values.codimd.authentication.ldap.tlsCA }} |
| 62 | + CMD_LDAP_TLS_CA: {{ .Values.codimd.authentication.ldap.providerName | toString | quote }} |
| 63 | + {{ end }} |
| 64 | + CMD_LDAP_BINDDN: {{ .Values.codimd.authentication.ldap.bindDN | toString | quote }} |
| 65 | + {{ if .Values.codimd.authentication.ldap.bindCredentials }} |
| 66 | + CMD_LDAP_BINDCREDENTIALS: {{ .Values.codimd.authentication.ldap.bindCredentials | toString | quote }} |
| 67 | + {{ end }} |
| 68 | + {{ if .Values.codimd.authentication.ldap.searchBase }} |
| 69 | + CMD_LDAP_SEARCHBASE: {{ .Values.codimd.authentication.ldap.searchBase | toString | quote }} |
| 70 | + {{ end }} |
| 71 | + {{ if .Values.codimd.authentication.ldap.searchFilter }} |
| 72 | + CMD_LDAP_SEARCHFILTER: {{ .Values.codimd.authentication.ldap.searchFilter | toString | quote }} |
| 73 | + {{ end }} |
| 74 | + {{ if .Values.codimd.authentication.ldap.searchAttributes }} |
| 75 | + CMD_LDAP_SEARCHATTRIBUTES: {{ .Values.codimd.authentication.ldap.searchAttributes | toString | quote }} |
| 76 | + {{ end }} |
| 77 | + {{ if .Values.codimd.authentication.ldap.attributes.id}} |
| 78 | + CMD_LDAP_USERIDFIELD: {{ .Values.codimd.authentication.ldap.attributes.id | toString | quote }} |
| 79 | + {{ end }} |
| 80 | + {{ if .Values.codimd.authentication.ldap.attributes.username }} |
| 81 | + CMD_LDAP_USERNAMEFIELD: {{ .Values.codimd.authentication.ldap.attributes.username | toString | quote }} |
| 82 | + {{ end }} |
| 83 | + {{ end }} |
| 84 | + |
| 85 | + {{/* Authentication - Mattermost */}} |
| 86 | + {{ if .Values.codimd.authentication.mattermost.enabled }} |
| 87 | + CMD_MATTERMOST_BASEURL: {{ .Values.codimd.authentication.mattermost.domain | toString | quote }} |
| 88 | + CMD_MATTERMOST_CLIENTID: {{ .Values.codimd.authentication.mattermost.clientId | toString | quote }} |
| 89 | + CMD_MATTERMOST_CLIENTSECRET: {{ .Values.codimd.authentication.mattermost.secret | toString | quote }} |
| 90 | + {{ end }} |
| 91 | + |
| 92 | + {{/* Authentication - OAuth2 */}} |
| 93 | + {{ if .Values.codimd.authentication.oauth2.enabled }} |
| 94 | + CMD_OAUTH2_PROVIDERNAME: {{ .Values.codimd.authentication.oauth2.providerName | toString | quote }} |
| 95 | + CMD_OAUTH2_BASEURL: {{ .Values.codimd.authentication.oauth2.domain | toString | quote }} |
| 96 | + CMD_OAUTH2_CLIENT_ID: {{ .Values.codimd.authentication.oauth2.clientId | toString | quote }} |
| 97 | + CMD_OAUTH2_CLIENT_SECRET: {{ .Values.codimd.authentication.oauth2.secret | toString | quote }} |
| 98 | + CMD_OAUTH2_AUTHORIZATION_URL: {{ .Values.codimd.authentication.oauth2.authorizationUrl | toString | quote }} |
| 99 | + CMD_OAUTH2_TOKEN_URL: {{ .Values.codimd.authentication.oauth2.tokenUrl | toString | quote }} |
| 100 | + CMD_OAUTH2_USER_PROFILE_URL: {{ .Values.codimd.authentication.oauth2.userProfileUrl | toString | quote }} |
| 101 | + CMD_OAUTH2_SCOPE: {{ .Values.codimd.authentication.oauth2.scope | toString | quote }} |
| 102 | + CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR: {{ .Values.codimd.authentication.oauth2.attributes.username | toString | quote }} |
| 103 | + CMD_OAUTH2_USER_PROFILE_DISPLAY_NAME_ATTR: {{ .Values.codimd.authentication.oauth2.attributes.displayName | toString | quote }} |
| 104 | + CMD_OAUTH2_USER_PROFILE_EMAIL_ATTR: {{ .Values.codimd.authentication.oauth2.attributes.email | toString | quote }} |
| 105 | + {{ end }} |
| 106 | + |
| 107 | + {{/* Authentication - OAuth2 */}} |
| 108 | + {{ if .Values.codimd.authentication.saml.enabled }} |
| 109 | + CMD_SAML_IDPSSOURL: {{ .Values.codimd.authentication.saml.idpSSOUrl | toString | quote }} |
| 110 | + {{ if .Values.codimd.authentication.saml.idpCert }} |
| 111 | + CMD_SAML_IDPCERT: {{ .Values.codimd.authentication.saml.idpCert | toString | quote }} |
| 112 | + {{ end }} |
| 113 | + CMD_SAML_ISSUER: {{ .Values.codimd.authentication.saml.issuer | toString | quote }} |
| 114 | + CMD_SAML_IDENTIFIERFORMAT: {{ .Values.codimd.authentication.saml.identifierFormat | toString | quote }} |
| 115 | + CMD_SAML_DISABLEREQUESTEDAUTHNCONTEXT: {{ .Values.codimd.authentication.saml.disableRequestedAuthnContext | toString | quote }} |
| 116 | + CMD_SAML_GROUPATTRIBUTE: {{ .Values.codimd.authentication.saml.groupAttribute | toString | quote }} |
| 117 | + CMD_SAML_EXTERNALGROUPS: {{ .Values.codimd.authentication.saml.externalGroups | toString | quote }} |
| 118 | + CMD_SAML_REQUIREDGROUPS: {{ .Values.codimd.authentication.saml.requiredGroups | toString | quote }} |
| 119 | + CMD_SAML_ATTRIBUTE_ID: {{ .Values.codimd.authentication.saml.attributes.id | toString | quote }} |
| 120 | + CMD_SAML_ATTRIBUTE_USERNAME: {{ .Values.codimd.authentication.saml.attributes.username | toString | quote }} |
| 121 | + CMD_SAML_ATTRIBUTE_EMAIL: {{ .Values.codimd.authentication.saml.attributes.email | toString | quote }} |
| 122 | + {{ end }} |
| 123 | + |
| 124 | + {{/* Authentication - Twitter */}} |
| 125 | + {{ if .Values.codimd.authentication.twitter.enabled }} |
| 126 | + CMD_TWITTER_CONSUMERKEY: {{ .Values.codimd.authentication.twitter.consumerKey | toString | quote }} |
| 127 | + CMD_TWITTER_CONSUMERSECRET: {{ .Values.codimd.authentication.twitter.comsumerSecret | toString | quote }} |
| 128 | + {{ end }} |
0 commit comments