Skip to content

Commit 0404e09

Browse files
author
DSONE\BSS7
committed
RESOLVED issue where the entrypoint could not support object-based environment variables.
1 parent 9d866d7 commit 0404e09

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Diff for: entrypoint.sh

+13-1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ setConfigurationValue() {
9595
[\[\(]*[\]\)])
9696
TYPE="array"
9797
;;
98+
^{)
99+
TYPE="object"
100+
;;
98101
*)
99102
TYPE="string"
100103
;;
@@ -109,7 +112,7 @@ setConfigurationValue() {
109112
literal)
110113
VALUE="$1"
111114
;;
112-
bool|boolean|int|integer|array)
115+
bool|boolean|int|integer|array|object)
113116
VALUE="$KEY = $2"
114117
;;
115118
string|*)
@@ -262,6 +265,15 @@ zulipConfiguration() {
262265
[ "$setting_key" = "ALLOWED_HOSTS" ]; then
263266
type="array"
264267
fi
268+
if [ "$setting_key" = "SOCIAL_AUTH_SAML_ORG_INFO" ] || \
269+
[ "$setting_key" = "SOCIAL_AUTH_SAML_TECHNICAL_CONTACT" ] || \
270+
[ "$setting_key" = "SOCIAL_AUTH_SAML_SUPPORT_CONTACT" ] || \
271+
[ "$setting_key" = "SOCIAL_AUTH_SAML_SECURITY_CONFIG" ] || \
272+
[ "$setting_key" = "SOCIAL_AUTH_SAML_SP_EXTRA" ] || \
273+
[ "$setting_key" = "SOCIAL_AUTH_SAML_SECURITY_CONFIG" ] || \
274+
[ "$setting_key" = "SOCIAL_AUTH_SAML_ENABLED_IDPS" ]; then
275+
type="object"
276+
fi
265277
if [ "$SPECIAL_SETTING_DETECTION_MODE" = "True" ] || [ "$SPECIAL_SETTING_DETECTION_MODE" = "true" ] || \
266278
[ "$type" = "string" ]; then
267279
type=""

0 commit comments

Comments
 (0)