|
| 1 | +{{- if .Values.openmetadata.config.authentication.enabled }} |
| 2 | +apiVersion: v1 |
| 3 | +kind: Secret |
| 4 | +metadata: |
| 5 | + name: {{ include "OpenMetadata.fullname" . }}-authentication-secret |
| 6 | +type: Opaque |
| 7 | +data: |
| 8 | + AUTHENTICATION_PUBLIC_KEYS: {{ include "OpenMetadata.commaJoinedQuotedEncodedList" (dict "value" .Values.openmetadata.config.authentication.publicKeys) }} |
| 9 | + AUTHENTICATION_JWT_PRINCIPAL_CLAIMS: {{ include "OpenMetadata.commaJoinedQuotedEncodedList" (dict "value" .Values.openmetadata.config.authentication.jwtPrincipalClaims) }} |
| 10 | + {{- if .Values.openmetadata.config.authentication.jwtPrincipalClaimsMapping }} |
| 11 | + AUTHENTICATION_JWT_PRINCIPAL_CLAIMS_MAPPING: {{ include "OpenMetadata.commaJoinedQuotedEncodedList" (dict "value" .Values.openmetadata.config.authentication.jwtPrincipalClaimsMapping) }} |
| 12 | + {{- end }} |
| 13 | +{{- with .Values.openmetadata.config.authentication }} |
| 14 | + AUTHENTICATION_PROVIDER: {{ .provider | quote | b64enc }} |
| 15 | + AUTHENTICATION_RESPONSE_TYPE: {{ .responseType | quote | b64enc }} |
| 16 | + AUTHENTICATION_AUTHORITY: {{ .authority | quote | b64enc }} |
| 17 | + AUTHENTICATION_CLIENT_ID: {{ .clientId | quote | b64enc }} |
| 18 | + AUTHENTICATION_CLIENT_TYPE: {{ .clientType | quote | b64enc }} |
| 19 | + AUTHENTICATION_CALLBACK_URL: {{ .callbackUrl | quote | b64enc }} |
| 20 | + AUTHENTICATION_ENABLE_SELF_SIGNUP: {{ .enableSelfSignup | quote | b64enc }} |
| 21 | +{{- if and (eq .clientType "confidential") (.oidcConfiguration.enabled) }} |
| 22 | + OIDC_TYPE: {{ .oidcConfiguration.oidcType | quote | b64enc }} |
| 23 | + OIDC_SCOPE: {{ .oidcConfiguration.scope | quote | b64enc }} |
| 24 | + OIDC_DISCOVERY_URI: {{ .oidcConfiguration.discoveryUri | quote | b64enc }} |
| 25 | + OIDC_USE_NONCE: {{ .oidcConfiguration.useNonce | quote | b64enc }} |
| 26 | + OIDC_PREFERRED_JWS: {{ .oidcConfiguration.preferredJwsAlgorithm | quote | b64enc }} |
| 27 | + OIDC_RESPONSE_TYPE: {{ .oidcConfiguration.responseType | quote | b64enc }} |
| 28 | + OIDC_PROMPT_TYPE: {{ .oidcConfiguration.promptType | quote | b64enc }} |
| 29 | + OIDC_DISABLE_PKCE: {{ .oidcConfiguration.disablePkce | quote | b64enc }} |
| 30 | + OIDC_CALLBACK: {{ .oidcConfiguration.callbackUrl | quote | b64enc }} |
| 31 | + OIDC_SERVER_URL: {{ .oidcConfiguration.serverUrl | quote | b64enc }} |
| 32 | + OIDC_CLIENT_AUTH_METHOD: {{ .oidcConfiguration.clientAuthenticationMethod | quote | b64enc }} |
| 33 | + OIDC_TENANT: {{ .oidcConfiguration.tenant | quote | b64enc }} |
| 34 | + OIDC_MAX_CLOCK_SKEW: {{ .oidcConfiguration.maxClockSkew | quote | b64enc }} |
| 35 | + OIDC_OM_REFRESH_TOKEN_VALIDITY: {{ .oidcConfiguration.tokenValidity | quote | b64enc }} |
| 36 | + OIDC_CUSTOM_PARAMS: {{ .oidcConfiguration.customParams | b64enc }} |
| 37 | + OIDC_MAX_AGE: {{ .oidcConfiguration.maxAge | quote | b64enc }} |
| 38 | + OIDC_SESSION_EXPIRY: {{ .oidcConfiguration.sessionExpiry | quote | b64enc }} |
| 39 | +{{ end }} |
| 40 | +{{- if eq .provider "ldap" }} |
| 41 | + AUTHENTICATION_LDAP_HOST: {{ .ldapConfiguration.host | b64enc }} |
| 42 | + AUTHENTICATION_LDAP_PORT: {{ .ldapConfiguration.port | quote | b64enc }} |
| 43 | + AUTHENTICATION_LOOKUP_ADMIN_DN: {{ .ldapConfiguration.dnAdminPrincipal | quote | b64enc }} |
| 44 | + AUTHENTICATION_USER_LOOKUP_BASEDN: {{ .ldapConfiguration.userBaseDN | quote | b64enc }} |
| 45 | + AUTHENTICATION_GROUP_LOOKUP_BASEDN: {{ .ldapConfiguration.groupBaseDN | quote | b64enc }} |
| 46 | + AUTHENTICATION_USER_ROLE_ADMIN_NAME: {{ .ldapConfiguration.roleAdminName | quote | b64enc }} |
| 47 | + AUTHENTICATION_USER_ALL_ATTR: {{ .ldapConfiguration.allAttributeName | quote | b64enc }} |
| 48 | + AUTHENTICATION_USER_NAME_ATTR: {{ .ldapConfiguration.usernameAttributeName | quote | b64enc }} |
| 49 | + AUTHENTICATION_USER_GROUP_ATTR: {{ .ldapConfiguration.groupAttributeName | quote | b64enc }} |
| 50 | + AUTHENTICATION_USER_GROUP_ATTR_VALUE: {{ .ldapConfiguration.groupAttributeValue | quote | b64enc }} |
| 51 | + AUTHENTICATION_USER_GROUP_MEMBER_ATTR: {{ .ldapConfiguration.groupMemberAttributeName | quote | b64enc }} |
| 52 | + AUTH_ROLES_MAPPING: {{ .ldapConfiguration.authRolesMapping | quote | b64enc }} |
| 53 | + AUTH_REASSIGN_ROLES: {{ include "OpenMetadata.commaJoinedQuotedEncodedList" (dict "value" .ldapConfiguration.authReassignRoles) }} |
| 54 | + AUTHENTICATION_USER_MAIL_ATTR: {{ .ldapConfiguration.mailAttributeName | quote | b64enc }} |
| 55 | + AUTHENTICATION_LDAP_POOL_SIZE: {{ .ldapConfiguration.maxPoolSize | quote | b64enc }} |
| 56 | + AUTHENTICATION_LDAP_SSL_ENABLED: {{ .ldapConfiguration.sslEnabled | quote | b64enc }} |
| 57 | + AUTHENTICATION_LDAP_TRUSTSTORE_TYPE: {{ .ldapConfiguration.truststoreConfigType | quote | b64enc }} |
| 58 | + {{- if eq .ldapConfiguration.truststoreConfigType "CustomTrustStore" }} |
| 59 | + AUTHENTICATION_LDAP_TRUSTSTORE_PATH: {{ .ldapConfiguration.trustStoreConfig.customTrustManagerConfig.trustStoreFilePath | quote | b64enc }} |
| 60 | + AUTHENTICATION_LDAP_SSL_KEY_FORMAT: {{ .ldapConfiguration.trustStoreConfig.customTrustManagerConfig.trustStoreFileFormat | quote | b64enc }} |
| 61 | + AUTHENTICATION_LDAP_SSL_VERIFY_CERT_HOST: {{ .ldapConfiguration.trustStoreConfig.customTrustManagerConfig.verifyHostname | quote | b64enc }} |
| 62 | + AUTHENTICATION_LDAP_EXAMINE_VALIDITY_DATES: {{ .ldapConfiguration.trustStoreConfig.customTrustManagerConfig.examineValidityDates | quote | b64enc }} |
| 63 | + {{ end }} |
| 64 | + {{- if eq .ldapConfiguration.truststoreConfigType "HostName" }} |
| 65 | + AUTHENTICATION_LDAP_ALLOW_WILDCARDS: {{ .ldapConfiguration.trustStoreConfig.hostNameConfig.allowWildCards | quote | b64enc }} |
| 66 | + AUTHENTICATION_LDAP_ALLOWED_HOSTNAMES: {{ .ldapConfiguration.trustStoreConfig.hostNameConfig.acceptableHostNames | b64enc}} |
| 67 | + {{ end }} |
| 68 | + {{- if eq .ldapConfiguration.truststoreConfigType "JVMDefault" }} |
| 69 | + AUTHENTICATION_LDAP_SSL_VERIFY_CERT_HOST: {{ .ldapConfiguration.trustStoreConfig.jvmDefaultConfig.verifyHostname | quote | b64enc }} |
| 70 | + {{ end }} |
| 71 | + {{- if eq .ldapConfiguration.truststoreConfigType "TrustAll" }} |
| 72 | + AUTHENTICATION_LDAP_EXAMINE_VALIDITY_DATES: {{ .ldapConfiguration.trustStoreConfig.trustAllConfig.examineValidityDates | quote | b64enc }} |
| 73 | + {{ end }} |
| 74 | +{{ end }} |
| 75 | +{{- if eq .provider "saml" }} |
| 76 | + SAML_DEBUG_MODE: {{ .saml.debugMode | quote | b64enc }} |
| 77 | + SAML_IDP_ENTITY_ID: {{ .saml.idp.entityId | quote | b64enc }} |
| 78 | + SAML_IDP_SSO_LOGIN_URL: {{ .saml.idp.ssoLoginUrl | quote | b64enc }} |
| 79 | + SAML_AUTHORITY_URL: {{ .saml.idp.authorityUrl | quote | b64enc }} |
| 80 | + SAML_IDP_NAME_ID: {{ .saml.idp.nameId | quote | b64enc }} |
| 81 | + SAML_SP_ENTITY_ID: {{ .saml.sp.entityId | quote | b64enc }} |
| 82 | + SAML_SP_ACS: {{ .saml.sp.acs | quote | b64enc }} |
| 83 | + SAML_SP_CALLBACK: {{ .saml.sp.callback | quote | b64enc }} |
| 84 | + SAML_STRICT_MODE: {{ .saml.security.strictMode | quote | b64enc }} |
| 85 | + SAML_VALIDATE_XML: {{ .saml.security.validateXml | quote | b64enc }} |
| 86 | + SAML_SP_TOKEN_VALIDITY: {{ .saml.security.tokenValidity | quote | b64enc }} |
| 87 | + SAML_SEND_ENCRYPTED_NAME_ID: {{ .saml.security.sendEncryptedNameId | quote | b64enc }} |
| 88 | + SAML_SEND_SIGNED_AUTH_REQUEST: {{ .saml.security.sendSignedAuthRequest | quote | b64enc }} |
| 89 | + SAML_SIGNED_SP_METADATA: {{ .saml.security.signSpMetadata | quote | b64enc }} |
| 90 | + SAML_WANT_MESSAGE_SIGNED: {{ .saml.security.wantMessagesSigned | quote | b64enc }} |
| 91 | + SAML_WANT_ASSERTION_SIGNED: {{ .saml.security.wantAssertionsSigned | quote | b64enc }} |
| 92 | + SAML_WANT_ASSERTION_ENCRYPTED: {{ .saml.security.wantAssertionEncrypted | quote | b64enc }} |
| 93 | + # Key Store should only be considered if wantAssertionEncrypted will be true |
| 94 | + {{- if .saml.security.wantAssertionEncrypted }} |
| 95 | + SAML_KEYSTORE_FILE_PATH: {{ .saml.security.keyStoreFilePath | quote | b64enc }} |
| 96 | + {{ end }} |
| 97 | +{{ end }} |
| 98 | +{{ end }} |
| 99 | +{{ end }} |
0 commit comments