This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2890
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 4a404e40e38d6f5dfb57396300941d925923aa98
Author: leonidfrolov <[email protected]>
AuthorDate: Tue Jul 12 13:07:58 2022 +0300

    [DATALAB-2890] superset version update changes
---
 infrastructure-provisioning/src/general/lib/os/fab.py                 | 1 +
 infrastructure-provisioning/src/superset/templates/superset_config.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py 
b/infrastructure-provisioning/src/general/lib/os/fab.py
index eac1b2fa5..6635258d2 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -1346,6 +1346,7 @@ def configure_superset(os_user, keycloak_auth_server_url, 
keycloak_realm_name, k
                 keycloak_auth_server_url))
             conn.sudo('sed -i \'s/KEYCLOAK_REALM_NAME/{}/g\' 
/opt/datalab/templates/superset_config.py'.format(
                 keycloak_realm_name))
+            conn.sudo('sed -i \'s/OS_USER/{}/g\' 
/opt/datalab/templates/superset_config.py'.format(os_user))
             conn.sudo(
                 'sed -i \'s/EDGE_IP/{}/g\' 
/opt/datalab/templates/superset_config.py'.format(edge_instance_public_ip))
             conn.sudo('sed -i \'s/SUPERSET_NAME/{}/g\' 
/opt/datalab/templates/superset_config.py'.format(superset_name))
diff --git 
a/infrastructure-provisioning/src/superset/templates/superset_config.py 
b/infrastructure-provisioning/src/superset/templates/superset_config.py
index f30a043f4..358e4b438 100644
--- a/infrastructure-provisioning/src/superset/templates/superset_config.py
+++ b/infrastructure-provisioning/src/superset/templates/superset_config.py
@@ -119,7 +119,7 @@ AUTH_TYPE = AUTH_OID
 AUTH_USER_REGISTRATION = True
 AUTH_USER_REGISTRATION_ROLE = "Admin"
 CUSTOM_SECURITY_MANAGER = SupersetOIDCSecurityManager
-OIDC_CLIENT_SECRETS = '/home/datalab-user/superset/docker/id_provider.json'
+OIDC_CLIENT_SECRETS = '/home/OS_USER/superset/docker/id_provider.json'
 OIDC_COOKIE_SECURE = False
 OIDC_VALID_ISSUERS = 'KEYCLOAK_AUTH_SERVER_URL/realms/KEYCLOAK_REALM_NAME'
 WTF_CSRF_ENABLED = False


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to